diff --git a/CHANGELOG.md b/CHANGELOG.md index 1bbd05f79..ce82be009 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,28 @@ The format is based on [Keep a Changelog]. This project adheres to [Semantic Ver --- -## 0.3.34 [2024-12-03] +## 0.3.35 [2024-04-10] + +## Added + +- `Duration::checked_neg` +- `ext::InstantExt`, which provides methods for using `time::Duration` with `std::time::Instant` + +## Changed + +- `Instant` is deprecated. It is recommended to use `std::time::Instant` directly, importing + `time::ext::InstantExt` for interoperability with `time::Duration`. +- `FormatItem` has been renamed to `BorrowedFormatItem`, avoiding confusion with `OwnedFormatItem`. + An alias has been added for backwards compatibility. + +## Fixed + +- The weekday is optional when parsing RFC2822. +- The range of sub-second values in `Duration` is documented correctly. The previous documentation + contained an off-by-one error. +- Leap seconds are now correctly handled when parsing ISO 8601. + +## 0.3.34 [2024-02-03] ### Fixed diff --git a/Cargo.lock b/Cargo.lock index 9950fdfc3..ef67c4c0a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -580,7 +580,7 @@ dependencies = [ [[package]] name = "time" -version = "0.3.34" +version = "0.3.35" dependencies = [ "criterion", "deranged", @@ -609,7 +609,7 @@ version = "0.1.2" [[package]] name = "time-macros" -version = "0.2.17" +version = "0.2.18" dependencies = [ "num-conv", "time-core", diff --git a/Cargo.toml b/Cargo.toml index bbf268a9c..ab8ad8b95 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ resolver = "2" [workspace.dependencies] time-core = { path = "time-core", version = "=0.1.2" } -time-macros = { path = "time-macros", version = "=0.2.17" } +time-macros = { path = "time-macros", version = "=0.2.18" } criterion = { version = "0.5.1", default-features = false } deranged = { version = "0.3.9", default-features = false, features = [ diff --git a/time-macros/Cargo.toml b/time-macros/Cargo.toml index 6805d89e6..3451de834 100644 --- a/time-macros/Cargo.toml +++ b/time-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "time-macros" -version = "0.2.17" +version = "0.2.18" authors = ["Jacob Pratt ", "Time contributors"] edition = "2021" rust-version = "1.67.0" diff --git a/time/Cargo.toml b/time/Cargo.toml index 9204434e3..a536cef7e 100644 --- a/time/Cargo.toml +++ b/time/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "time" -version = "0.3.34" +version = "0.3.35" authors = ["Jacob Pratt ", "Time contributors"] edition = "2021" rust-version = "1.67.0"