From 76af3db98de271b751b8a2d23177f1f8b75badc1 Mon Sep 17 00:00:00 2001 From: Serge Latyntcev Date: Sun, 1 Jan 2023 17:36:21 +1300 Subject: [PATCH] Release 0.13.0 --- CHANGELOG.md | 11 +++++++++++ Cargo.toml | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b191856..31c889e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## [0.13.0] - 2023-01-01 + +### Changed + - `PartialCmp` now compares `NaN` with the other values and returns it as the smallest possible value. Thus, `NaN < -Inf`. + +### Fixed + - `partial_cmp` now behaves exactly the same as `cmp` (PartialOrd is now consistent with Ord). + This fixes an issue introduced in `0.12.2` with the implementation of `Ord`, + where `Ord` would behave differently from `PartialOrd` with `NaN` values. + Special thanks to Hsingai Tigris Altaica aka DrAlta for fixing this. + ## [0.12.2] - 2022-12-04 ### Added diff --git a/Cargo.toml b/Cargo.toml index 97aaa449..cdf96c29 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fraction" -version = "0.12.2" +version = "0.13.0" authors = ["dnsl48 "] description = "Lossless fractions and decimals; drop-in float replacement"