SemVer precedence
Semantic versions use major, minor, and patch numbers. Prerelease identifiers sort before the matching stable release, while build metadata does not change precedence.
Core transformations run locally in your browser.
Compare SemVer precedence, identify the changed release level, and test versions against a range.
Compare precedence and optionally test both versions against a range.
1.9.0 is older than 2.1.0.
Difference: major
1.9.0No match ^2.0.02.1.0Matches ^2.0.0Semantic versions use major, minor, and patch numbers. Prerelease identifiers sort before the matching stable release, while build metadata does not change precedence.
Ranges such as ^2.0.0 or >=1.5 <2 describe compatible releases. Test both versions to understand dependency constraints before upgrading.