Skip to content

Releases: fosskers/rs-versions

6.3.1

04 Aug 21:58
Compare
Choose a tag to compare

Fixed

  • Parsing of Mess on a single digit will correctly yield MChunk::Digits.
  • Improved comparison of Versions whose main chunks lead with a letter, e.g. r23.

6.3.0

15 Jun 10:08
Compare
Choose a tag to compare

Changed

  • Relaxed argument to new functions to accept S: AsRef<str>.

6.2.0

18 Mar 01:10
Compare
Choose a tag to compare

Added

  • Requirement::serialize for pretty-encoding of version "requirements strings".

6.1.0

12 Jan 00:41
Compare
Choose a tag to compare

Added

  • The Requirement type for testing version constraints.
  • Versioning::parse for usage with nom.
  • Versioning::deserialize_pretty for deserializing directly from raw version strings.

6.0.0

13 Dec 05:52
Compare
Choose a tag to compare

While technically a breaking change, most users should not notice.

Changed

  • The Err / Error associated types for automatic conversion of strings into proper version types have been changed from () to a proper Error enum.

5.0.1

13 Aug 14:13
Compare
Choose a tag to compare

Changed

  • Bumped itertools dependency.

5.0.0

09 May 01:40
Compare
Choose a tag to compare

This introduces a very small, technically breaking change to the API involving a single type. If you're just doing basic parsing and comparisons and not actually inspecting the types themselves, you shouldn't notice a difference.

Changed

  • Versions with ~ in their metadata will now parse as a Mess. Example: 12.0.0-3ubuntu1~20.04.5

4.1.0

21 Apr 19:07
Compare
Choose a tag to compare

Added

  • FromStr and TryFrom instances for each type.

4.0.0

08 Jan 01:43
Compare
Choose a tag to compare

Added

  • The Release type.

Changed

  • SemVer and Version have had their prerel field changed to Release.
  • The Chunk type has changed from a struct to an enum.

Removed

  • The Unit type.

Fixed

  • A bug involving zeroes in SemVer prereleases.
  • A bug involving the Display instance for Version.

3.0.1

10 May 02:32
Compare
Choose a tag to compare

Changed

  • Certain parsers are now faster and use less memory.