Skip to content

Commit cdc85da

Browse files
committed
v0.3.24 release
1 parent 227b6f8 commit cdc85da

File tree

4 files changed

+28
-3
lines changed

4 files changed

+28
-3
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,31 @@ The format is based on [Keep a Changelog]. This project adheres to [Semantic Ver
66

77
---
88

9+
## 0.3.24 [2023-07-30]
10+
11+
### Added
12+
13+
- The `subsecond` component is taken into account when parsing the `unix_timestamp` component. If
14+
data is conflicting, the `subsecond` value takes precedence.
15+
- Parsing a `Time` with only the `hour` component is now supported. The `minute` and `second`, and
16+
`subsecond` components are assumed to be zero.
17+
18+
### Changed
19+
20+
- The minimum supported Rust version is now 1.67.0.
21+
- The debug output for `Parsed` has been improved.
22+
- When parsing, invalid values are now rejected sooner. Previously, the entire input would be parsed
23+
before being rejected in the final step. Now, invalid values are rejected as soon as they are
24+
encountered. This affects the error variant returned, which may cause minor breakage for any code
25+
(incorrectly) relying on the exact error variant.
26+
- When parsing a `Time`, an error is returned if components are present but not consecutive. For
27+
example, if `hours` and `seconds` are present, `minutes` will not be assumed to be zero.
28+
29+
### Fixed
30+
31+
- The implementation of `Duration::checked_div` could return a slightly incorrect result in some
32+
cases. This has been fixed.
33+
934
## 0.3.23 [2023-07-08]
1035

1136
### Added

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resolver = "2"
55

66
[workspace.dependencies]
77
time-core = { path = "time-core", version = "=0.1.1" }
8-
time-macros = { path = "time-macros", version = "=0.2.10" }
8+
time-macros = { path = "time-macros", version = "=0.2.11" }
99

1010
criterion = { version = "0.5.1", default-features = false }
1111
deranged = { version = "0.3.5", default-features = false }

time-macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "time-macros"
3-
version = "0.2.10"
3+
version = "0.2.11"
44
authors = ["Jacob Pratt <[email protected]>", "Time contributors"]
55
edition = "2021"
66
rust-version = "1.67.0"

time/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "time"
3-
version = "0.3.23"
3+
version = "0.3.24"
44
authors = ["Jacob Pratt <[email protected]>", "Time contributors"]
55
edition = "2021"
66
rust-version = "1.67.0"

0 commit comments

Comments
 (0)