Releases: joanllenas/ngx-date-fns
Releases · joanllenas/ngx-date-fns
v6.6.0
Improvements
- Improved library tree shaking capabilities via SCAM structure.
Take a look at the tree shaking guide for details.
🎉 This huge improvement has been contributed by @KingDarBoja. Thanks!
v6.5.0
v6.4.0
6.4.0
Features
Added pure versions of all impure pipes
- dfnsFormat
- dfnsFormatPure
- dfnsFormatDistance
- dfnsFormatDistancePure
- dfnsFormatDistanceStrict
- dfnsFormatDistanceStrictPure
- dfnsFormatDistanceToNow
- dfnsFormatDistanceToNowPure
- dfnsGetWeek
- dfnsGetWeekPure
- dfnsGetWeekOfMonth
- dfnsGetWeekOfMonthPure
- dfnsGetWeeksInMonth
- dfnsGetWeeksInMonthPure
- dfnsGetWeekYear
- dfnsGetWeekYearPure
- dfnsStartOfWeek
- dfnsStartOfWeekPure
- dfnsStartOfWeekYear
- dfnsStartOfWeekYearPure
- dfnsLastDayOfWeek
- dfnsLastDayOfWeekPure
- dfnsParse
- dfnsParsePure
Docs
- Added docs explaining when to use pure vs impure pipes
Fixes
- Added some missing pipes to de lib exports and module.
v6.3.2
Added some implemented pipes that were missing in the public API and module files:
DifferenceInCalendarQuartersPipe
(difference-in-calendar-quarters.pipe.ts)GetISOWeekYearPipe
(get-iso-week-year.pipe.ts)
Updated dependencies to Angular 10.
v6.3.1
v6.3.0
Added new pipe:
dfnsIsSameYear
v6.2.1
Added a few new pipes:
dfnsParse
dfnsIsToday
dfnsIsWeekend
dfnsIsSameMonth
v6.1.0
v6.0.0
Added missing locale support to all locale-aware pipes.
Some locale-aware pipes didn't have the DateFnsConfigurationService subscriptions implemented.
⚠ BREAKING CHANGES
The following pipes:
- GetWeekOfMonthPipe,
- GetWeekYearPipe,
- GetWeekPipe,
- GetWeeksInMonthPipe,
- LastDayOfWeekPipe,
- StartOfWeekYearPipe
- StartOfWeekPipe
are now impure and require parametrization when instantiated via new MyClass()
.
v5.0.0 - Upgraded to support date-fns v2
New pipes:
- dfnsAddBusinessDays
- dfnsDifferenceInBusinessDays
- dfnsGetUnixTime
- dfnsGetWeek
- dfnsGetWeekOfMonth
- dfnsGetWeeksInMonth
- dfnsGetDecade
- dfnsGetWeekYear
- dfnsLastDayOfDecade
- dfnsStartOfDecade
- dfnsStartOfWeekYear
BREAKING CHANGE:
- Library is now Angular >= v8 only.
- Pipe argument validations are now done by date-fns.
- Renamed dfnsAddISOYears to dfnsAddISOWeekYears.
- Renamed dfnsDifferenceInCalendarISOYears to dfnsDifferenceInCalendarISOWeekYears.
- Renamed dfnsDifferenceInISOYears to dfnsDifferenceInISOWeekYears.
- Renamed dfnsDistanceInWords to dfnsFormatDistance. Also, notice that date arguments have been swapped to be consistent with date-fns.
- Renamed dfnsDistanceInWordsStrict to dfnsFormatDistanceStrict. Also, notice that date arguments have been swapped to be consistent with date-fns. See https://date-fns.org/v2.0.1/docs/formatDistanceStrict#v2.0.0-breaking-changes for more breaking changes related to the options param.
- Renamed dfnsDistanceInWordsToNow to dfnsFormatDistanceToNow.
- Renamed dfnsEndOfISOYear to dfnsEndOfISOWeekYear.
- Renamed dfnsGetISOYear to dfnsGetISOWeekYear
- Renamed dfnsGetOverlappingDaysInRanges to dfnsGetOverlappingDaysInIntervals. Also, time interval arguments are passed differently: See https://date-fns.org/v2.0.1/docs/getOverlappingDaysInIntervals#v2.0.0-breaking-changes for more info.
- Renamed dfnsLastDayOfISOYear to dfnsLastDayOfISOWeekYear.
- Renamed dfnsStartOfISOYear to dfnsStartOfISOWeekYear
- Renamed dfnsSubISOYears to dfnsSubISOWeekYears
- In general, all date-fns changes (lots of changes) also apply to this library. See https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md and https://github.com/date-fns/date-fns/blob/master/CHANGELOG.md#200---2019-08-20 for the whole upgrade guide.
🙌 Special thanks to @nfdevil for his contributions in this PR!