npm version syntax
I have a hard time remembering what the semver syntax for npm packages is, so these things help me remember.
Version syntax
Syntax | Description |
---|---|
1.1.12 | Pinned to exact version |
~1.1.12 or 1.1.x | Patch versions from 1.1.12 and higher |
1.1.x | Patch versions from 1.1.0 and higher |
^1.1.12 | Minor and patch versions from 1.1.12 and higher |
1.x | Minor and patch versions from 1.0 and higher |
x | All versions |