Skip to content
Local

Developer

Semver Calculator

Parse a semantic version into its parts, compare two versions, see every bump and test it against an npm range.

Runs in your browser. Nothing leaves this device.

How to use Semver Calculator

  1. 1Type a version, such as 1.4.2-beta.3.
  2. 2Read its parts and the next major, minor, patch and pre-release versions.
  3. 3Type a second version or an npm range to compare or test it.

Questions

What does ^1.2.3 allow?

Anything from 1.2.3 up to, but not including, 2.0.0. For 0.x versions the caret is stricter: ^0.2.3 stops before 0.3.0.

What does ~1.2.3 allow?

Patch updates only: from 1.2.3 up to, but not including, 1.3.0.

Why does 1.3.0-beta.1 not match ^1.2.3?

npm only lets a pre-release match a range when a comparator in that range has a pre-release on the same major, minor and patch. This keeps beta versions out of normal installs.

Is the build part (+abc) compared?

No. Semantic Versioning 2.0.0 says build metadata is ignored when ordering versions, so 1.0.0+a and 1.0.0+b are equal.

Is it free?

Yes. No account, no watermark and no daily limit.

Esc