Skip to content
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 no longer respects semver range for npm: style indirect versions #7573

Closed
2 tasks done
ehoogeveen-medweb opened this issue May 30, 2024 · 1 comment · Fixed by #7595
Closed
2 tasks done
Assignees
Labels
Bug thing that needs fixing Priority 2 secondary priority issue

Comments

@ehoogeveen-medweb
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

With npm 10.8.1, npm outdated shows a different major version in the "Wanted" column even though the dependency uses a caret or tilde range.

Expected Behavior

npm outdated only shows minor and patch version bumps in the "Wanted" column (or only patch versions for a tilde range). This was the behavior on npm 10.8.0 and earlier.

Steps To Reproduce

  1. Create an empty directory
  2. Run npm init -y
  3. Run npm install punycode-v1@npm:[email protected] to install punycode version 1 with an alias.
  4. Run npm outdated
  5. Observe that punycode 2.3.1 is displayed in the Wanted column, even though this is a different major version.

Environment

  • npm: 10.8.1
  • Node.js: v20.4.0
  • OS Name: Windows 11
@ehoogeveen-medweb ehoogeveen-medweb added Bug thing that needs fixing Needs Triage needs review for next steps labels May 30, 2024
@milaninfy milaninfy added Priority 2 secondary priority issue and removed Needs Triage needs review for next steps labels Jun 13, 2024
@milaninfy milaninfy self-assigned this Jun 13, 2024
@ehoogeveen-medweb
Copy link
Author

Any idea when we might see a release with this fix? It's been 3 weeks now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Priority 2 secondary priority issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants