[prop-types] v5.0.0. Use semver range dependencies, drop Node <18. #27
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Old releases of React Native pin to a
react-native-deprecated-prop-types
version that in turn depends on"@react-native/normalize-colors": *
.This is problematic, because it means breaking changes to RN/NC are automatically pulled in to old RN projects. This has come up twice when we've tried to introduce a Node >=18 requirement to RN/NC, in
0.73.1
and0.74.0
(facebook/react-native#39692, facebook/react-native#40797).Let's put a stop to this by capping the prop-types V4 branch at
<0.73.0
, and releasing a v5.0.0 which:"node": ">=18"
requirement explicitly mirroring the one in RN."@react-native/normalize-colors": "^0.73.0"
. We'll be free to expand this to"^0.73.0 || ^0.74.0"
, etc, as we confirm compatibility.