-
Notifications
You must be signed in to change notification settings - Fork 162
chore: move react-native-get-random-values to peerDependencies #3203
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) |
@ahmadi-akbar I did some research on your solution. We could implement this in a future major version bump but for now this may not be possible as far as I understood I believe merging this may introduce a breaking change, as existing expo users would need to update their code - for example, by installing an additional package. Upgrading to a new version could potentially break their current applications. Introducing a breaking change should be done only when bumping to a major version so currently this is not feasible. @AdrianKBL, please correct me if I’m mistaken, but I assume this would affect you and other expo users as well? |
Codecov ReportAll modified and coverable lines are covered by tests ✅ see 11 files with indirect coverage changes 🚀 New features to boost your workflow:
|
I understand the motivation behind this change, but yes, this will make the release not backward compatible for React Native and Expo users. I suggest we clearly document this in the release notes, explicitly mentioning the impact on React Native users. Also, we should update the README (React Native section) to indicate that they now need to install this dependency manually. |
Even if we document it, I’m not sure we can avoid potential community backlash, since maintainers would still need to update their projects. Kabila was the first team that came to mind when I thought of Expo users—hence why I reached out to you. Would it be an issue on your end if we made this package an optional peer dependency? |
First of all thank you for taking time to contribute to our repository @ahmadi-akbar! I've taken my time to review these changes. |
Original contributor: @ahmadi-akbar
Description:
Makes
react-native-get-random-values
optional peer dependency.Due to a problem with
pull
bot. I had to recreate #3201.Related issue(s):
#3055
Fixes
#3055
Notes for reviewer:
Checklist