From d5f9edc9924bb1cbcdafed9333169a6613295ec2 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Tue, 26 Mar 2024 23:28:55 +0100 Subject: [PATCH] Changelog for 0.6.1 --- CHANGELOG.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77ebf7e..facdc57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## [0.6.1](https://github.com/brick/date-time/releases/tag/0.6.1) - 2024-03-26 + +✨ **New features** + +- `Year::atMonth()` now accepts a `Month` enum as parameter ([#95](https://github.com/brick/date-time/pull/95)) +- `YearMonth::of()` and `YearMonth::withMonth()` now accept a `Month` enum as parameter ([#96](https://github.com/brick/date-time/pull/96)) + +🔧 **Improvements** + +- Narrower Psalm types for `compareTo()`, `__toString()`, `toISOString()`, `jsonSerialize()` methods ([#97](https://github.com/brick/date-time/pull/97)) + +💩 **Deprecations** + +- Passing an `int` to `Year::atMonth()` is now deprecated, pass a `Month` enum instead ([#95](https://github.com/brick/date-time/pull/95)) +- Passing an `int` to `YearMonth::of()` and `YearMonth::withMonth()` is now deprecated, pass a `Month` enum instead ([#96](https://github.com/brick/date-time/pull/96)) + +Thanks to [@gnutix](https://github.com/gnutix)! + ## [0.6.0](https://github.com/brick/date-time/releases/tag/0.6.0) - 2023-12-05 💥 **Breaking changes**