-
Notifications
You must be signed in to change notification settings - Fork 638
Upgrade React #942
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
Upgrade React #942
Conversation
Deployment failed with the following error:
|
Deployment failed with the following error:
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/primer/primer-components/k52z651wn |
Note: I needed to remove the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
This PR changes the acceptable React version to be used as an external dependency to React
^17.0.0
.I've also moved
react
fromdependencies
todevDependencies
. Since it's marked as apeerDependency
it shouldn't be in regular deps. I don't think we realized this becauserollup
is markingreact
as external (preventing it to be bundled with the application).This change would require all applications using Primer React Components to upgrade to version 17 and should be released as a breaking change.
Open Questions
Should we allow versions above 16.8 still? I'm pretty sure because I added
capture: true
to the two document listeners in the library, we should see the same behavior in environments using^16.8.0
and environments using^17.0.0
. It still feels a little weird to allow either version, but because17.0.0
is relatively new, I wouldn't want someone to be prevented from using PRC because another dependency in their application requires something below 17 🤔Closes #941
Screenshots
Please provide before/after screenshots for any visual changes
Merge checklist
index.d.ts
) if necessaryTake a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.