diff --git a/CHANGELOG.md b/CHANGELOG.md index b0c3a4420..9ee3abbde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,31 @@ The format is based on [Keep a Changelog]. This project adheres to [Semantic Ver --- +## 0.3.24 [2023-07-30] + +### Added + +- The `subsecond` component is taken into account when parsing the `unix_timestamp` component. If + data is conflicting, the `subsecond` value takes precedence. +- Parsing a `Time` with only the `hour` component is now supported. The `minute` and `second`, and + `subsecond` components are assumed to be zero. + +### Changed + +- The minimum supported Rust version is now 1.67.0. +- The debug output for `Parsed` has been improved. +- When parsing, invalid values are now rejected sooner. Previously, the entire input would be parsed + before being rejected in the final step. Now, invalid values are rejected as soon as they are + encountered. This affects the error variant returned, which may cause minor breakage for any code + (incorrectly) relying on the exact error variant. +- When parsing a `Time`, an error is returned if components are present but not consecutive. For + example, if `hours` and `seconds` are present, `minutes` will not be assumed to be zero. + +### Fixed + +- The implementation of `Duration::checked_div` could return a slightly incorrect result in some + cases. This has been fixed. + ## 0.3.23 [2023-07-08] ### Added diff --git a/Cargo.toml b/Cargo.toml index 3b5eb7f0b..a4780cc74 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ resolver = "2" [workspace.dependencies] time-core = { path = "time-core", version = "=0.1.1" } -time-macros = { path = "time-macros", version = "=0.2.10" } +time-macros = { path = "time-macros", version = "=0.2.11" } criterion = { version = "0.5.1", default-features = false } deranged = { version = "0.3.5", default-features = false } diff --git a/time-macros/Cargo.toml b/time-macros/Cargo.toml index 28bf4530f..b1742087a 100644 --- a/time-macros/Cargo.toml +++ b/time-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "time-macros" -version = "0.2.10" +version = "0.2.11" authors = ["Jacob Pratt ", "Time contributors"] edition = "2021" rust-version = "1.67.0" diff --git a/time/Cargo.toml b/time/Cargo.toml index 36964f0ec..eadbc73d0 100644 --- a/time/Cargo.toml +++ b/time/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "time" -version = "0.3.23" +version = "0.3.24" authors = ["Jacob Pratt ", "Time contributors"] edition = "2021" rust-version = "1.67.0"