Ngx Date Fns Versions Save

⏳ date-fns pipes for Angular

v6.6.0

3 years ago

Improvements

Take a look at the tree shaking guide for details.

🎉 This huge improvement has been contributed by @KingDarBoja. Thanks!

v6.5.0

3 years ago

Features

  • Added new dfnsParseIso pipe. (docs)

Chores

  • Updated dependencies.
  • Fixed deprecations.

v6.4.0

3 years ago

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

3 years ago

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

3 years ago

Angular 10 support

Contribution by @toverux 🎉

v6.3.0

4 years ago

Added new pipe:

  • dfnsIsSameYear

v6.2.1

4 years ago

Added a few new pipes:

  • dfnsParse
  • dfnsIsToday
  • dfnsIsWeekend
  • dfnsIsSameMonth

v6.1.0

4 years ago

Features

Added new pipe that calculates the weekday name based on a weekday number and the current locale.

  • dfnsWeekdayName (docs)

Added new dfnsIs.. familty pipes: (docs)

  • dfnsIsAfter
  • dfnsIsBefore
  • dfnsIsDate
  • dfnsIsEqual
  • dfnsIsFuture
  • dfnsIsPast
  • dfnsIsValid

v6.0.0

4 years ago

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

4 years ago

New pipes:

  • dfnsAddBusinessDays
  • dfnsDifferenceInBusinessDays
  • dfnsGetUnixTime
  • dfnsGetWeek
  • dfnsGetWeekOfMonth
  • dfnsGetWeeksInMonth
  • dfnsGetDecade
  • dfnsGetWeekYear
  • dfnsLastDayOfDecade
  • dfnsStartOfDecade
  • dfnsStartOfWeekYear

BREAKING CHANGE:

🙌 Special thanks to @nfdevil for his contributions in this PR!