Check which versions satisfy a semver range (npm-compatible), explain ranges like ^ and ~, compare and sort versions, and compute the next major / minor / patch / prerelease version.
Normalized
>=1.2.3 <2.0.0-0Matches versions that are
โฅ 1.2.3 and < 2.0.0
^1.2.3 allows changes that don't modify the left-most non-zero digit (^0.2.3 โ <0.3.0).
~1.2.3 allows patch-level changes only.
Prereleases only match if the range has a prerelease on the same major.minor.patch, unless "Include prereleases" is checked.
Versions
4 / 11 match
- ยท 0.9.0
- ยท 1.0.0
- ยท 1.2.2
- โ 1.2.3 min
- โ 1.2.4
- โ 1.3.0
- โ 1.9.9 max
- ยท 2.0.0-beta.1
- ยท 2.0.0
- ยท 2.1.0
- ยท 3.0.0-rc.1