Skip to content

Commit 94f995b

Browse files
committed
updating changelog and some wrap-ups
1 parent 07383aa commit 94f995b

22 files changed

Lines changed: 659 additions & 194 deletions

CHANGELOG.md

Lines changed: 45 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,80 @@
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
237

338
- Loosened the constraints of the dependencies.
439

5-
# 2.2.1 - 2024.11.19
40+
## 2.2.1 - 2024.11.19
641

742
- Thightened the constraints of the dependencies.
843

9-
# 2.2.0 - 2024.11.19
44+
## 2.2.0 - 2024.11.19
1045

1146
- Added [EveryDueTimeOfDay] and [EveryDueWorkdayMonth] and their respective implementations for [DateValidator].
1247

13-
# 2.0.0 - 2023.03.28
48+
## 2.0.0 - 2023.03.28
1449

1550
- Added [DateValidator] and some implementations.
1651
- Implemented [DateValidator] in all implementations of [Every].
1752
- Created [Period] and some implementations.
1853
- Created [PeriodGeneratorMixin] and some implementations.
1954

20-
## Breaking changes
55+
### Breaking changes
2156

2257
- API changes to always use optional named parameters.
2358
- API changes replacing optional positional parameters for optional named parameters.
2459

25-
# 1.0.4 - 2022.08.23
60+
## 1.0.4 - 2022.08.23
2661

2762
- Fixed typo on changelog.
2863
- Updated dependency `time` to fix issues.
2964

30-
# 1.0.3 - 2022.08.23
65+
## 1.0.3 - 2022.08.23
3166

3267
- Fixed repository and issues pointing to wrong package.
3368
- Fixed example README.
3469

35-
# 1.0.2 - 2022.08.23
70+
## 1.0.2 - 2022.08.23
3671

3772
- Renamed `isWorkDay` -> `isWorkday`. Since is the same day of release, I won't consider this a breaking change.
3873

39-
# 1.0.1 - 2022.08.23
74+
## 1.0.1 - 2022.08.23
4075

4176
- Fixed Dart Conventions, added more description to the `pubspec.yaml`.
4277

43-
# 1.0.0 - 2022.08.23
78+
## 1.0.0 - 2022.08.23
4479

4580
- Initial stable release.

0 commit comments

Comments
 (0)