From eae8f542eabfad1225bfaf0f5adc4782348dd525 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sun, 25 Apr 2021 20:02:12 +0100 Subject: [PATCH] Update versions and changelogs for v2.2.1 --- CHANGELOG.md | 13 +++++++++++++ Cargo.toml | 2 +- ffi/Cargo.toml | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b45db2a..7864b10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [2.2.1] - 2021-04-25 + +### Changed + +- Version comparison now compares numeric against non-numeric release + identifiers (and vice versa) by comparing the numeric value against the + numeric value of leading digits in the non-numeric value, and treating the + latter as greater if the two numeric values are equal. The numeric value as + treated as less than the non-numeric value if the latter has no leading + digits. Previously all non-numeric identifiers were always greater than any + numeric identifier. For example, `78b` was previously considered to be greater + than `86`, but is now considered to be less than `86`. + ## [2.2.0] - 2021-04-17 ### Added diff --git a/Cargo.toml b/Cargo.toml index 3a93dbb..a71e127 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "loot-condition-interpreter" -version = "2.2.0" +version = "2.2.1" authors = ["Oliver Hamlet "] license = "MIT" edition = "2018" diff --git a/ffi/Cargo.toml b/ffi/Cargo.toml index 423e18d..c761986 100644 --- a/ffi/Cargo.toml +++ b/ffi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "loot-condition-interpreter-ffi" -version = "2.2.0" +version = "2.2.1" authors = ["Oliver Hamlet "] license = "MIT" build = "build.rs"