5.0.0
This release brings versions
in line with version 2.0.0
of the SemVer spec. The main addition to the spec is the allowance of hyphens in both the prerelease and metadata sections. As such, certain versions like 1.2.3+1-1
which previously would not parse as SemVer now do.
To accomodate this and other small spec updates, the SemVer
and Version
types have received breaking changes here.
Changed
- Breaking: The
_svMeta
field ofSemVer
is now parsed as a dumberMaybe Text
instead of[VChunk]
, due to metadata now being allowed to possess leading zeroes. - Breaking: Like the above, the
_vMeta
field ofVersion
is nowMaybe Text
. - Breaking: The
_vRel
and_vMeta
fields ofVersion
have had their order flipped. Further, the prelease and meta sections are now expected in the same order asSemVer
when parsing (prerel first, meta second).Version
is thus now a quite similar toSemVer
, except allowing letters in more permissive positions. - Breaking: The
meta
traversal has been altered to accomodate the metadata field changes.
Fixed
- Parsing certain legal SemVers specified in the spec.