by Troy Rhinehart
Semantic Versioning
a simple set of rules and requirements that dictate how version numbers are assigned and incremented
Breaking Change
New Feature
Bugs/Docs/Tests
(>= v1.0.0)
Breaking Change
Breaking Change
New Features AND Bugs/Docs/Tests
(< v1.0.0)
| Symbol | Example | Description |
|---|---|---|
| * | "*" | Any/Latest |
| x | "0.0.x", "1.0.x", "1.x.x" | Any/Latest of position |
| ^ | "^0.6.0", "^15.3.0" | >=1 Minor/Patch, <1 Patch |
| ~ | "~0.3.0", "~3.3.0" | Patch |
^1.2.3
| 0.5.0 | 1.2.3 |
| 1.3.4 | 2.0.0 |
~1.2.3
| 0.5.0 | 1.2.2 |
| 1.3.4 | 1.2.6 |
^0.6.2
| 0.5.0 | 1.0.0 |
| 0.6.6 | 0.7.0 |
make publicly known, reveal, divulge, announce
git checkout master
git pull rm -f node_modules npm install npm version major|minor|patch npm publish git push origin master
git push origin master --tagsto come into a position ready for use
Onboarding
git checkout -b <branch> rm -rf node_modules npm install npm i <name>@<version> -S|-D git commit -a -m "shrinkwrap"
git push -u origin <branch>/compare/<branch>
Editor/API
git checkout -b <branch> rm -rf node_modules npm install npm i <name>@<version> -S|-D git commit -a -m "shrinkwrap"
git push -u origin <branch>/compare/<branch>
npm run shrinkwrapper-format