-
Notifications
You must be signed in to change notification settings - Fork 75
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
Support react 17 peer dep #32
Conversation
Geting peer dep warnings. Everything still works though.
Also requesting for this to be merged please! |
@jamiebuilds can you please review |
Since this is a polyfill it seems loosening the dependency to >= React 14 would be better. Even if React removes Currently with this overly strict dependency downstream projects like Reach Router (which uses create-react-context) and Storybook (which uses Reach) are failing to install using NPM v7 due to it now handling peerDependencies correctly. |
I believe that there is some wisdom behind being explicit, especially when it comes to JS dependencies (in this case "peerDependencies"); but I do agree it's rather subjective. 😉 My take-away from the React 17 release notes is that Facebook is preparing the community for API breaking changes coming in future versions of React. Knowing that future versions of React are not guaranteed to be backwards compatible, makes me lean away from the allure of Just my two cents. ¯\(ツ)/¯ |
@sfcgeorge Actually, I think you are correct that |
All good points, just going with what will make things work, and the existing pattern, though changing it to > 14 would be better. |
@jamiebuilds Merge? Feedback? 😄 |
Thanks @haysclark, there's good arguments both ways. @bcomnes is right, keeping most things the same is the easiest way to get something merged, and "done is better than perfect" |
still waiting for @jamiebuilds |
Please, I beg of you, merge this!
|
I reached out to Jamie on Twitter a while back but did not receive a response. Would anyone be willing to launch and maintain a maintenance fork of this dependency and attempt to land it downstream to reach/storybook ? |
I think I can |
Forked to https://github.com/Hypnosphi/create-react-context & published as I used |
I am no longer interested in maintaining this pull request. If anyone wants to offer up another one here, feel free. I will be switching to @Hypnosphi's fork. |
Geting peer dep warnings. Everything still works though.