Skip to content

Releases: fosskers/rs-versions

3.0.0

16 Apr 21:40
Compare
Choose a tag to compare

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.

2.1.0

22 Mar 21:24
Compare
Choose a tag to compare

Added

  • SemVer::parse, Version::parse, and Mess::parse have been made pub so that these parsers can be integrated into other general nom parsers.

2.0.2

23 Jan 19:48
Compare
Choose a tag to compare

Changed

  • Updated to itertools-0.10.

2.0.0

22 Oct 01:27
Compare
Choose a tag to compare

Changed

  • Breaking: Mess::chunk renamed to Mess::chunks to match Version.
  • Breaking: Mess now stores smarter Vec<MChunk> instead of Strings.
  • SemVer::to_version is no longer a lossy conversion, due to the new field in Version (see below).
  • Most Display instances are more efficient.

Added

  • Breaking: The meta: Option<Chunks> field for Version.
  • The MChunk type which allows Mess to do smarter comparisons.

Fixed

  • A number of comparison edge cases.