Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Warn on npm publish when pinning to patch versions of packages. #8619

Closed
@ChALkeR

Description

@ChALkeR

With #8617, another nice thing to have apart from #8339 would be dependencies versions checks.

A warning when one pins to a patch version of a package that has a major version greater than 0 would solve a lot of problems in the ecosystem.

The last condition is crucial, no one would want a warning just because the package version is 0.0.1.

Also a notice could be introduced when one uses npm-shrinkwrap.json, but that is less critical, because that one is less common and people who use npm-shrinkwrap.json probably know what they are doing (while people who pin to patch versions generally don't).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions