Skip to content

Commit

Permalink
Add a change log entry
Browse files Browse the repository at this point in the history
  • Loading branch information
kossnocorp committed Jan 9, 2019
1 parent 49014c0 commit e38799a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Expand Up @@ -708,6 +708,11 @@ for the list of changes made since `v2.0.0-alpha.1`.
by all the functions, operations over `null` will also return an invalid date.
[See #537](https://github.com/date-fns/date-fns/issues/537) for the reasoning.

- **BREAKING**: `format`, `formatDistance` (previously `distanceInWords`) and
`formatDistanceStrict` (previously `distanceInWordsStrict`) now throw
`RangeError` if one the passed arguments is invalid. It reflects behavior of
`toISOString` and Intl API. See [#1032](https://github.com/date-fns/date-fns/pull/1032).

- `toDate` (previously `parse`) and `isValid` functions now accept `any` type
as the first argument.

Expand Down

0 comments on commit e38799a

Please sign in to comment.