Releases: joanllenas/ngx-date-fns
Releases · joanllenas/ngx-date-fns
v8.0.0
In this release
- Added two new pipes:
- dfnsFormatDuration (impure)
- dfnsFormatDurationPure
- Improved docs.
BREAKING CHANGES:
This version requires date-fns >= v2.16.0.
v7.0.2
v7.0.0
In this release
- Relaxed how invalid dates are treated in format pipes.
BREAKING CHANGES
The following pipes:
dfnsFormatDistanceStrictdfnsFormatDistanceStrictPuredfnsFormatDistanceToNowdfnsFormatDistanceToNowPuredfnsFormatDistancedfnsFormatDistancePuredfnsFormatdfnsFormatPure
don't throw an exception anymore when an invalid date is provided, an empty string is returned instead.
TL;DR;
This change only affects you in case you were calling any of those pipes programmatically and using the exception via a try catch statement. If this is the case, you can now safely remove the try catch and check for an empty string instead.
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:
dfnsParsedfnsIsTodaydfnsIsWeekenddfnsIsSameMonth