-
Notifications
You must be signed in to change notification settings - Fork 239
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
[RRFC] Ability to set minimum maturity (in days) of versions to upgrade #646
Comments
From #549:
|
i'm a little confused how the second part of that problem will be addressed by audit policies which would be capable of refusing the installation of any package with a known vuln. |
I introduced a new proposal that could accommodate a specific metadata field for this purpose (the goal of my proposal is entirely different, but certainly not incompatible). In the #703 RFC I propose to introduce a new In any case, I agree with this remark from @ljharb: #646 (comment) |
Motivation ("The Why")
When a vulnerability is introduced to an npm package, it takes at least several days to discover the vulnerability and to report the vulnerable release to security databases (npm, Snyk, dependabot, etc.)
Because of that reason, it would make sense for developers who want stability and security for their projects to use 3rd party dependencies with version that matches these conditions:
There's existing
--before
parameter, but it doesn't work for this purposeExamples
As a maintainer of a popular plugin I several times shipped a bug or a breaking change in a patch release. Usually, these issues are noticed by users during the next several hours and after several more hours, I ship another patch release with a fix.
And here's why
--before
wouldn't work:some-cool-package
has6.6.6
with a bug released 4 days ago and6.6.7
with bug-fix released 2 days ago--before="3 days"
the buggy version would be installed which would be the exact opposite of desired--stabilityDays=3
neither6.6.6
nor6.6.7
would be installed which is desired because6.6.6
is buggy and6.6.7
is immature.How
Current Behaviour
None.
Desired Behaviour
References
Renovate has this feature, it's named
stabilityDays
: https://docs.renovatebot.com/configuration-options/#stabilitydaysAlso
stabilityDays
is mentioned in this RFC: #549The text was updated successfully, but these errors were encountered: