Skip to content

Releases: joanllenas/ngx-date-fns

v11.0.0

25 Dec 22:04
Compare
Choose a tag to compare

Changes

  • date-fns v3 support

Breaking changes

  • Minimum date-fns version required is v3.0.0.
  • Minimum Angular version required is v17.0.0.

v10.0.1

07 Nov 15:34
Compare
Choose a tag to compare
  • Enable Ivy

v10.0.0

15 Jun 08:26
Compare
Choose a tag to compare
  • Angular 14 support

v9.0.0

12 Mar 09:23
Compare
Choose a tag to compare

Changes

  • Angular 13 support
  • Removed conventional commit

Breaking changes

  • This library is now compiled in Ivy partial compilation mode, which may not be compatible with older Angular versions.

v8.3.0

23 Oct 12:16
Compare
Choose a tag to compare

Added a bunch of new is* pipes:

  • dfnsIsExists
  • dfnsIsFirstDayOfMonth
  • dfnsIsFriday
  • dfnsIsLastDayOfMonth
  • dfnsIsLeapYear
  • dfnsIsMatch
  • dfnsIsMatchPure
  • dfnsIsMonday
  • dfnsIsSameDay
  • dfnsIsSameHour
  • dfnsIsSameISOWeekYear
  • dfnsIsSameISOWeek
  • dfnsIsSameMinute
  • dfnsIsSameMonth
  • dfnsIsSameQuarter
  • dfnsIsSameSecond
  • dfnsIsSameWeek
  • dfnsIsSameWeekPure
  • dfnsIsSameYear
  • dfnsIsSaturday
  • dfnsIsSunday
  • dfnsIsThisHour
  • dfnsIsThisISOWeek
  • dfnsIsThisMinute
  • dfnsIsThisMonth
  • dfnsIsThisQuarter
  • dfnsIsThisSecond
  • dfnsIsThisWeek
  • dfnsIsThisWeekPure
  • dfnsIsThisYear
  • dfnsIsThursday
  • dfnsIsToday
  • dfnsIsTomorrow
  • dfnsIsTuesday
  • dfnsIsWednesday
  • dfnsIsWithinInterval
  • dfnsIsYesterday

🎉 Great contribution by @joarkm1 🎉

v8.2.0

31 Jul 21:17
Compare
Choose a tag to compare

Features

Added two new pipes:

  • dfnsFormatRelativeToNow
  • dfnsFormatRelativeToNowPure

docs

v8.1.0

01 May 09:04
Compare
Choose a tag to compare

In this release

  • Added four new pipes:
    • dfnsFormatRelative (impure)
    • dfnsFormatRelativePure
    • dfnsFormatDistanceToNowStrict (impure)
    • dfnsFormatDistanceToNowStrictPure

🎉 Contribution by @ChrisJohns-me

v8.0.0

06 Mar 12:11
Compare
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
Compare
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
Compare
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.