-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[BUG] npm outdated
should not include packages where the current version == wanted
#3409
Comments
In the vue-meta case, v2.4.1 or v2.5.0 might come out, and you’d want npm outdated to notify you of that. |
Why? You've already made the decision to use the next major version. Why would you care if a patch/minor in the previous major was released? |
In case the featured bugfix you need in the prerelease lands in the latest line, and you’d rather be in that than on a prerelease. |
You can't just jump between major releases like that. In my case, I chose these versions for compatibility with Vue.js 3. It's highly unlikely that a bugfix is going to motivate me to roll back to a previous major version, with all the associated changes required. Also, such important bug fixes would either not apply to the next major, or would usually be ported there. The command is named outdated, and It's really awkward checking for updates when you have to ignore all of these packages. |
It’s true the command name is inappropriate, since dates and recency have nothing to do with semver ranges. |
Either way, I’d say this sort of change would warrant an RFC to discuss it. |
This PR started to attempt to solve that problem, but we realized we probably want a little more discussion to be sure we're solving it in the right way: |
Closing in favor of #3397 which has already been discussed at least twice in RFC calls to determine how to best solve this. |
Is there an existing issue for this?
Current Behavior
When running
npm outdated
, I see multiple packages where thecurrent
version is exactly equal to thewanted
version, and where both are greater than thelatest
version.These are often pre-releases or releases that have not been tagged as the
latest
, but I can't think of any reason why someone would be interested in seeing this information, when they've obviously made a conscious decision to install a later version.Example output:
Only the first item in this list is useful. The rest are already up-to-date.
Expected Behavior
I expected to only see the first item in the above list. The other items are useless noise.
Steps To Reproduce
latest
.npm outdated
Environment
The text was updated successfully, but these errors were encountered: