Npm package upgrade notification availlable?

977 views Asked by At

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?

1

There are 1 answers

0
cowabunga1984 On BEST ANSWER

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.