Evaluate version ranges under four ecosystems and see exactly where they collide
SemVer 2.0.0, npm, Cargo and PEP 440 range rules, implemented side by side. Give it candidate versions and constraints and it reports matches, the newest matching version, the shared intersection and the pair that conflicts. Nothing you paste leaves the browser.
0 bytes of your input sent to a server (advertising and affiliate widgets excluded)
- 4ecosystem rule sets
- 6workplace presets
- 12,200cross-checked cases
- 0server uploads
Range evaluator and intersection (conflict) tester
With two or more constraints it shows whether any candidate satisfies all of them, and if not, which two constraints collide and at which bound.
Constraints
Commas and semicolons work too. Leave it empty to judge from the intersection interval alone.
Version diff and sorter
See which part of a version changed, whether that change breaks ^/~ compatibility, and sort a list of versions at once.
Version sorter
One version per line; sorted by the current mode's precedence. Build metadata never affects the order.
Diagnostic report
Copy or save what is on screen as Markdown or JSON. The report holds your input and the verdict; it never leaves the browser.
Preview
How to use it
Three steps. Nothing you enter is stored anywhere.
Frequently asked questions
Is my version list uploaded anywhere?
No. Range parsing, comparison, intersection, diff, sorting and report generation all run in this page's JavaScript. Excluding advertising and affiliate widgets, 0 bytes of your input are sent to a server.
Why does ^0.2.3 refuse 0.3.0 in npm?
npm's ^ pins the left-most non-zero position. For 1.2.3 that is the major, for 0.2.3 the minor, so ^0.2.3 ends at `<0.3.0-0`. 0.3.0 sits outside that upper bound.
Is Cargo's ^0.0.3 the same as npm's?
With all three positions written, yes: both mean `>=0.0.3 <0.0.4. Cargo also accepts partial forms like 0.0 or 0, defaults to caret when the operator is omitted, and has no ||`. This site keeps a separate parser per mode so the differences stay visible.
Why does 1.4.3.dev0 fail ~=1.4.2 in PEP 440?
dev releases are prereleases. PEP 440 recommends excluding prereleases unless the specifier mentions one, so pip does the same. Add a constraint such as `>=1.4.2rc1` to admit them.
Prereleases never match my range. Is that a bug?
No. npm and Cargo only admit a prerelease when a comparator names the same major.minor.patch with a prerelease, so 1.5.0-beta.1 does not satisfy `>=1.2.3-beta.1 <2.0.0`. SemVer mode compares prereleases plainly, without that isolation rule.
Does it agree with node-semver and packaging?
The core paths were checked against both. npm ranges were compared with node-semver 7.7.3, PEP 440 with packaging 26.3 and ordering with an independent implementation across more than 12,000 cases. The verification report ships with the site.
Guides
Five notes, from range syntax traps to classifying peer dependency conflicts.
- The npm
^0.xtrap: why 0.3.0 falls outsideWhy^0.2.3ends at<0.3.0-0, how node-semver builds that bound, and which range to use for 0.x dependencies. - Cargo's
0.0.xand0.x: the patch is the boundaryWhy a bare version in Cargo means caret, why^0.0.3accepts only 0.0.3, and how commas and the missing||work. - PEP 440
~=with post and dev: three rules in one operatorHow~=1.4.2computes its upper bound, how dev/pre/post order, and what epochs, local versions and.*do. - Prerelease ordering and isolation:
beta.11beatsbeta.2SemVer 2.0.0 §11 precedence, and how npm and Cargo keep prereleases out of ranges unless you ask for them. - Triage a peerDependency conflict: find the pair that collidesWhen no version satisfies every peer requirement, how to find the conflicting pair, compute the intersection and choose a fix.