Guides — version ranges and dependency conflicts
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.