Releases: date-fns/date-fns
v2.21.0
This release is brought to you by Aleksei Korzun, Tan75, Rubens Mariuzzo, Christoph Stenglein and Clément Tamisier.
Fixed
Added
v2.20.3
Kudos to fturmel for working on the release.
Fixed
v2.20.2
Kudos to Maxim Topciu for working on the release.
Fixed
v2.20.1
This release is brought to you by Sasha Koss and Tan75.
Fixed
- Fixed
isDate
Flow typings that we broke inv2.20.0
.
v2.20.0
This release is brought to you by Sasha Koss, Maxim Topciu, tu4mo, Tan75, Ardit Dine, Carl Rosell, Roman Mahotskyi, Mateusz Krzak, fgottschalk, Anastasia Kobzar, Bilguun Ochirbat, Lesha Koss, YuLe and guyroberts21.
Fixed
-
Made
formatDistanceStrict
andformatDistanceToNowStrict
always return1 year
instead of12 months
. (#2388) -
Fixed
nextDay
,nextMonday
andnextTuesday
missing in exports and type definitions. (#2325)
Added
v2.19.0
v2.18.0
v2.17.0
Kudos to @shaykav, @davidgape89, @rikkalo, @tan75, @talgautb, @owenl131, @kylesezhi, @inigoiparragirre, @gius, @Endeauvirr and @frankyston.
Fixed
-
Fixed
differenceInMonths
for edge cases, such as the end of February dates. -
Fixed
formatDuration
week translation inpt
andpt-BR
locales. -
Made Japanese locale to use the correct value for the start of the week.
-
Fixed the short and medium date formats in the Czech locale.
Added
-
Added
intlFormat
a lightweight formatting function that uses Intl API. Eventually, it will become the default formatting function, so it's highly recommended for new code. -
Added an ability to format lowercase am/pm with
aaa
andbbb
tokens.
v2.16.1
Kudos to @aleksaps, @leedriscoll and @BanForFun for pull-requests!
Fixed
- Fixed a typo in Scottish Gaelic (gd) locale.
- Fixed typos in Serbian Latin locale.
- Fixed greek grammar for Saturday on
formatRelative
. - Removed locale snapshots from the npm package making it lighter.
v2.16.0
Kudos to @jvpelt, @piotrl, @yotamofek, @dwaxweiler, @leedriscoll and @bradevans for working on the release. Also thanks to @PascalHonegger, @pickfire, @TheJaredWilcurt, @SidKH and @nfantone for improving the documentation.
Fixed
- Added correct translations for Welsh
1 minute
and2 days
. - Fixed
formatRFC3339
formatting timezone offset with minutes. - Added missing locale type definition for
formatDuration
. - Fixed Scottish Gaelic locale issues.
Changed
- Used shorter Hebrew alternative for "about".
- Improved string arguments warning after upgrading to v2.