-
Notifications
You must be signed in to change notification settings - Fork 238
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] Add semver filter to the outdated command #359
Comments
In the last example, the “1” is a major version. In vX.Y.Z, v0.X.Y, and v0.0.X, x is the major, y the minor, and z the patch. |
I always used: major.minor.patch |
See https://semver.org/spec/v1.0.0.html - the npm ecosystem generally uses the rubric I described. |
I have not found what you say, not even in this document. Can you show me where the quote is? |
https://semver.org/spec/v1.0.0.html#spec-item-6 says there are no non-breaking change before v1. the undocumented convention the npm ecosystem uses, and the way npm itself works with |
So? Even if NPM uses an internal convention, the proposal could be good to be added, no? In that case, if a package moves from This behaviour should be consistent with the undocumented way NPM works |
Yes, 0.0.1 to 0.0.2 is a major change; and 0.1.4 to 0.1.5 is a minor change, and npm should and does work this way with the |
Ok, the next step is to open a PR with my RFC. Is it right? |
I think it’s probably best to wait until query has landed, since that’s how it’d be implemented and would affect the api. |
Is that RFC? #564 |
Motivation ("The Why")
I was managing a repository and wanted to see if there were any new major releases in the dependencies. I was interested only to major releases changes but the
npm outdated
command showed to me also minor and patch changes.Example
Allow to show only some specific type of semver changes, eg: only major and minor.
How
Current Behaviour
The
npm outdated
command shows all dependencies with an updateDesired Behaviour
Allow to specify a filter parameter like
--include-versions
that takes as input a string or a list of comma-separated strings.Example:
References
The text was updated successfully, but these errors were encountered: