Skip to content

3.0.0

Choose a tag to compare

@fosskers fosskers released this 16 Apr 21:40
· 76 commits to master since this release

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 optional serde feature.
  • Versioning::nth to pick out certain fields of a generically parsed version.
  • Default is now derived on Versioning, SemVer, Version, Mess and Chunks so that it's possible to initialize as a struct's field.

Changed

  • Breaking: SemVer::meta and Version::meta no longer parse as Chunks but as vanilla Strings.
  • Breaking: As a semantic change, Versions now expect metadata to come after any prerelease, just as with SemVer. Version is now thus fairly similar to SemVer, except that is allows letters in more permissive positions.

Fixed

  • Two small bugs involving SemVer/Version comparisons.