Fix react and react-native dependencies#231
Conversation
There was a problem hiding this comment.
Pull Request Overview
Updates peer dependency version constraints for React and React Native in the CarPlay package to use more flexible minimum version requirements instead of strict version ranges.
- Changed React peer dependency from specific version ranges to minimum version requirement
- Changed React Native peer dependency from caret range to minimum version requirement
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| "peerDependencies": { | ||
| "react": "^17.0.2 || ^18.0.0", | ||
| "react-native": "^0.60.0" | ||
| "react": ">=18.0.0", |
There was a problem hiding this comment.
Using >=18.0.0 allows any future major version of React, which could introduce breaking changes. Consider using a more restrictive range like ^18.0.0 or >=18.0.0 <20.0.0 to prevent compatibility issues with future major versions.
| "react": ">=18.0.0", | |
| "react": ">=18.0.0 <20.0.0", |
| "react": "^17.0.2 || ^18.0.0", | ||
| "react-native": "^0.60.0" | ||
| "react": ">=18.0.0", | ||
| "react-native": ">=0.60.0" |
There was a problem hiding this comment.
Using >=0.60.0 allows any future major version of React Native, which could introduce breaking changes. Consider using a more restrictive range like >=0.60.0 <1.0.0 to prevent compatibility issues with future major versions.
| "react-native": ">=0.60.0" | |
| "react-native": ">=0.60.0 <1.0.0" |
No description provided.