|
1 | | -# 2.2.2 - 2024.11.27 |
| 1 | +# CHANGELOG |
| 2 | + |
| 3 | +## 2.3.0 - |
| 4 | + |
| 5 | +### Breaking Changes |
| 6 | + |
| 7 | +- **`Weekday.validator`**: The return type of the `validator` getter on the `Weekday` enum has been narrowed from the general `DateValidator` to the more specific `DateValidatorWeekday`. This improves type safety but may require casting in existing code if you were relying on the broader type. |
| 8 | +- **`ClampInMonth.dueDateTime`**: The return type of the `dueDateTime` getter on the `ClampInMonth` extension has been changed from `DueDateTime<Every>` to `DueDateTime<EveryDueDayMonth>`. This provides a more accurate type for the created object. |
| 9 | + |
| 10 | +### New Features & Improvements |
| 11 | + |
| 12 | +- **Timezone on Periods**: The `Period` class and all its subclasses (e.g., `WeekPeriod`, `DayPeriod`, `MonthPeriod`, etc) now include `isUtc`, `isLocal`, `toUtc()`, and `toLocal()` for better timezone awareness and conversion. |
| 13 | +- **`DueDateTime.copyWith`**: Added an optional `utc` boolean parameter to `copyWith` to allow for easy conversion to/from UTC when copying an instance. This will keep the exact timings and not convert the date. |
| 14 | +- **`DateValidatorDayInYear`**: |
| 15 | + |
| 16 | + - Added an `inexact` field. |
| 17 | + - Now implements the new `ExactDateValidator` interface. |
| 18 | + |
| 19 | +- **`EveryDayInYear`**: |
| 20 | + |
| 21 | + - Added an `inexact` field. |
| 22 | + - Now implements `ExactDateValidator` and the new `ExactEvery` interface. |
| 23 | + |
| 24 | +- **`EveryDueDayMonth` & `EveryDueWorkdayMonth`**: Now implement the new `ExactEvery` interface. |
| 25 | + |
| 26 | +**Internal**: |
| 27 | + |
| 28 | +- **`WorkdayHelper`**: Now exposes a `dateValidator` field. |
| 29 | +- **`ObjectExt`**: Added new utility methods `when2` and `whenn`. |
| 30 | +- Added new interface `_When`, and a helper function `boolCompareTo` for internal use. |
| 31 | + |
| 32 | +### Dependencies |
| 33 | + |
| 34 | +- Updated `equatable` from `^2.0.0` to `^2.0.3`. This should fix analysis issues with `pub downgrade`. |
| 35 | + |
| 36 | +## 2.2.2 - 2024.11.27 |
2 | 37 |
|
3 | 38 | - Loosened the constraints of the dependencies. |
4 | 39 |
|
5 | | -# 2.2.1 - 2024.11.19 |
| 40 | +## 2.2.1 - 2024.11.19 |
6 | 41 |
|
7 | 42 | - Thightened the constraints of the dependencies. |
8 | 43 |
|
9 | | -# 2.2.0 - 2024.11.19 |
| 44 | +## 2.2.0 - 2024.11.19 |
10 | 45 |
|
11 | 46 | - Added [EveryDueTimeOfDay] and [EveryDueWorkdayMonth] and their respective implementations for [DateValidator]. |
12 | 47 |
|
13 | | -# 2.0.0 - 2023.03.28 |
| 48 | +## 2.0.0 - 2023.03.28 |
14 | 49 |
|
15 | 50 | - Added [DateValidator] and some implementations. |
16 | 51 | - Implemented [DateValidator] in all implementations of [Every]. |
17 | 52 | - Created [Period] and some implementations. |
18 | 53 | - Created [PeriodGeneratorMixin] and some implementations. |
19 | 54 |
|
20 | | -## Breaking changes |
| 55 | +### Breaking changes |
21 | 56 |
|
22 | 57 | - API changes to always use optional named parameters. |
23 | 58 | - API changes replacing optional positional parameters for optional named parameters. |
24 | 59 |
|
25 | | -# 1.0.4 - 2022.08.23 |
| 60 | +## 1.0.4 - 2022.08.23 |
26 | 61 |
|
27 | 62 | - Fixed typo on changelog. |
28 | 63 | - Updated dependency `time` to fix issues. |
29 | 64 |
|
30 | | -# 1.0.3 - 2022.08.23 |
| 65 | +## 1.0.3 - 2022.08.23 |
31 | 66 |
|
32 | 67 | - Fixed repository and issues pointing to wrong package. |
33 | 68 | - Fixed example README. |
34 | 69 |
|
35 | | -# 1.0.2 - 2022.08.23 |
| 70 | +## 1.0.2 - 2022.08.23 |
36 | 71 |
|
37 | 72 | - Renamed `isWorkDay` -> `isWorkday`. Since is the same day of release, I won't consider this a breaking change. |
38 | 73 |
|
39 | | -# 1.0.1 - 2022.08.23 |
| 74 | +## 1.0.1 - 2022.08.23 |
40 | 75 |
|
41 | 76 | - Fixed Dart Conventions, added more description to the `pubspec.yaml`. |
42 | 77 |
|
43 | | -# 1.0.0 - 2022.08.23 |
| 78 | +## 1.0.0 - 2022.08.23 |
44 | 79 |
|
45 | 80 | - Initial stable release. |
0 commit comments