How to use Semver
- 1. Paste a version. v prefix is allowed.
- 2. Bump major/minor/patch. Resets lesser numbers.
- 3. Compare another version. Negative means left is smaller.
- 4. Test ^ ranges. 0.x is treated as locked minor.
About this tool
Semver is how npm and Go modules talk about compatibility. Bumping in the browser is handy when you are writing a changelog, not when you need the full node-semver range grammar.
Caret
^1.2.3 allows 1.x ≥ 1.2.3. 0.2.3 only allows 0.2.x ≥ 0.2.3.
Prerelease
Compared as strings after the numbers. Not the full spec.
Code examples
bump
1.2.3 → 1.3.0