-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
peerDependencies #98
Comments
👍 to moving back to peerDeps with the modified version target |
is there a way to install peerDependencies using |
We actually depend on React for a few things (i.e. we |
Right now, I have to fork Peer deps was initially meant to solve this, but a lot of people don't like them (in some cases it can force bad package installs or something, not sure). When I write plugins, I just don't specify a dependency at all, and just state the minimum version that it can be used with in the docs. If the user installs react, and then react-nested-router, all the If you want, you still could use peer deps. Just change the version to ">=0.10.0" instead of "^0.10.0" as stated in the original comment. |
Thanks for the explanation @jlongster. I think I get it now. :) |
Damn, that was fast :) |
when @jlongster starts using your library, there is no time for shenanigans. |
I got some clarification on the peer dependencies issue.
It appears there's a semver caveat for
0.x.x
versions where compatible means the same minor version, so^0.10.0
is>=0.10.0
and<0.11.0
, but I thought it meant>=0.10.0
and<1.0.0
.I apologize for the incorrect pull request.
"react": ">=0.10.0<1.0.0"
would give the correct behavior, or simply"react": ">=0.10.0"
.The text was updated successfully, but these errors were encountered: