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
Serdesupport through the optionalserdefeature.Versioning::nthto pick out certain fields of a generically parsed version.Defaultis now derived onVersioning,SemVer,Version,MessandChunksso that it's possible to initialize as a struct's field.
Changed
- Breaking:
SemVer::metaandVersion::metano longer parse asChunksbut as vanillaStrings. - Breaking: As a semantic change,
Versions now expect metadata to come after any prerelease, just as withSemVer.Versionis now thus fairly similar toSemVer, except that is allows letters in more permissive positions.
Fixed
- Two small bugs involving
SemVer/Versioncomparisons.