From ff3255fbf02a223b385187151164738d521eec03 Mon Sep 17 00:00:00 2001 From: Jacob Pratt Date: Thu, 1 Feb 2024 00:34:42 -0500 Subject: [PATCH] v0.3.32 release --- .github/workflows/powerset.yaml | 9 +++------ CHANGELOG.md | 19 ++++++++++++++++++- Cargo.lock | 4 ++-- Cargo.toml | 2 +- time-macros/Cargo.toml | 2 +- time/Cargo.toml | 2 +- 6 files changed, 26 insertions(+), 12 deletions(-) diff --git a/.github/workflows/powerset.yaml b/.github/workflows/powerset.yaml index 6a20dc185..479c036bf 100644 --- a/.github/workflows/powerset.yaml +++ b/.github/workflows/powerset.yaml @@ -106,9 +106,6 @@ jobs: needs: check uses: ./.github/workflows/github-release.yaml with: - prerelease: | - ${{ - contains(github.ref, 'alpha') - || contains(github.ref, 'beta') - || contains(github.ref, 'rc') - }} + prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc') }} + permissions: + contents: write diff --git a/CHANGELOG.md b/CHANGELOG.md index 6726efaa1..f69fdc2f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,11 +6,28 @@ The format is based on [Keep a Changelog]. This project adheres to [Semantic Ver --- +## 0.3.32 [2024-02-01] + +### Added + +- Methods to replace the day of the year. + - `Date::replace_ordinal` + - `PrimitiveDateTime::replace_ordinal` + - `OffsetDateTime::replace_ordinal` +- Modules to treat an `OffsetDateTime` as a Unix timestamp with subsecond precision for serde. + - `time::serde::timestamp::milliseconds` + - `time::serde::timestamp::microseconds` + - `time::serde::timestamp::nanoseconds` + +### Changed + +- `Duration::time_fn` is deprecated. + ## 0.3.31 [2023-12-19] ### Added -- `OFfsetDateTime::new_in_offset` +- `OffsetDateTime::new_in_offset` - `OffsetDateTime::new_utc` ### Changed diff --git a/Cargo.lock b/Cargo.lock index 13dcafd8c..4e00530d4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -580,7 +580,7 @@ dependencies = [ [[package]] name = "time" -version = "0.3.31" +version = "0.3.32" dependencies = [ "criterion", "deranged", @@ -609,7 +609,7 @@ version = "0.1.2" [[package]] name = "time-macros" -version = "0.2.16" +version = "0.2.17" dependencies = [ "num-conv", "time-core", diff --git a/Cargo.toml b/Cargo.toml index 598c1e5a5..404c26147 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.16" } +time-macros = { path = "time-macros", version = "=0.2.17" } 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 30f6b215d..6805d89e6 100644 --- a/time-macros/Cargo.toml +++ b/time-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "time-macros" -version = "0.2.16" +version = "0.2.17" authors = ["Jacob Pratt ", "Time contributors"] edition = "2021" rust-version = "1.67.0" diff --git a/time/Cargo.toml b/time/Cargo.toml index b69d8050e..0c2b9fff3 100644 --- a/time/Cargo.toml +++ b/time/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "time" -version = "0.3.31" +version = "0.3.32" authors = ["Jacob Pratt ", "Time contributors"] edition = "2021" rust-version = "1.67.0"