Skip to content

Releases: joanllenas/ngx-date-fns

v8.0.0

06 Mar 12:11

Choose a tag to compare

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

21 Feb 12:20

Choose a tag to compare

Enhancements

  • All format* pipes (the ones that return string) now accept null and undefined. This was necessary to avoid type errors when using the async pipe in strict mode. (related to #347)

Misc

  • Project updated to Angular 11

v7.0.0

30 Dec 21:41

Choose a tag to compare

In this release

  • Relaxed how invalid dates are treated in format pipes.

BREAKING CHANGES

The following pipes:

  • dfnsFormatDistanceStrict
  • dfnsFormatDistanceStrictPure
  • dfnsFormatDistanceToNow
  • dfnsFormatDistanceToNowPure
  • dfnsFormatDistance
  • dfnsFormatDistancePure
  • dfnsFormat
  • dfnsFormatPure

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

24 Oct 07:59

Choose a tag to compare

Improvements

Take a look at the tree shaking guide for details.

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

v6.5.0

15 Sep 07:42

Choose a tag to compare

Features

  • Added new dfnsParseIso pipe. (docs)

Chores

  • Updated dependencies.
  • Fixed deprecations.

v6.4.0

26 Jul 18:10

Choose a tag to compare

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

19 Jul 16:35

Choose a tag to compare

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

29 Jun 19:40

Choose a tag to compare

Angular 10 support

  • See #333 for details.

Contribution by @toverux 🎉

v6.3.0

26 Apr 10:47

Choose a tag to compare

Added new pipe:

  • dfnsIsSameYear

v6.2.1

29 Mar 19:47

Choose a tag to compare

Added a few new pipes:

  • dfnsParse
  • dfnsIsToday
  • dfnsIsWeekend
  • dfnsIsSameMonth