I was reading up on versioning with npm
, and apparently it provides a nice convenient command for bumping your package versions.
npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease]
prerelease
Lets say your package starts at version 0.0.0
npm version prerelease
=> 0.0.1-0
npm version prerelease
=> 0.0.1-1
Basically just bumps the number after the dash
prepatch
Starting from 0.0.0
using pre[major|minor|patch] instead...
npm version prepatch
=> 0.0.1-0
npm version preminor
=> 0.1.0-0
npm version premajor
=> 1.0.0-0
patch
Starting from 0.0.0
using patch...
npm version patch
=> 0.0.1
npm version patch
=> 0.0.2
I understand the rules for bumping major minor and patch versions, but what is the standard convention for versioning things prior to 1.0.0
?