Closed
Description
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
- Create an empty directory
- Run
npm init -y
- Run
npm install punycode-v1@npm:[email protected]
to install punycode version 1 with an alias. - Run
npm outdated
- 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