-
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
Allow future React versions in peer dependencies #33
base: master
Are you sure you want to change the base?
Conversation
Why is there no issues tab in this repo? |
@Hypnosphi I think this is probably a mistake to not pin to major versions. You don't want to give the false sense that it's safe when they release a new change when it's not. |
See motivation here: #32 (comment) reach/router#432 (comment) |
I think the loose deps style makes more sense for the reasons @Hypnosphi points out, but I'd happily take a more strict definition if it meant this gets released. |
Versions should definitely be restrictive in the sense that when a new version of a peer dependency comes out, it first need to be tested with it to make sure it work with it, then the versioning can be updated to include this newer version. I came across this as I encounter this in the Storybook packages that uses this, but they themselves set react 17 as peer dependency. So that makes it like very hard and unreliable, as technically, they are not telling the truth. Can this be updated so tests are also done with the 17 version and then merged and released? |
This comment has been minimized.
This comment has been minimized.
@dietergeerts this is a polyfill library. It doesn't really do anything on React 16.3+ (e.g. where https://github.com/jamiebuilds/create-react-context/blob/master/src/index.js#L5 |
@Hypnosphi , I don't use this directly, it's a deep dependency of "@storybook/react", and as I use pnpm and check on correction of peer dependencies, I know have errors on version used. That's why I landed here. So you are basically saying that the package that uses this in the dependency chain actually doesn't need it anymore when using react 17, and thus could upgrade it's dependencies to mark it as optional, or to just remove it when ditching previous version? |
Unfortunately not, because it uses |
Is this repo just not maintained anymore? It really seems odd that React 17 isn't properly supported.
I am assuming Gatsby flattens the Reach Router into the static links so they only need to worry about it in Jest testing? Is there a recommended router lib that everyone is migrating to? |
hi, is it possible to merge this commit to master in order to use this library in react 17 ? |
I want to know too, hope to support react 17 for this library |
Some movement here would be great.
|
Should be fixed when Storybook v6.4.0 is released thanks to storybookjs/storybook#16440. |
Replaces #32