Skip to content

Commit

Permalink
v0.3.24 release
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpratt committed Jul 30, 2023
1 parent 227b6f8 commit cdc85da
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion time-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "time-macros"
version = "0.2.10"
version = "0.2.11"
authors = ["Jacob Pratt <open-source@jhpratt.dev>", "Time contributors"]
edition = "2021"
rust-version = "1.67.0"
Expand Down
2 changes: 1 addition & 1 deletion time/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "time"
version = "0.3.23"
version = "0.3.24"
authors = ["Jacob Pratt <open-source@jhpratt.dev>", "Time contributors"]
edition = "2021"
rust-version = "1.67.0"
Expand Down

0 comments on commit cdc85da

Please sign in to comment.