Skip to content

Commit

Permalink
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -97,6 +97,30 @@ for the list of changes made since `v2.0.0-alpha.1`.

- [en-CA locale](https://github.com/date-fns/date-fns/pull/688) (kudos to [@markowsiak](https://github.com/markowsiak)).

- sv locale [is updated for v2 format](https://github.com/date-fns/date-fns/pull/749).
Kudos to [@alexandernanberg](https://github.com/alexandernanberg).

- nb locale [is updated for v2 format](https://github.com/date-fns/date-fns/pull/757).
Kudos to [@dagstuan](https://github.com/dagstuan).

- de locale [is updated for v2 format](https://github.com/date-fns/date-fns/pull/766).
Kudos to [@pex](https://github.com/pex).

- uk locale [is updated for v2 format](https://github.com/date-fns/date-fns/pull/769).
Kudos to [@shcherbyakdev](https://github.com/shcherbyakdev).

- fr locale [is updated for v2 format](https://github.com/date-fns/date-fns/pull/778).
Kudos to [@Lakston](https://github.com/Lakston ).

- zh-CN locale [is updated for v2 format](https://github.com/date-fns/date-fns/pull/792).
Kudos to [@cubicwork](https://github.com/cubicwork).

- es locale [is updated for v2 format](https://github.com/date-fns/date-fns/pull/792).
Kudos to [@YagoCarballo](https://github.com/YagoCarballo).

- pt-BR locale [is updated for v2 format](https://github.com/date-fns/date-fns/pull/807).
Thanks to [@YagoCarballo](https://github.com/YagoCarballo) again!

- New locale-dependent week-numbering year helpers:

- `getWeek`
@@ -530,6 +554,14 @@ for the list of changes made since `v2.0.0-alpha.1`.
parse('2016-01-01', 'yyyy-MM-dd', new Date())
```

- **BREAKING**: `toDate` now validates separate date and time values in ISO-8601 strings
and returns `Invalid Date` if the date is invalid.

```javascript
toDate('2018-13-32')
//=> Invalid Date
```

- **BREAKING**: `toDate` now doesn't fall back to `new Date` constructor
if it fails to parse a string argument. Instead, it returns `Invalid Date`.

0 comments on commit 616ca1b

Please sign in to comment.