Expand description
Subset of Composer versioning needed by the platform check: numeric
versions X[.Y[.Z[.W]]] with an optional stability suffix (-dev,
-alpha.N, -beta.N, -RC.N, -patch.N), compared like
composer/semver (4-component normalisation, dev < alpha < beta < RC <
stable < patch). Branches (dev-master, 1.x-dev) are outside this
subset: parse returns an error and the caller treats the package as
out of scope rather than guessing.
Parity is held by the differential tests against
Composer\Semver\Semver::satisfies (tests/oracle_semver.rs).
Structs§
Enums§
Functions§
- normalize_
pretty - Composer’s “pretty -> normalized” normalisation (VersionParser::normalize),
for the subset met in locks: numeric versions (-> 4 components + canonical
suffix),
dev-*branches (unchanged) and numeric branchesN.x-dev(x -> 9999999, padded to 4 components). Parity held by tests/oracle_normalize.rs.