-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
chore: add react peer dependencies #1938
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
See comments
I've updated it with the versions from |
@joshuaellis Sorry to ping. It's been a few weeks. The changes were made. Is it good to 🐿? |
No totally fair to ping me. I think you need to run |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 3c6585b:
|
@joshuaellis Sorry for the delay. I've updated the lock file. |
Thank you for the change. But it seems the values in peer dependencies are not correct. Now it is:
but having https://jubianchi.github.io/semver-check/#/^16.8.0%20%20||%20%3E%3D17.0.0%20||%20%3E%3D18.0.0/20 Did you perhaps want to have this syntax instead?
this is more common for libraries as it allows to have any version within the major version range, but it won't apply to React v19. Your current version range would match any React version, even React v100. |
This isn't released yet, feel free to make a PR and submit your findings so we can discuss separately. |
* It targets React v16, v17 and v18, and only those fixes pmndrs#1938
@joshuaellis I made a PR that failed checks:
It seems I am not allowed to modify yarn.lock file in my commit, but how to address this change in peerDependencies then? |
@eugenet8k youd have to run yarn to modify the lock file which is fine because you're changing peer deps. |
* It targets React v16, v17, and v18, and only those fixes pmndrs#1938
@joshuaellis it seems I got successful checks this time, please review and thank you for all the work with this repo. |
All the packages in this repo require
react
andreact-dom
as peer dependencies, andreact-spring
does not provide them even though they are listed as dependencies. It needs to "pass the buck" to the consumer ofreact-spring
in order to get rid of these warnings on install:This fix is validated by adding the following to
.yarnrc
:But I'd rather not do the YAML implementation because it's dead code if this fix is ever applied to the source, and other devs on the team won't understand maintaining this. I'd rather it be fixed at the source, hence the PR. :)