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
Pin request version #76
Comments
Thanks @morgante I didn't know Request is not following semver. However, if Request-Promise would switch to a fixed Request version and update the Request version from time to time then Request-Promise either doesn't follow semver anymore, too, or would bump the major version each time because who knows if the new Request version introduced a breaking change. IMHO you should define the specific Request version in your own package.json. Or use Do you have some thoughts you can add? |
I think this is potentially the best option. Yes, it's annoying to bump the major version every time but at least then request-promise is abstracting out the fact that the underlying request doesn't follow semver. As it is now, someone can have the request-promise version pinned and not realize that the underlying request version is fluctuating with major changes. I'm using Turning |
Exactly.
Actually the current request code base is in maintenance state, so I try to not introduce breaking changes, but as you can see things go out of hand sometimes, especially when not tested. |
Given that, I propose that either |
IMO |
Since I don't prefer pinning - think about projects that migrated just some of their requests from Request to Request-Promise and want to use the same Request version throughout the project - let's go for a |
👍 |
Hi @morgante , I just released |
Great, thanks! |
Unfortunately, it seems #5 might have been premature. Request does not currently follow semver, so it is dangerous to have a loose dependency on it.
I was recently affected by this and recommend that request-promise switch to an explicit request version dependency.
The text was updated successfully, but these errors were encountered: