Releases: fosskers/rs-versions
Releases · fosskers/rs-versions
3.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.
Added
Serde
support through the optionalserde
feature.Versioning::nth
to pick out certain fields of a generically parsed version.Default
is now derived onVersioning
,SemVer
,Version
,Mess
andChunks
so that it's possible to initialize as a struct's field.
Changed
- Breaking:
SemVer::meta
andVersion::meta
no longer parse asChunks
but as vanillaString
s. - Breaking: As a semantic change,
Version
s now expect metadata to come after any prerelease, just as withSemVer
.Version
is now thus fairly similar toSemVer
, except that is allows letters in more permissive positions.
Fixed
- Two small bugs involving
SemVer
/Version
comparisons.
2.1.0
2.0.2
2.0.0
Changed
- Breaking:
Mess::chunk
renamed toMess::chunks
to matchVersion
. - Breaking:
Mess
now stores smarterVec<MChunk>
instead ofString
s. SemVer::to_version
is no longer a lossy conversion, due to the new field inVersion
(see below).- Most
Display
instances are more efficient.
Added
- Breaking: The
meta: Option<Chunks>
field forVersion
. - The
MChunk
type which allowsMess
to do smarter comparisons.
Fixed
- A number of comparison edge cases.