DEVELOPER & CODE · LOCAL WORKBENCH

Semver Comparator

Compare semantic versions and inspect major/minor/patch and prerelease ordering.

DEVELOPER & CODE · LOCAL WORKBENCH · BROWSER WORKSPACE

Compare releases. See the range before it ships.

Compare semantic versions and inspect major/minor/patch and prerelease ordering.

01 · RELEASE ORDERSEMVER PRECEDENCE
NEWER1.0.10 comes after 1.0.9

The patch number differs.

A plain text sort would reverse this order. Numeric version parts must be compared as numbers.
Build labels do not change precedence.

For example, 1.2.3+build.4 and 1.2.3+build.9 compare as the same version.

02 · SORT A RELEASE LIST8 VALID · 0 INVALID
Plain text
1.0.0
1.0.0-alpha
1.0.0-beta
1.0.0-rc.1
1.0.10
1.0.9
1.10.0
1.2.0
Semantic version order
  1. 1.0.0-alpha
  2. 1.0.0-beta
  3. 1.0.0-rc.1
  4. 1.0.0
  5. 1.0.9
  6. 1.0.10
  7. 1.2.0
  8. 1.10.0
03 · DEPENDENCY RANGELOWER INCLUSIVE · UPPER EXCLUSIVE
^1.2.3minor and patch updates>= 1.2.3 and < 2.0.0
Quick check
1.2.3ALLOWED
1.2.4ALLOWED
2.0.0BLOCKED
1.2.3-betaBLOCKED

Prerelease versions are excluded from these ranges, including when their numbers fit between the bounds. A range describes allowed versions; it cannot guarantee that an author's release is safe.

◎

Runs in this browser. Results are estimates or editing cues. Review the assumptions and source-specific limits before using them in a consequential decision.

Back to the tool library ↗

Need a feature from the original version? Open the current ECECH tool

How this app works

Compare semantic versions and inspect major/minor/patch and prerelease ordering. Results update as you adjust inputs and stay in this browser.