npm ngx-date-fns 7.0.0
v7.0.0

latest releases: 11.0.0, 11.0.0-beta.0, 10.0.1...
3 years ago

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.

Don't miss a new ngx-date-fns release

NewReleases is sending notifications on new releases.