|
| 1 | +## 3.0.0 |
| 2 | + |
| 3 | +> This release has breaking changes! |
| 4 | +
|
| 5 | +- Changed `TimeRange.toString()` delimiter to `@` |
| 6 | +- Fixed CustomTimeRange not being able to be parsed |
| 7 | +- Added `.encode()` and `.encodeShort()` methods on `TimeRange` |
| 8 | +- Added `TimeRange.fromStartAndDuration` constructor |
| 9 | + |
1 | 10 | ## 2.2.1
|
2 | 11 |
|
3 | 12 | - Added `TimeRange` readable format.
|
|
67 | 76 |
|
68 | 77 | ## 1.1.0
|
69 | 78 |
|
70 |
| -- `.startOf(DurationUnit.week)` and `endOf` now works, fixes [#13](https://github.com/sadespresso/moment_dart/issues/13) |
| 79 | +- `.startOf(DurationUnit.week)` and `endOf` now works, fixes [#13](https://github.com/sadespresso/moment_dart/issues/13) |
71 | 80 |
|
72 | 81 | ## 1.0.1
|
73 | 82 |
|
|
76 | 85 | ## 1.0.0
|
77 | 86 |
|
78 | 87 | > Features **breaking changes**
|
| 88 | +
|
79 | 89 | - Now requires Dart v2.19.4
|
80 | 90 | - Added {reference} argument to `ComplexCalendar` methods
|
81 | 91 | - This fixes incorrect results of localizations that use `ComplexCalender` (i.e., zh_CN, it_IT)
|
|
96 | 106 | ## 1.0.0-rc.1
|
97 | 107 |
|
98 | 108 | > Features **breaking changes**
|
| 109 | +
|
99 | 110 | - Added {reference} argument to `ComplexCalendar` methods
|
100 | 111 | - This fixes incorrect results of localizations that use `ComplexCalender` (i.e., zh_CN, it_IT)
|
101 | 112 | - Renamed `LocalizationKo` to `LocalizationKoKr` for consistency
|
|
157 | 168 | ## 0.16.0
|
158 | 169 |
|
159 | 170 | > This release has breaking changes!
|
| 171 | +
|
160 | 172 | - `Duration().toDurationString()` first argument is now **named**, and ***optional***. When null, uses global localization set using `Moment.setGlobalLocalization(MomentLocalization)`
|
161 | 173 | - Now `weekStart` of `DateTime().startOfLocalWeek([int weekStart])` is nullable, and defaults to `Moment.defaultLocalization.weekStart`
|
162 | 174 | - Now `weekStart` of `DateTime().endOfLocalWeek([int weekStart])` is nullable, and defaults to `Moment.defaultLocalization.weekStart`
|
|
169 | 181 | ## 0.14.0
|
170 | 182 |
|
171 | 183 | > This release has breaking changes!
|
| 184 | +
|
172 | 185 | - [BREAKING] moment.format("YY") now **no longer throws exception** when year doesn't fall in range (1970, 2030). Instead, it returns full year. e.g., `DateTime(1969).format("YY"); // 1969`
|
173 | 186 | - [BREAKING] moment.format("gg") now **no longer throws exception** when ISO week year doesn't fall in range (1970, 2030). Instead, it returns full year. e.g., `DateTime(1969).format("gg"); // 1969`
|
174 | 187 | - [BREAKING] `DateTime.format(...)` now expect named arguments instead of optional positional arguments
|
175 | 188 |
|
176 | 189 | ## 0.13.0
|
177 | 190 |
|
178 | 191 | > This release has breaking changes!
|
179 |
| -- [BREAKING] `endOf_()` and `startOf_()` now _preserves_ the timezone instead of always returning local `DateTime` object |
| 192 | +
|
| 193 | +- [BREAKING] `endOf_()` and `startOf_()` now *preserves* the timezone instead of always returning local `DateTime` object |
180 | 194 | - `endOf(DurationUnit.microsecond)` and `startOf(DurationUnit.microsecond)` now returns `this.clone()` instead of throwing error
|
181 | 195 |
|
182 | 196 | ## 0.12.0
|
183 | 197 |
|
184 | 198 | > This release has breaking changes!
|
| 199 | +
|
185 | 200 | - [BREAKING] `isAtSameUnit___As(other)` now doesn't take timezones into account. If you want the old behaviour, use `isAtSameUnit___As(other, enforceUTC: true)`
|
186 | 201 | - [BREAKING] Renamed `MomentLocalizations.deDE()` to `.de()`
|
187 | 202 | - [BREAKING] Removed `Moment().elapsed()` for sake of `Moment().fromPrecise()`
|
|
259 | 274 | - Restructured formatters. No need to override formatter for every `FormatterToken`
|
260 | 275 | - Removed following deprecated methods: `Moment.lastMondayAsDateTime()`, `Moment.lastSundayAsDateTime()`
|
261 | 276 | - Implemented `.endOf(DurationUnit unit)`, and it's children `.endOf~~~()`. Works on both `Moment` and `DateTime`
|
262 |
| -- Added new locales: |
| 277 | +- Added new locales: |
263 | 278 | - Spanish (es) (Spain)
|
264 | 279 | - French (fr) (France)
|
265 | 280 | - Minor changes:
|
|
0 commit comments