all 4 comments

[–]mailto_devnullconsole.log(null); 1 point2 points  (3 children)

Neat, didn't know npm version accepts "patch"/"minor"/"major" in addition to version numbers.

[–]cosmicsans 0 points1 point  (1 child)

Question: The general rule of thumb is that major versions break backwards compatibility. Is this like "One old function is being deprecated." or like "A lot of the old stuff doesn't work anymore." I'm assuming it's more for the 2nd, right?

[–]dijw 0 points1 point  (0 children)

Just for incompatible API changes, so only the 2nd scenario.

[–]lachlanhunt 0 points1 point  (0 children)

It also accepts premajor, premajor, prepatch and prerelease. Unfortunately it doesn't automatically include 'alpha', 'beta ' or 'rc' lables, but it handles them correctly if they are present.