[RRFC] Add semver filter to the outdated command
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 777
- Forks
- 267
- PR merge metrics
- No merged PRs in 30d
Description
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 update
Desired Behaviour
Allow to specify a filter parameter like --include-versions that takes as input a string or a list of comma-separated strings.
Example:
npm outdated
Package Current Wanted Latest
dep1 1.0.1 1.0.1 1.1.0
dep2 3.2.122 3.2.122 4.0.0
dep1 0.0.1 0.0.1 0.0.2
npm outdated --include-versions major,minor
Package Current Wanted Latest
dep1 1.0.1 1.0.1 1.1.0
dep2 3.2.122 3.2.122 4.0.0
References
- n/a
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the npm outdated command and the semver behavior described in the issue. Determine where its output and version comparisons are handled; no files or tests are named in the proposal. Done means a filter such as --include-versions can select major and minor updates while excluding patch-only updates.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100