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
Unmet peer dependency with package update #135
Comments
Peer dependencies should only result in warnings:
I suggest to configure your build system such that it treats these accordingly, instead of as failures. Alternatively, you can include |
Okay, yeah, I'm seeing that. This might be a CI/CD tool configuration issue that caused this. Thanks! |
@RubenVerborgh: I believe adding a peer dependency is considered a breaking change (per semver/semver#502), so this should be released in a new major version of Would you consider unpublishing or deprecating |
Thanks @mikeharder for detailing your concern. The short version: the dependency is completely optional, in that its absence will not affect functionality. It will just work as it should. So since there is no impact, no major version change is needed. The longer story: this package is under many constraints, including usage on old Node versions (which is the whole reason for this peer dependency). What I want to do is have Releasing a new major version would cause this package (which is widely depended on) to not be updated in all of those places that still use v1.x, or I'd again be stuck with maintaining multiple versions. Given that nothing well-configured breaks, I think |
In my opinion, causing a build warning is sufficient impact to justify a new major version. Projects may have enabled "warnings as errors" or otherwise have a policy that builds should have no warnings.
I don't see why you would need to maintain multiple versions. Consumers could choose to stay on |
Yes, I just learned about that indeed.
Yeah, I'd probably still get bug reports in on the Not an easy situation and I do see the inconvenience it's causing in your builds. I will give it a couple of days to see what other reactions come in; I have had to roll back a change to I could also just drop |
You know what, I'll just remove the peerdep. Will solve our headaches. |
@RubenVerborgh npm (npm/cli#224) and Yarn supports |
Hello!
We noticed a fail in our build process when the new version of follow-redirects came out yesterday.
The text was updated successfully, but these errors were encountered: