Skip to content

Deprecated version suggested as update #28

Open
@fvsch

Description

@fvsch

This extension suggests to install a version with a higher number, even if that version is marked as deprecated in the npm registry.

This mostly occurs when a project publishes a new version by mistake. For instance, the Nx project recently published 18.1.0 versions of a number of packages by mistake, and marked all those versions as deprecated. So if you have dependencies like this in a package.json:

{
  "dependencies": {
    "@nx/devkit": "18.0.8",
    "@nx/js": "18.0.8",
    "nx": "18.0.8"
  }
}

You will get Update available: 18.1.0 for each, but those packages are deprecated and should not be used:

https://www.npmjs.com/package/@nx/devkit/v/18.1.0
https://www.npmjs.com/package/@nx/js/v/18.1.0
https://www.npmjs.com/package/nx/v/18.1.0

It would be great if deprecated versions were excluded from suggestions.

Screenshot of a package.json file in VS Code, with @nx/* dependencies specified with the version number 18.0.8, and annotations saying “Update available: 18.1.0” on each line

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions