-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
downgrading peer dependency to 16.8.0 #1229
Conversation
Deploy preview for react-redux-docs ready! Built with commit 1656505 |
Given that 16.8.6 is already out, and 16.9 is on the way, is this really that much of an issue? If someone's not on 16.8 at all, they shouldn't be using v7. If they're on 16.8.1 or something, should be easy to bump to 16.8.6. |
This is about keeping libraries and builds happy. Given that nothing is specifically being relied on in |
I think as a library declaring a peer dependency it makes sense to take the lower |
If an existing library had a peer dep of ^16.8.0 then they would need to make a breaking change to get to ^16.8.4 to safely use react-redux v7. Safely from the perspective of package managers and bundlers |
A peer deep will never cause a duplicate version issue. That's not how they work. This is no different from any other part of the version string mismatching between libraries. It would happen the same if we started requiring 16.9.0. We haven't ever tested the code on versions in this range, so saying we support it would be incorrect. Sorry, but this isn't something we should accept. |
I cannot speak for all bundlers, but it would definitely cause a big old warning for sure.
Isn't this what the update in the |
react native is using strict react |
I'm running into the same issue as @JCheungX Expo (still) requires us to strictly use |
Looking at the changelog for
React
, I do not see whyreact-redux
cannot have a more lenient peer dependency version.This can be released in a
patch
release as it is a more expansive peer dependency range.Without this change,
react-beautiful-dnd
would need to have a react peer dependency of^16.8.4
to avoid potential warnings. Otherwise, it could use^16.8.0