-
Notifications
You must be signed in to change notification settings - Fork 297
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
continuation-local-storage is still present as a peer dependency on npm #70
Comments
Oh, actually this commit reverts what I added for v1.0.1. But still this peer dependency issue isn't fixed. Do you know a solution? With the declared peer dependency npm@3 prints:
So I removed the declaration again and npm@3 still prints:
The latter was what I wanted to fix in the first place. cls-bluebird has continuation-local-storage declared as a peer dependency. However, cls-bluebird's code is only required if the user of Request-Promise calls |
Yes, but since it had no positive impact you should be considering to bump npm version. In npm@3 peer dependencies are not installed automatically anymore link Optional dependency is not a solution either since npm will try to install it anyway see Also, I've created PR for cls-bluebird to fix second warning TimBeyer/cls-bluebird#4 |
I finally took the time to look into the ways to define dependencies and verified that defining cls-bluebird as a regular dependency is the correct way to go. Thanks for creating the PR for cls-bluebird! IMHO cls-bluebird is right to define continuation-local-storage as a peer dependency since it depends on the namespace interface. Anyway, I guess we are facing a dependency edge case here. I will bump the version now. |
I just published v1.0.2 on npm. Thanks for your contribution! |
Since the CLS support is optional, could you just drop the |
Note that this kind of changed will require major version bump, so it won't break anyone's code |
Indeed. BTW, we discussed in #75 how to proceed. |
Also worth noting that in addition to the warning |
…it has a stupid dependency on continuation-local-storage (request/request-promise#70)
Hi @toboid I just released |
great 😄 |
Since you didn't bump package.json version after commit e2d8dfa continuation-local-storage peer dependency is still present in version shipped by npm and causes warnings
The text was updated successfully, but these errors were encountered: