diff --git a/CHANGELOG.md b/CHANGELOG.md index f271dc3a2..743958ad5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,32 @@ The format is based on [Keep a Changelog]. This project adheres to [Semantic Ver --- +## 0.3.29 [2023-09-24] + +### Added + +- Niche value optimization for `Date` has been added. Both `Date` and `Option` are four bytes. +- Unit conversions have been added. It is now possible to write `Second::per(Day)`, which returns + the number of seconds in one day. See the types in the [`time::convert` module] for more + information. + + [`time::convert` module]: https://time-rs.github.io/api/time/convert/index.html + +### Changed + +- The diagnostic for `--cfg unsound_local_offset` has been removed. +- `#![feature(no_coverage)]` was previously used internally for code coverage. It is no longer used, + so it has been removed. +- The default value for `modifier::OffsetHour` has been changed. This was unintentionally changed in + v0.3.17 and went unnoticed until now. The sign is now only present if needed by default, as was + the case previously. This does not affect any situation where `format_description!` or + `format_description::parse` is used. + +### Fixed + +- Adding or subtracting a `std::time::Duration` to/from an `OffsetDateTime` will not result in + integer overflow internally. It will still panic if the result is out of range. + ## 0.3.28 [2023-08-27] ### Added diff --git a/Cargo.toml b/Cargo.toml index 8c8eb0df9..a328b4df6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,8 +4,8 @@ members = ["time", "time-core", "time-macros"] resolver = "2" [workspace.dependencies] -time-core = { path = "time-core", version = "=0.1.1" } -time-macros = { path = "time-macros", version = "=0.2.14" } +time-core = { path = "time-core", version = "=0.1.2" } +time-macros = { path = "time-macros", version = "=0.2.15" } criterion = { version = "0.5.1", default-features = false } deranged = { version = "0.3.7", default-features = false } diff --git a/time-core/Cargo.toml b/time-core/Cargo.toml index a9c32b8d3..c11597177 100644 --- a/time-core/Cargo.toml +++ b/time-core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "time-core" -version = "0.1.1" +version = "0.1.2" authors = ["Jacob Pratt ", "Time contributors"] edition = "2021" rust-version = "1.67.0" diff --git a/time-macros/Cargo.toml b/time-macros/Cargo.toml index e886eb808..e9e3b9c04 100644 --- a/time-macros/Cargo.toml +++ b/time-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "time-macros" -version = "0.2.14" +version = "0.2.15" authors = ["Jacob Pratt ", "Time contributors"] edition = "2021" rust-version = "1.67.0" diff --git a/time/Cargo.toml b/time/Cargo.toml index 9893a07f1..5ee4aaa85 100644 --- a/time/Cargo.toml +++ b/time/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "time" -version = "0.3.28" +version = "0.3.29" authors = ["Jacob Pratt ", "Time contributors"] edition = "2021" rust-version = "1.67.0"