Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump react-modal 2.4.1 -> 3.0.4 #2098

Closed

Conversation

brucewpaul
Copy link

Issue:
react-modal needs to be ^3 as this is one of the dependencies that has a react peerdep. ^3 unlocks react16 as a peerdep

What I did

bumped react-modal

How to test

Is this testable with jest or storyshots?

Does this need a new example in the kitchen sink apps?

Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

@brucewpaul brucewpaul force-pushed the bwp--bump-react-modal branch from a192bc5 to 3e096f5 Compare October 19, 2017 18:21
@codecov
Copy link

codecov bot commented Oct 19, 2017

Codecov Report

Merging #2098 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2098   +/-   ##
=======================================
  Coverage   22.16%   22.16%           
=======================================
  Files         268      268           
  Lines        5875     5875           
  Branches      706      718   +12     
=======================================
  Hits         1302     1302           
+ Misses       4040     4035    -5     
- Partials      533      538    +5
Impacted Files Coverage Δ
app/react/src/server/utils.js 0% <0%> (-53.58%) ⬇️
addons/storyshots/src/require_context.js 0% <0%> (ø) ⬆️
addons/knobs/src/components/types/Color.js 8.1% <0%> (ø) ⬆️
addons/knobs/src/components/types/Number.js 8.06% <0%> (ø) ⬆️
lib/components/src/navigation/menu_link.js 0% <0%> (ø) ⬆️
app/react/src/client/preview/element_check.js 41.17% <0%> (ø) ⬆️
addons/knobs/src/components/types/Select.js 7.93% <0%> (ø) ⬆️
addons/info/src/components/PropTable.js 21.36% <0%> (ø) ⬆️
addons/info/src/components/Props.js 37.2% <0%> (ø) ⬆️
lib/codemod/src/transforms/update-addon-info.js 50% <0%> (ø) ⬆️
... and 19 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b74bac8...05c2d5a. Read the comment docs.

@Hypnosphi
Copy link
Member

Hypnosphi commented Oct 21, 2017

@ndelangen do we really need all three dependencies here (in lib/ui, app/react, and app/vue)? Looks like react-modal is only imported from lib/ui code

Copy link
Member

@Hypnosphi Hypnosphi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This mostly works, but there is one regression when comparing to master: when you open the search box, it isn't focused

Steps to reproduce:

yarn bootstrap --core
yarn start

Open http://localhost:9010/ and hit ⌘ ⇧ P. Expected: search box is focused. Actual: it isn't focused

@ndelangen
Copy link
Member

@ndelangen do we really need all three dependencies here (in lib/ui, app/react, and app/vue)? Looks like react-modal is only imported from lib/ui code

Agree, looks like we can remove the dependency on react-modal from app/react and app/vue.

This PR is a good place to remove it in, Will you be able to do that @brucewpaul, or do you need one of use to do it? 👍

@brucewpaul
Copy link
Author

I'll be able to get to this and I'll take a look at the bug you described as well.

Additionally, has there been discussion on adding react16 to peerDeps and what how you all want to get there?

@ndelangen
Copy link
Member

I'll put React16 on the issue list for the roadmap meeting. #1724 is on react 16.

@Hypnosphi
Copy link
Member

@ndelangen master is on React 16 as well

@ndelangen
Copy link
Member

Any progress on this, Is there anything needed of me? @Hypnosphi

@Hypnosphi
Copy link
Member

The only critical thing is this: #2098 (review)

@Hypnosphi
Copy link
Member

I think I'll pick this one up

@Hypnosphi
Copy link
Member

Superseded by #2238

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants