Search code examples
node.jsnpmpackagesoftware-distribution

Npm package upgrade notification availlable?


I wrote a node package which contains breaking changes in the next release. Does there exist a way to notify developers about that via console while upgrading via npm?


Solution

  • I don't think there is a solution to inform the via console, but if your new version is given by an new "major" number, it should not break the code.

    Breaking example

    • Client dependency: ~1.2.2
    • Your old version: 1.2.2
    • Your new version: 1.2.3

    The client will upgrade to version 1.2.3.

    Not breaking example

    • User dependency: ~1.2.2
    • Your old version: 1.2.2
    • Your new version: 1.3.0

    The client will not upgrade.