UNPKG

91 kBMarkdownView Raw
1# Change Log
2
3All notable changes to this project will be documented in this file.
4This project adheres to [Semantic Versioning].
5
6This change log follows the format documented in [Keep a CHANGELOG].
7
8[semantic versioning]: http://semver.org/
9[keep a changelog]: http://keepachangelog.com/
10
11## v2.21.0 - 2021-04-14
12
13This release is brought to you by [Aleksei Korzun](http://github.com/a-korzun), [Tan75](http://github.com/tan75), [Rubens Mariuzzo](http://github.com/rmariuzzo), [Christoph Stenglein](http://github.com/cstenglein) and [Clément Tamisier](http://github.com/ctamisier).
14
15### Fixed
16
17- [Made `formatDistanceStrict` return `12 months` instead of `1 year` when `unit: 'month'`.](https://github.com/date-fns/date-fns/pull/2411)
18
19### Added
20
21- [Added Haitian Creole (`ht`) locale.](https://github.com/date-fns/date-fns/pull/2396)
22
23## v2.20.3 - 2021-04-13
24
25Kudos to [fturmel](http://github.com/fturmel) for working on the release.
26
27### Fixed
28
29- [Fixed broken tree-shaking caused by missing links to corresponding ESM.](https://github.com/date-fns/date-fns/pull/2339) ([#2207](https://github.com/date-fns/date-fns/issues/2207))
30
31## v2.20.2 - 2021-04-12
32
33Kudos to [Maxim Topciu](http://github.com/maximtop) for working on the release.
34
35### Fixed
36
37- [Fixed IE11 incompatibility caused by the usage of spread syntax.](https://github.com/date-fns/date-fns/pull/2407) ([#2408](https://github.com/date-fns/date-fns/issues/2408))
38
39## v2.20.1 - 2021-04-09
40
41This release is brought to you by [Sasha Koss](http://github.com/kossnocorp) and [Tan75](http://github.com/tan75).
42
43### Fixed
44
45- Fixed `isDate` Flow typings that we broke in `v2.20.0`.
46
47## v2.20.0 - 2021-04-08
48
49This release is brought to you by [Sasha Koss](http://github.com/kossnocorp), [Maxim Topciu](http://github.com/maximtop), [tu4mo](http://github.com/tu4mo), [Tan75](http://github.com/tan75), [Ardit Dine](http://github.com/arditdine), [Carl Rosell](http://github.com/CarlRosell), [Roman Mahotskyi](http://github.com/enheit), [Mateusz Krzak](http://github.com/mateuszkrzak), [fgottschalk](http://github.com/fgottschalk), [Anastasia Kobzar](http://github.com/rikkalo), [Bilguun Ochirbat](http://github.com/bilguun0203), [Lesha Koss](http://github.com/leshakoss), [YuLe](http://github.com/yuler) and [guyroberts21](http://github.com/guyroberts21).
50
51### Fixed
52
53- [Made `formatDistanceStrict` and `formatDistanceToNowStrict` always return `1 year` instead of `12 months`.](https://github.com/date-fns/date-fns/pull/2391) ([#2388](https://github.com/date-fns/date-fns/issues/2388))
54
55- Fixed `nextDay`, `nextMonday` and `nextTuesday` missing in exports and type definitions. ([#2325](https://github.com/date-fns/date-fns/issues/2325))
56
57- [Fixed a DST bug in `formatDistanceStrict`.](https://github.com/date-fns/date-fns/pull/2329) ([#2307](https://github.com/date-fns/date-fns/issues/2307))
58
59### Added
60
61- [Added new `eachMinuteOfInterval` function.](https://github.com/date-fns/date-fns/pull/2382)
62
63- [Added Albanian (`sq`) locale](https://github.com/date-fns/date-fns/pull/2290)
64
65- [Added Mongolian (`mn`) locale](https://github.com/date-fns/date-fns/pull/1961)
66
67- [Added `nextWednesday`, `nextThursday`, `nextFriday`, `nextSaturday` and `nextSunday`.](https://github.com/date-fns/date-fns/pull/2291)
68
69## v2.19.0 - 2021-03-05
70
71On this release worked [Tan75](http://github.com/tan75).
72
73### Fixed
74
75- [Assigned the correct `firstWeekContainsDate` value (`4`) for the French locale.](https://github.com/date-fns/date-fns/pull/2273) ([#2148](https://github.com/date-fns/date-fns/issues/2148))
76
77- [Fixed torsdag abbreviation in the Swedish locale.](https://github.com/date-fns/date-fns/pull/2220)
78
79- [Fixed a bug in `differenceInMonths` and `intervalToDuration` that occurs when dealing with the 28th of February.](https://github.com/date-fns/date-fns/pull/2256) ([#2255](https://github.com/date-fns/date-fns/issues/2255))
80
81### Added
82
83- [Added new functions: `nextDay`, `nextMonday` and `nextTuesday` that allows getting the next day of the week, Monday or Tuesday respectively.](https://github.com/date-fns/date-fns/pull/2214)
84
85## v2.18.0 - 2021-03-01
86
87Thanks to [Tan75](http://github.com/tan75) and [Lesha Koss](http://github.com/leshakoss).
88
89### Fixed
90
91- [Fixed documentation missing for `intlFormat`.](https://github.com/date-fns/date-fns/pull/2259) ([#2258](https://github.com/date-fns/date-fns/issues/2258))
92
93- [Fixed date formats in the Latvian locale.](https://github.com/date-fns/date-fns/pull/2205) ([#2202](https://github.com/date-fns/date-fns/issues/2202))
94
95### Added
96
97- [Added support of positive and negative offsets in `parseJSON`.](https://github.com/date-fns/date-fns/pull/2200) ([#2149](https://github.com/date-fns/date-fns/issues/2149))
98
99## [2.17.0] - 2021-02-05
100
101Kudos to [@shaykav](https://github.com/date-fns/date-fns/pull/1952), [@davidgape89](https://github.com/davidgape89), [@rikkalo](https://github.com/rikkalo), [@tan75](https://github.com/tan75), [@talgautb](https://github.com/talgautb), [@owenl131](https://github.com/owenl131), [@kylesezhi](https://github.com/kylesezhi), [@inigoiparragirre](https://github.com/inigoiparragirre), [@gius](https://github.com/gius), [@Endeauvirr](https://github.com/Endeauvirr) and [@frankyston](https://github.com/frankyston).
102
103### Fixed
104
105- [Fixed Russian locale parsing issue](https://github.com/date-fns/date-fns/pull/1950).
106
107- [Fixed `differenceInMonths` for edge cases, such as the end of February dates](https://github.com/date-fns/date-fns/pull/2185).
108
109- [Fixed suffixes for the Kazakh locale](https://github.com/date-fns/date-fns/pull/2010).
110
111- [Fixed `formatDuration` week translation in `pt` and `pt-BR` locales](https://github.com/date-fns/date-fns/pull/2125).
112
113- [Made Japanese locale to use the correct value for the start of the week](https://github.com/date-fns/date-fns/pull/2099).
114
115- [Adjusted date formats in the Basque locale](https://github.com/date-fns/date-fns/pull/2080).
116
117- [Fixed the short and medium date formats in the Czech locale](https://github.com/date-fns/date-fns/pull/2111).
118
119- [Adjusted the Polish translations of `formatDistance`](https://github.com/date-fns/date-fns/pull/2187).
120
121- [Fixed the week's abbreviations in the Brazilian Portuguese](https://github.com/date-fns/date-fns/pull/2170).
122
123### Added
124
125- [Added `intlFormat`](https://github.com/date-fns/date-fns/pull/2172) a lightweight formatting function that uses [Intl API](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl). Eventually, it will become the default formatting function, so it's highly recommended for new code.
126
127- [Added `en-ZA` locale](https://github.com/date-fns/date-fns/pull/1952).
128
129- [Added an ability to format lowercase am/pm with `aaa` and `bbb` tokens](https://github.com/date-fns/date-fns/pull/2016).
130
131- [Added ordinal formatting for Japanese year values](https://github.com/date-fns/date-fns/pull/2177/files).
132
133## [2.16.1] - 2020-07-31
134
135Kudos to [@aleksaps](https://github.com/aleksaps), [@leedriscoll](https://github.com/leedriscoll) and [@BanForFun](https://github.com/BanForFun) for pull-requests!
136
137### Fixed
138
139- [Fixed a typo in Scottish Gaelic (gd) locale](https://github.com/date-fns/date-fns/pull/1925).
140- [Fixed typos in Serbian Latin locale](https://github.com/date-fns/date-fns/pull/1928).
141- [Fixed greek grammar for Saturday on `formatRelative`](https://github.com/date-fns/date-fns/pull/1930).
142- Removed locale snapshots from the npm package making it lighter.
143
144## [2.16.0] - 2020-08-27
145
146Kudos to [@jvpelt](https://github.com/jvpelt), [@piotrl](https://github.com/piotrl), [@yotamofek](https://github.com/yotamofek), [@dwaxweiler](https://github.com/dwaxweiler), [@leedriscoll](https://github.com/leedriscoll) and [@bradevans](https://github.com/bradevans) for working on the release. Also thanks to [@PascalHonegger](https://github.com/PascalHonegger), [@pickfire](https://github.com/pickfire), [@TheJaredWilcurt](https://github.com/TheJaredWilcurt), [@SidKH](https://github.com/SidKH) and [@nfantone](https://github.com/nfantone) for improving the documentation.
147
148### Fixed
149
150- [Added correct translations for Welsh `1 minute` and `2 days`](https://github.com/date-fns/date-fns/pull/1903).
151- [Fixed `formatRFC3339` formatting timezone offset with minutes](https://github.com/date-fns/date-fns/pull/1890).
152- [Added missing locale type definition for `formatDuration`](https://github.com/date-fns/date-fns/pull/1881)
153- [Fixed Scottish Gaelic locale issues](https://github.com/date-fns/date-fns/pull/1914).
154
155### Changed
156
157- [Used shorter Hebrew alternative for "about"](https://github.com/date-fns/date-fns/pull/1893).
158- [Improved string arguments warning after upgrading to v2](https://github.com/date-fns/date-fns/pull/1910).
159
160### Added
161
162- [Added Luxembourgish (lb) locale](https://github.com/date-fns/date-fns/pull/1900).
163
164## [2.15.0] - 2020-07-17
165
166Thanks to [@belgamo](https://github.com/belgamo), [@Matsuuu](https://github.com/Matsuuu), [@Imballinst](https://github.com/Imballinst), [@arsnyder16](https://github.com/arsnyder16), [@pankajupadhyay29](https://github.com/pankajupadhyay29), [@DCBN](https://github.com/DCBN), [@leedriscoll](https://github.com/leedriscoll), [@gottsohn](https://github.com/gottsohn), [@mukuljainx](https://github.com/mukuljainx) and [@dtriana](https://github.com/dtriana) for working on the release. Also kudos to [@KidkArolis](https://github.com/KidkArolis), [@imgx64](https://github.com/imgx64), [@fjc0k](https://github.com/fjc0k), [@wmonk](https://github.com/wmonk), [@djD-REK](https://github.com/djD-REK), [@dandv](https://github.com/dandv), [@psimk](https://github.com/psimk) and [@brimworks](https://github.com/brimworks) for improving the documentation.
167
168### Fixed
169
170- [Fixed behavior of `addBusinessDays` when input date is a weekend day](https://github.com/date-fns/date-fns/pull/1790).
171- [Fixed `parseISO` not returning `Invalid Date` on incorrect string when there are spaces in it](https://github.com/date-fns/date-fns/pull/1791).
172- [Fixed `es` round-tripping dates with Wednesday](https://github.com/date-fns/date-fns/pull/1792).
173- [Fixed round-trip bug with `d`/`EEEE` ordering in tokens like `PPPPP`](https://github.com/date-fns/date-fns/pull/1795).
174- [Fixed issues with parsing values in Japanese](https://github.com/date-fns/date-fns/pull/1807).
175- [Fixed Hungarian breaking IE11](https://github.com/date-fns/date-fns/pull/1842).
176- [Fixed Spanish accents in Saturday and Wednesday](https://github.com/date-fns/date-fns/pull/1872).
177
178### Changed
179
180- [Improved the message of protected tokens error](https://github.com/date-fns/date-fns/pull/1641).
181
182### Added
183
184- [Added Swiss-French `fr-CH` locale](https://github.com/date-fns/date-fns/pull/1809).
185- [Added Flemish `nl-BE` locale](https://github.com/date-fns/date-fns/pull/1812).
186- [Added Scottish Gaelic `gd` locale](https://github.com/date-fns/date-fns/pull/1832).
187- [Added New Zealand English `en-NZ` locale](https://github.com/date-fns/date-fns/pull/1835).
188- [Added `isMatch` function](https://github.com/date-fns/date-fns/pull/1868).
189
190## [2.14.0] - 2020-05-18
191
192Kudos to [@julamb](https://github.com/julamb), [@JacobSoderblom](https://github.com/JacobSoderblom), [@justingrant](http://github.com/justingrant), [@dragunoff](https://github.com/dragunoff), [@jmate0321](https://github.com/jmate0321), [@gbhasha](https://github.com/gbhasha), [@rasck](https://github.com/rasck), [@AlbertoPdRF](https://github.com/AlbertoPdRF), [@sebastianhaberey](https://github.com/sebastianhaberey) and [@giogonzo](https://github.com/giogonzo) for working on the release!
193
194### Fixed
195
196- [Fixed DST issues with `add`, `addDays` and `addMonths`](https://github.com/date-fns/date-fns/pull/1760).
197- [Fixed "quarter" translation in the Bulgarian locale](https://github.com/date-fns/date-fns/pull/1763).
198- [Fixed `formatDistance` strings in the Hungarian locale](https://github.com/date-fns/date-fns/pull/1765).
199- [Fixed Danish month abbreviations](https://github.com/date-fns/date-fns/pull/1774).
200- [Fixed parsing of mei in the Dutch locale](https://github.com/date-fns/date-fns/pull/1774).
201- [Fixed missing preposition in `formatLong` in the Spanish locale](https://github.com/date-fns/date-fns/pull/1775).
202- [Fixed `formatRelative` in the Italian locale](https://github.com/date-fns/date-fns/pull/1777).
203
204### Added
205
206- [Added `eachQuarterOfInterval`](https://github.com/date-fns/date-fns/pull/1715).
207- [Added Basque (`eu`) locale](https://github.com/date-fns/date-fns/pull/1759).
208- [Added Indian English (`en-IN`) locale](https://github.com/date-fns/date-fns/pull/1767).
209- [Added `eachHourOfInterval`](https://github.com/date-fns/date-fns/pull/1776).
210
211## [2.13.0] - 2020-05-06
212
213Thanks to [@JorenVos](https://github.com/JorenVos), [@developergouli](https://github.com/developergouli), [@rhlowe](https://github.com/rhlowe) and [@justingrant](http://github.com/justingrant) for working on the release!
214
215### Fixed
216
217- [Fixed mei abbreviation in the Dutch locale](https://github.com/date-fns/date-fns/pull/1752).
218- [Fixed `differenceInDays` DST behavior broken in 2.12.0](https://github.com/date-fns/date-fns/pull/1754).
219
220### Added
221
222- [Added Kannada locale support](https://github.com/date-fns/date-fns/pull/1747).
223- [Added `formatISODuration` function](https://github.com/date-fns/date-fns/pull/1713).
224- [Added `intervalToDuration` function](https://github.com/date-fns/date-fns/pull/1713).
225
226## [2.12.0] - 2020-04-09
227
228Kudos to [@leshakoss](http://github.com/leshakoss), [@skyuplam](https://github.com/skyuplam), [@so99ynoodles](https://github.com/so99ynoodles), [@dkozickis](https://github.com/dkozickis), [@belgamo](https://github.com/belgamo), [@akgondber](https://github.com/akgondber), [@dcousens](https://github.com/dcousens) and [@BoomDev](https://github.com/BoomDev) for working on the release!
229
230### Fixed
231
232- [Fixed minulý štvrtok in Slovak locale](https://github.com/date-fns/date-fns/pull/1701).
233- Fixed date ordinalNumber for [ja/zh-CN/zh-TW](https://github.com/date-fns/date-fns/pull/1690) and [ko](https://github.com/date-fns/date-fns/pull/1696).
234- [Fixed quarters parsing](https://github.com/date-fns/date-fns/pull/1694).
235- [Fixed `setDay` with `weekStartsOn` != 0](https://github.com/date-fns/date-fns/pull/1639).
236- [Fixed differenceInDays across DST](https://github.com/date-fns/date-fns/pull/1630).
237- [Fixed required arguments exception message](https://github.com/date-fns/date-fns/pull/1674).
238
239### Added
240
241- [Added new function `formatDistanceToNowStrict`](https://github.com/date-fns/date-fns/pull/1679).
242
243## [2.11.1] - 2020-03-26
244
245### Fixed
246
247- Rebuilt TypeScript and flow types.
248
249## [2.11.0] - 2020-03-13
250
251Kudos to [@oakhan3](https://github.com/oakhan3), [@Mukhammadali](https://github.com/Mukhammadali), [@altrim](https://github.com/altrim), [@leepowellcouk](https://github.com/leepowellcouk), [@amatzon](@https://github.com/amatzon), [@bryanMt](https://github.com/bryanMt), [@kalekseev](https://github.com/kalekseev), [@eugene-platov](https://github.com/eugene-platov) and [@tjrobinson](https://github.com/tjrobinson) for working on the release.
252
253### Fixed
254
255- [Fixed a bug in `differenceInYears` causing incorrect results when the left date is a leap day](https://github.com/date-fns/date-fns/pull/1654).
256- [Fixed `parseISO` to work correctly around time shift dates](https://github.com/date-fns/date-fns/pull/1667).
257- [Fixed `format` to work correctly with GMT-0752/GMT-0456 and similar timezones](https://github.com/date-fns/date-fns/pull/1666).
258
259### Changed
260
261- [Changed `getDay` typings to return `0|1|2|3|4|5|6` instead of `number`](https://github.com/date-fns/date-fns/pull/1668).
262- [Improved Chinese locale](https://github.com/date-fns/date-fns/pull/1664):
263 - Change date format to meet the national standard (GB/T 7408-2005).
264 - Improve `ordinalNumber` function behavior.
265 - Add prefix in `formatRelative` depending on if it's a current week or not.
266
267### Added
268
269- [Added Uzbek `uz` locale](https://github.com/date-fns/date-fns/pull/1648).
270- [Updated Macedonian locale for v2](https://github.com/date-fns/date-fns/pull/1649).
271- [Added Maltese `mt` locale](https://github.com/date-fns/date-fns/pull/1658).
272
273## [2.10.0] - 2020-02-25
274
275### Fixed
276
277- [Fixed `formatISO` when formatting time with timezones with minute offsets > 0](https://github.com/date-fns/date-fns/pull/1599). Kudos to [@dcRUSTy](https://github.com/dcRUSTy).
278
279### Fixed
280
281- Fixed a bug in setDay when using weekStartsOn that is not 0
282
283### Added
284
285- [Added `weeks` to `Duration`](https://github.com/date-fns/date-fns/pull/1592).
286- [Added `weeks` support to `add` and `sub`](https://github.com/date-fns/date-fns/pull/1592).
287- [Added details message in `throwProtectedError`](https://github.com/date-fns/date-fns/pull/1592).
288
289## [2.9.0] - 2020-01-08
290
291Thanks to [@mborgbrant](https://github.com/mborgbrant), [@saintplay](https://github.com/saintplay), [@mrenty](https://github.com/mrenty), [@kibertoad](https://github.com/kibertoad), [@levibuzolic](https://github.com/levibuzolic), [@Anshuman71](https://github.com/Anshuman71), [@talgautb](https://github.com/talgautb), [@filipjuza](https://github.com/filipjuza), [@tobyzerner](https://github.com/tobyzerner), [@emil9453](https://github.com/emil9453), [@fintara](https://github.com/fintara), [@pascaliske](https://github.com/pascaliske), [@rramiachraf](https://github.com/rramiachraf), [@marnusw](https://github.com/marnusw) and [@Imballinst](https://github.com/Imballinst) for working on the release.
292
293### Fixed
294
295- [Fixed a bug with addBusinessDays returning the Tuesday when adding 1 day on weekends. Now it returns the Monday](https://github.com/date-fns/date-fns/pull/1588).
296- [Added missing timezone to `formatISO`](https://github.com/date-fns/date-fns/pull/1576).
297- [Removed dots from short day period names in the Kazakh locale](https://github.com/date-fns/date-fns/pull/1512).
298- [Fixed typo in formatDistance in the Czech locale](https://github.com/date-fns/date-fns/pull/1540).
299- [Fixed shortenings in the Bulgarian locale](https://github.com/date-fns/date-fns/pull/1560).
300- [Fixed regex for the May in the Portuguese locale](https://github.com/date-fns/date-fns/pull/1565).
301
302### Added
303
304- [Added `eachMonthOfInterval` and `eachYearOfInterval`](https://github.com/date-fns/date-fns/pull/618).
305- [Added `inclusive` option to `areIntervalsOverlapping](https://github.com/date-fns/date-fns/pull/643).
306- [Added `isExists` function that checks if the given date is exists](https://github.com/date-fns/date-fns/pull/682).
307- [Added `add` function to add seconds, minutes, hours, weeks, years in single call](https://github.com/date-fns/date-fns/pull/1581).
308- [Added `sub` function, the opposite of `add`](https://github.com/date-fns/date-fns/pull/1583).
309- [Added `Duration` type used in `add` and `sub`](https://github.com/date-fns/date-fns/pull/1583).
310- [Added Azerbaijani (az) locale](https://github.com/date-fns/date-fns/pull/1547).
311- [Added Moroccan Arabic (ar-MA) locale](https://github.com/date-fns/date-fns/pull/1578).
312
313### Changed
314
315- [Reduced the total minified build size by 1Kb/4%](https://github.com/date-fns/date-fns/pull/1563).
316- [Made all properties in `Locale` type optional](https://github.com/date-fns/date-fns/pull/1542).
317- [Added missing properties to `Locale` type](https://github.com/date-fns/date-fns/pull/1542).
318- [Add the locale code to `Locale` type](https://github.com/date-fns/date-fns/pull/1580).
319- [Added support of space time separator to `parseJSON`](https://github.com/date-fns/date-fns/pull/1579).
320- [Allowed up to 7 digits in milliseconds in `parseJSON`](https://github.com/date-fns/date-fns/pull/1579).
321
322## [2.8.1] - 2019-11-22
323
324Thanks to [@Imballinst](https://github.com/Imballinst) for the bug fix!
325
326### Fixed
327
328- [Add colon between the hour and minutes for `formatRFC3339`](https://github.com/date-fns/date-fns/pull/1549). [See #1548](https://github.com/date-fns/date-fns/issues/1548).
329
330## [2.8.0] - 2019-11-19
331
332Kudos to [@NaridaL](https://github.com/NaridaL), [@Zyten](https://github.com/Zyten), [@Imballinst](https://github.com/Imballinst), [@leshakoss](https://github.com/leshakoss) and [@Neorth](https://github.com/Neorth) for working on the release.
333
334### Fixed
335
336- [Remove the next week preposition in the Swedish locale](https://github.com/date-fns/date-fns/pull/1538).
337
338### Added
339
340- [Added Malay (ms) locale](https://github.com/date-fns/date-fns/pull/1537).
341- [Added `formatISO`, `formatISO9075`, `formatRFC3339`, and `formatRFC7231` functions](https://github.com/date-fns/date-fns/pull/1536).
342
343## [2.7.0] - 2019-11-07
344
345Thanks to [@mzgajner](https://github.com/mzgajner), [@NaridaL](https://github.com/NaridaL), [@Zyten](https://github.com/Zyten), [@leshakoss](https://github.com/leshakoss), [@fintara](https://github.com/fintara), [@kpr-hellofresh](https://github.com/kpr-hellofresh) for contributing to the release.
346
347### Fixed
348
349- [Fixed a mistake in the Slovenian locale](https://github.com/date-fns/date-fns/pull/1529).
350- [Fixed incorrect behavior of `parseISO` in Firefox caused by differences in `getTimezoneOffset`](https://github.com/date-fns/date-fns/pull/1495).
351
352### Changed
353
354- [Make object arguments types more elaborate in Flow type definitions](https://github.com/date-fns/date-fns/pull/1519).
355- [Get rid of deprecated Function in Flow type definitions](https://github.com/date-fns/date-fns/pull/1520).
356- [Allow `parseJSON` to accept strings without trailing 'Z' symbol and with up to 6 digits in the milliseconds' field](https://github.com/date-fns/date-fns/pull/1499).
357
358### Added
359
360- [Added Bulgarian (bg) locale](https://github.com/date-fns/date-fns/pull/1522).
361
362## [2.6.0] - 2019-10-22
363
364Kudos to [@marnusw](https://github.com/marnusw), [@cdrikd](https://github.com/cdrikd) and [@rogyvoje](https://github.com/rogyvoje) for working on the release!
365
366### Added
367
368- [Added `parseJSON` - lightweight function (just 411 B) that parses dates formatted with `toJSON`](https://github.com/date-fns/date-fns/pull/1463).
369- [Added the language code to each locale](https://github.com/date-fns/date-fns/pull/1489).
370- [Added `subBusinessDays` function](https://github.com/date-fns/date-fns/pull/1491).
371- [Added both Serbian - cyrillic (sr) and latin (sr-Latn) locales](https://github.com/date-fns/date-fns/pull/1494).
372
373## [2.5.1] - 2019-10-18
374
375Thanks to [@mitchellbutler](https://github.com/mitchellbutler) for the bug fix!
376
377### Fixed
378
379- [Fixed infinite loop in `addBusinessDays`](https://github.com/date-fns/date-fns/pull/1486).
380
381## [2.5.0] - 2019-10-16
382
383Kudos to [@dkozickis](https://github.com/dkozickis), [@drugoi](https://github.com/drugoi), [@kranthilakum](https://github.com/kranthilakum), [@102](https://github.com/102), [@gpetrioli](https://github.com/gpetrioli) and [@JulienMalige](https://github.com/JulienMalige) for making the release happen.
384
385### Fixed
386
387- [Fixed compatibility with IE11 by removing `findIndex` from the code](https://github.com/date-fns/date-fns/pull/1457).
388- [Fixed Greek locale patterns](https://github.com/date-fns/date-fns/pull/1480).
389
390### Added
391
392- [Added Kazakh (kk) locale](https://github.com/date-fns/date-fns/pull/1460).
393- [Added Telugu (te) locale](https://github.com/date-fns/date-fns/pull/1464).
394- [Added Canadian French (fr-CA) locale](https://github.com/date-fns/date-fns/issues/1465).
395- [Added Australian English (en-AU) locale](https://github.com/date-fns/date-fns/pull/1470).
396- [Exported `Interval` and `Locale` types from Flow typings](https://github.com/date-fns/date-fns/pull/1475).
397
398## [2.4.1] - 2019-09-28
399
400Thanks to [@mrclayman](https://github.com/mrclayman) for reporting the issue and [@leshakoss](https://github.com/leshakoss) for fixing it.
401
402### Fixed
403
404- [Fixed am/pm mixup in the Czech locale](https://github.com/date-fns/date-fns/pull/1453).
405
406## [2.4.0] - 2019-09-27
407
408This release brought to you by these amazing people: [@lovelovedokidoki](https://github.com/lovelovedokidoki), [@alexigityan](https://github.com/alexigityan), [@kalekseev](https://github.com/kalekseev) and [@andybangs](https://github.com/andybangs). You rock!
409
410### Fixed
411
412- [Fixed Vietnamese parsing patterns](https://github.com/date-fns/date-fns/pull/1445).
413- [Fixed Czech parsing regexes](https://github.com/date-fns/date-fns/pull/1446).
414- [Fixed offset for Eastern Hemisphere in `parseISO`](https://github.com/date-fns/date-fns/pull/1450).
415
416### Added
417
418- [Added Armenian locale support](https://github.com/date-fns/date-fns/pull/1448).
419
420## [2.3.0] - 2019-09-24
421
422Huge thanks to [@lovelovedokidoki](https://github.com/lovelovedokidoki) who improved 8 (!) locales in an unstoppable open-source rampage and [@VesterDe](https://github.com/VesterDe) for fixing Slovenian locale 👏
423
424### Fixed
425
426- [Fixed the translation of "yesterday" in the Slovenian locale](https://github.com/date-fns/date-fns/pull/1420).
427- [Fixed French parsing issues with June and August](https://github.com/date-fns/date-fns/pull/1430).
428- [Improved Turkish parsing](https://github.com/date-fns/date-fns/pull/1432).
429- [Fixed "March" in Dutch parsing patterns](https://github.com/date-fns/date-fns/pull/1433).
430- [Fixed Hindi parsing patterns](https://github.com/date-fns/date-fns/pull/1434).
431
432### Added
433
434- [Added Finnish matching patterns](https://github.com/date-fns/date-fns/pull/1425).
435- [Accept abbreviated March, June, July in Norwegian locales](https://github.com/date-fns/date-fns/pull/1431).
436- [Added parsing for Greek months with long formatting](https://github.com/date-fns/date-fns/pull/1435).
437
438## [2.2.1] - 2019-09-12
439
440Kudos to date-fns contributors: [@mzgajner](https://github.com/mzgajner), [@sibiraj-s](https://github.com/sibiraj-s), [@mukeshmandiwal](https://github.com/mukeshmandiwal), [@SneakyFish5](https://github.com/SneakyFish5) and [@CarterLi](https://github.com/CarterLi).
441
442### Added
443
444- [Added new `set` function](https://github.com/date-fns/date-fns/pull/1398).
445- [Updated Slovenian (sl) locale for v2](https://github.com/date-fns/date-fns/pull/1418).
446- [Added Tamil (ta) locale](https://github.com/date-fns/date-fns/pull/1411).
447- [Added Hindi (hi) locale](https://github.com/date-fns/date-fns/pull/1409).
448- [Added support of `\n` in `format`, `lightFormat` and `parse`](https://github.com/date-fns/date-fns/pull/1417).
449
450## [2.1.0] - 2019-09-06
451
452Thanks to date-fns contributors: [@ManadayM](https://github.com/ManadayM), [@illuminist](https://github.com/illuminist), [@visualfanatic](https://github.com/visualfanatic), [@vsaarinen](https://github.com/vsaarinen) and at least but not least [@leshakoss](https://github.com/leshakoss)!
453
454### Fixed
455
456- [Set start of the week to the Sunday for Thai locale](https://github.com/date-fns/date-fns/pull/1402).
457- [Fixed month matching in Polish locale](https://github.com/date-fns/date-fns/pull/1404).
458- [Fixed `eachWeekendOfInterval` skipping the first date in the supplied interval](https://github.com/date-fns/date-fns/pull/1407).
459
460### Added
461
462- [Added Gujarati locale](https://github.com/date-fns/date-fns/pull/1400).
463
464## [2.0.1] - 2019-08-23
465
466### Fixed
467
468- [Fix](https://github.com/date-fns/date-fns/pull/1046) `getWeekOfMonth` with `options.weekStartsOn` set to 1 [not working for Sundays](https://github.com/date-fns/date-fns/issues/1040). Kudos to [@waseemahmad31](https://github.com/waseemahmad31)!
469
470## [2.0.0] - 2019-08-20
471
472If you're upgrading from v2 alpha or beta, [see the pre-release changelog](https://gist.github.com/kossnocorp/a307a464760b405bb78ef5020a4ab136).
473
474### Fixed
475
476- Fix the `toDate` bug occurring when parsing ISO-8601 style dates (but not valid ISO format)
477 with a trailing Z (e.g `2012-01Z`), it returned Invalid Date for FireFox/IE11 [#510](https://github.com/date-fns/date-fns/issue/510)
478
479- Fix `differenceIn...` functions returning negative zero in some cases:
480 [#692](https://github.com/date-fns/date-fns/issues/692)
481
482- `isDate` now works properly with dates passed across iframes [#754](https://github.com/date-fns/date-fns/pull/754).
483
484- Fix a few bugs that appear in timezones with offsets that include seconds (e.g. GMT+00:57:44).
485 See PR [#789](https://github.com/date-fns/date-fns/pull/789).
486
487- [Fixed DST issue](https://github.com/date-fns/date-fns/pull/1003). See [#972](https://github.com/date-fns/date-fns/issues/972) and [#992](https://github.com/date-fns/date-fns/issues/992) for more details.
488
489- Fixed DST issue in `eachDayOfInterval` that caused time in the days
490 after DST change to have the shift as well.
491
492- Fix bug in Galician locale caused by incorrect usage of `getHours`
493 instead of `getUTCHours`.
494
495### Changed
496
497- **BREAKING**: now functions don't accept string arguments, but only
498 numbers or dates. When a string is passed, it will result in
499 an unexpected result (`Invalid Date`, `NaN`, etc).
500
501 From now on a string should be parsed using `parseISO` (ISO 8601)
502 or `parse`.
503
504 In v1 we've used `new Date()` to parse strings, but it resulted in many
505 hard-to-track bugs caused by inconsistencies in different browsers.
506 To address that we've implemented our ISO 8601 parser but that made
507 library to significantly grow in size. To prevent inevitable bugs
508 and keep the library tiny, we made this trade-off.
509
510 See [this post](https://blog.date-fns.org/post/we-cut-date-fns-v2-minimal-build-size-down-to-300-bytes-and-now-its-the-smallest-date-library-18f2nvh2z0yal) for more details.
511
512 ```javascript
513 // Before v2.0.0
514 addDays('2016-01-01', 1)
515
516 // v2.0.0 onward
517 addDays(parseISO('2016-01-01'), 1)
518 ```
519
520- **BREAKING**: new format string API for `format` function
521 which is based on [Unicode Technical Standard #35](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table).
522 See [this post](https://blog.date-fns.org/post/unicode-tokens-in-date-fns-v2-sreatyki91jg) for more details.
523
524 | Unit | v2 Pattern | v1 Pattern | Result examples |
525 | ------------------------------- | ---------- | ---------- | --------------------------------- |
526 | Era | G..GGG | | AD, BC |
527 | | GGGG | | Anno Domini, Before Christ |
528 | | GGGGG | | A, B |
529 | Calendar year | y | | 44, 1, 1900, 2017 |
530 | | yo | | 44th, 1st, 0th, 17th |
531 | | yy | YY | 44, 01, 00, 17 |
532 | | yyy | | 044, 001, 1900, 2017 |
533 | | yyyy | YYYY | 0044, 0001, 1900, 2017 |
534 | | yyyyy | | ... |
535 | Local week-numbering year | Y | | 44, 1, 1900, 2017 |
536 | | Yo | | 44th, 1st, 1900th, 2017th |
537 | | YY | | 44, 01, 00, 17 |
538 | | YYY | | 044, 001, 1900, 2017 |
539 | | YYYY | | 0044, 0001, 1900, 2017 |
540 | | YYYYY | | ... |
541 | ISO week-numbering year | R | | -43, 0, 1, 1900, 2017 |
542 | | RR | GG | -43, 00, 01, 1900, 2017 |
543 | | RRR | | -043, 000, 001, 1900, 2017 |
544 | | RRRR | GGGG | -0043, 0000, 0001, 1900, 2017 |
545 | | RRRRR | | ... |
546 | Extended year | u | | -43, 0, 1, 1900, 2017 |
547 | | uu | | -43, 01, 1900, 2017 |
548 | | uuu | | -043, 001, 1900, 2017 |
549 | | uuuu | | -0043, 0001, 1900, 2017 |
550 | | uuuuu | | ... |
551 | Quarter (formatting) | Q | | 1, 2, 3, 4 |
552 | | Qo | | 1st, 2nd, 3rd, 4th |
553 | | QQ | | 01, 02, 03, 04 |
554 | | QQQ | | Q1, Q2, Q3, Q4 |
555 | | QQQQ | | 1st quarter, 2nd quarter, ... |
556 | | QQQQQ | | 1, 2, 3, 4 |
557 | Quarter (stand-alone) | q | Q | 1, 2, 3, 4 |
558 | | qo | Qo | 1st, 2nd, 3rd, 4th |
559 | | qq | | 01, 02, 03, 04 |
560 | | qqq | | Q1, Q2, Q3, Q4 |
561 | | qqqq | | 1st quarter, 2nd quarter, ... |
562 | | qqqqq | | 1, 2, 3, 4 |
563 | Month (formatting) | M | | 1, 2, ..., 12 |
564 | | Mo | | 1st, 2nd, ..., 12th |
565 | | MM | | 01, 02, ..., 12 |
566 | | MMM | | Jan, Feb, ..., Dec |
567 | | MMMM | | January, February, ..., December |
568 | | MMMMM | | J, F, ..., D |
569 | Month (stand-alone) | L | M | 1, 2, ..., 12 |
570 | | Lo | | 1st, 2nd, ..., 12th |
571 | | LL | MM | 01, 02, ..., 12 |
572 | | LLL | MMM | Jan, Feb, ..., Dec |
573 | | LLLL | MMMM | January, February, ..., December |
574 | | LLLLL | | J, F, ..., D |
575 | Local week of year | w | | 1, 2, ..., 53 |
576 | | wo | | 1st, 2nd, ..., 53th |
577 | | ww | | 01, 02, ..., 53 |
578 | ISO week of year | I | W | 1, 2, ..., 53 |
579 | | Io | Wo | 1st, 2nd, ..., 53th |
580 | | II | WW | 01, 02, ..., 53 |
581 | Day of month | d | D | 1, 2, ..., 31 |
582 | | do | Do | 1st, 2nd, ..., 31st |
583 | | dd | DD | 01, 02, ..., 31 |
584 | Day of year | D | DDD | 1, 2, ..., 365, 366 |
585 | | Do | DDDo | 1st, 2nd, ..., 365th, 366th |
586 | | DD | | 01, 02, ..., 365, 366 |
587 | | DDD | DDDD | 001, 002, ..., 365, 366 |
588 | | DDDD | | ... |
589 | Day of week (formatting) | E..EEE | | Mon, Tue, Wed, ..., Su |
590 | | EEEE | | Monday, Tuesday, ..., Sunday |
591 | | EEEEE | | M, T, W, T, F, S, S |
592 | | EEEEEE | | Mo, Tu, We, Th, Fr, Su, Sa |
593 | ISO day of week (formatting) | i | E | 1, 2, 3, ..., 7 |
594 | | io | do | 1st, 2nd, ..., 7th |
595 | | ii | | 01, 02, ..., 07 |
596 | | iii | ddd | Mon, Tue, Wed, ..., Su |
597 | | iiii | dddd | Monday, Tuesday, ..., Sunday |
598 | | iiiii | | M, T, W, T, F, S, S |
599 | | iiiiii | dd | Mo, Tu, We, Th, Fr, Su, Sa |
600 | Local day of week (formatting) | e | | 2, 3, 4, ..., 1 |
601 | | eo | | 2nd, 3rd, ..., 1st |
602 | | ee | | 02, 03, ..., 01 |
603 | | eee | | Mon, Tue, Wed, ..., Su |
604 | | eeee | | Monday, Tuesday, ..., Sunday |
605 | | eeeee | | M, T, W, T, F, S, S |
606 | | eeeeee | | Mo, Tu, We, Th, Fr, Su, Sa |
607 | Local day of week (stand-alone) | c | | 2, 3, 4, ..., 1 |
608 | | co | | 2nd, 3rd, ..., 1st |
609 | | cc | | 02, 03, ..., 01 |
610 | | ccc | | Mon, Tue, Wed, ..., Su |
611 | | cccc | | Monday, Tuesday, ..., Sunday |
612 | | ccccc | | M, T, W, T, F, S, S |
613 | | cccccc | | Mo, Tu, We, Th, Fr, Su, Sa |
614 | AM, PM | a..aaa | A | AM, PM |
615 | | aaaa | aa | a.m., p.m. |
616 | | aaaaa | | a, p |
617 | AM, PM, noon, midnight | b..bbb | | AM, PM, noon, midnight |
618 | | bbbb | | a.m., p.m., noon, midnight |
619 | | bbbbb | | a, p, n, mi |
620 | Flexible day period | B..BBB | | at night, in the morning, ... |
621 | | BBBB | | at night, in the morning, ... |
622 | | BBBBB | | at night, in the morning, ... |
623 | Hour [1-12] | h | | 1, 2, ..., 11, 12 |
624 | | ho | | 1st, 2nd, ..., 11th, 12th |
625 | | hh | | 01, 02, ..., 11, 12 |
626 | Hour [0-23] | H | | 0, 1, 2, ..., 23 |
627 | | Ho | | 0th, 1st, 2nd, ..., 23rd |
628 | | HH | | 00, 01, 02, ..., 23 |
629 | Hour [0-11] | K | | 1, 2, ..., 11, 0 |
630 | | Ko | | 1st, 2nd, ..., 11th, 0th |
631 | | KK | | 1, 2, ..., 11, 0 |
632 | Hour [1-24] | k | | 24, 1, 2, ..., 23 |
633 | | ko | | 24th, 1st, 2nd, ..., 23rd |
634 | | kk | | 24, 01, 02, ..., 23 |
635 | Minute | m | | 0, 1, ..., 59 |
636 | | mo | | 0th, 1st, ..., 59th |
637 | | mm | | 00, 01, ..., 59 |
638 | Second | s | | 0, 1, ..., 59 |
639 | | so | | 0th, 1st, ..., 59th |
640 | | ss | | 00, 01, ..., 59 |
641 | Fraction of second | S | | 0, 1, ..., 9 |
642 | | SS | | 00, 01, ..., 99 |
643 | | SSS | | 000, 0001, ..., 999 |
644 | | SSSS | | ... |
645 | Timezone (ISO-8601 w/ Z) | X | | -08, +0530, Z |
646 | | XX | | -0800, +0530, Z |
647 | | XXX | | -08:00, +05:30, Z |
648 | | XXXX | | -0800, +0530, Z, +123456 |
649 | | XXXXX | | -08:00, +05:30, Z, +12:34:56 |
650 | Timezone (ISO-8601 w/o Z) | x | | -08, +0530, +00 |
651 | | xx | ZZ | -0800, +0530, +0000 |
652 | | xxx | Z | -08:00, +05:30, +00:00 |
653 | | xxxx | | -0800, +0530, +0000, +123456 |
654 | | xxxxx | | -08:00, +05:30, +00:00, +12:34:56 |
655 | Timezone (GMT) | O...OOO | | GMT-8, GMT+5:30, GMT+0 |
656 | | OOOO | | GMT-08:00, GMT+05:30, GMT+00:00 |
657 | Timezone (specific non-locat.) | z...zzz | | GMT-8, GMT+5:30, GMT+0 |
658 | | zzzz | | GMT-08:00, GMT+05:30, GMT+00:00 |
659 | Seconds timestamp | t | X | 512969520 |
660 | | tt | | ... |
661 | Milliseconds timestamp | T | x | 512969520900 |
662 | | TT | | ... |
663 | Long localized date | P | | 5/29/53 |
664 | | PP | | May 29, 1453 |
665 | | PPP | | May 29th, 1453 |
666 | | PPPP | | Sunday, May 29th, 1453 |
667 | Long localized time | p | | 12:00 AM |
668 | | pp | | 12:00:00 AM |
669 | | ppp | | 12:00:00 AM GMT+2 |
670 | | pppp | | 12:00:00 AM GMT+02:00 |
671 | Combination of date and time | Pp | | 5/29/53, 12:00 AM |
672 | | PPpp | | May 29, 1453, 12:00 AM |
673 | | PPPppp | | May 29th, 1453 at ... |
674 | | PPPPpppp | | Sunday, May 29th, 1453 at ... |
675
676 Characters are now escaped using single quote symbols (`'`) instead of square brackets.
677 `format` now throws RangeError if it encounters an unescaped latin character
678 that isn't a valid formatting token.
679
680 To use `YY` and `YYYY` tokens that represent week-numbering years,
681 you should set `useAdditionalWeekYearTokens` option:
682
683 ```javascript
684 format(Date.now(), 'YY', { useAdditionalWeekYearTokens: true })
685 //=> '86'
686 ```
687
688 To use `D` and `DD` tokens which represent days of the year,
689 set `useAdditionalDayOfYearTokens` option:
690
691 ```javascript
692 format(Date.now(), 'D', { useAdditionalDayOfYearTokens: true })
693 //=> '364'
694 ```
695
696- **BREAKING**: function submodules now use camelCase naming schema:
697
698 ```javascript
699 // Before v2.0.0
700 import differenceInCalendarISOYears from 'date-fns/difference_in_calendar_iso_years'
701
702 // v2.0.0 onward
703 import differenceInCalendarISOYears from 'date-fns/differenceInCalendarISOYears'
704 ```
705
706- **BREAKING**: min and max functions now accept an array of dates
707 rather than spread arguments.
708
709 ```javascript
710 // Before v2.0.0
711 var date1 = new Date(1989, 6 /* Jul */, 10)
712 var date2 = new Date(1987, 1 /* Feb */, 11)
713
714 var minDate = min(date1, date2)
715 var maxDate = max(date1, date2)
716
717 // v2.0.0 onward:
718 var dates = [new Date(1989, 6 /* Jul */, 10), new Date(1987, 1 /* Feb */, 11)]
719
720 var minDate = min(dates)
721 var maxDate = max(dates)
722 ```
723
724- **BREAKING**: make the second argument of `format` required for the sake of explicitness.
725
726 ```javascript
727 // Before v2.0.0
728 format(new Date(2016, 0, 1))
729
730 // v2.0.0 onward
731 format(new Date(2016, 0, 1), "yyyy-MM-dd'T'HH:mm:ss.SSSxxx")
732 ```
733
734- **BREAKING** renamed ISO week-numbering year helpers:
735
736 - `addISOYears` → `addISOWeekYears`
737 - `differenceInCalendarISOYears` → `differenceInCalendarISOWeekYears`
738 - `differenceInISOYears` → `differenceInISOWeekYears`
739 - `endOfISOYear` → `endOfISOWeekYear`
740 - `getISOYear` → `getISOWeekYear`
741 - `isSameISOYear` → `isSameISOWeekYear`
742 - `lastDayOfISOYear` → `lastDayOfISOWeekYear`
743 - `setISOYear` → `setISOWeekYear`
744 - `subISOYears` → `subISOWeekYears`
745
746 i.e. "ISO year" renamed to "ISO week year", which is short for
747 [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date).
748 It makes them consistent with locale-dependent week-numbering year helpers,
749 e.g., `startOfWeekYear`.
750
751- **BREAKING**: functions renamed:
752
753 - `areRangesOverlapping` → `areIntervalsOverlapping`
754 - `eachDay` → `eachDayOfInterval`
755 - `getOverlappingDaysInRanges` → `getOverlappingDaysInIntervals`
756 - `isWithinRange` → `isWithinInterval`
757
758 This change was made to mirror the use of the word "interval" in standard ISO 8601:2004 terminology:
759
760 ```
761 2.1.3
762 time interval
763 part of the time axis limited by two instants
764 ```
765
766 Also these functions now accept an object with `start` and `end` properties
767 instead of two arguments as an interval. All these functions
768 throw `RangeError` if the start of the interval is after its end
769 or if any date in the interval is `Invalid Date`.
770
771 ```javascript
772 // Before v2.0.0
773
774 areRangesOverlapping(
775 new Date(2014, 0, 10),
776 new Date(2014, 0, 20),
777 new Date(2014, 0, 17),
778 new Date(2014, 0, 21)
779 )
780
781 eachDay(new Date(2014, 0, 10), new Date(2014, 0, 20))
782
783 getOverlappingDaysInRanges(
784 new Date(2014, 0, 10),
785 new Date(2014, 0, 20),
786 new Date(2014, 0, 17),
787 new Date(2014, 0, 21)
788 )
789
790 isWithinRange(
791 new Date(2014, 0, 3),
792 new Date(2014, 0, 1),
793 new Date(2014, 0, 7)
794 )
795
796 // v2.0.0 onward
797
798 areIntervalsOverlapping(
799 { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) },
800 { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) }
801 )
802
803 eachDayOfInterval({
804 start: new Date(2014, 0, 10),
805 end: new Date(2014, 0, 20),
806 })
807
808 getOverlappingDaysInIntervals(
809 { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) },
810 { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) }
811 )
812
813 isWithinInterval(new Date(2014, 0, 3), {
814 start: new Date(2014, 0, 1),
815 end: new Date(2014, 0, 7),
816 })
817 ```
818
819- **BREAKING**: functions renamed:
820
821 - `distanceInWords` → `formatDistance`
822 - `distanceInWordsStrict` → `formatDistanceStrict`
823 - `distanceInWordsToNow` → `formatDistanceToNow`
824
825 to make them consistent with `format` and `formatRelative`.
826
827- **BREAKING**: The order of arguments of `distanceInWords` and `distanceInWordsStrict`
828 is swapped to make them consistent with `differenceIn...` functions.
829
830 ```javascript
831 // Before v2.0.0
832
833 distanceInWords(
834 new Date(1986, 3, 4, 10, 32, 0),
835 new Date(1986, 3, 4, 11, 32, 0),
836 { addSuffix: true }
837 ) //=> 'in about 1 hour'
838
839 // v2.0.0 onward
840
841 formatDistance(
842 new Date(1986, 3, 4, 11, 32, 0),
843 new Date(1986, 3, 4, 10, 32, 0),
844 { addSuffix: true }
845 ) //=> 'in about 1 hour'
846 ```
847
848- **BREAKING**: `partialMethod` option in `formatDistanceStrict` is renamed to `roundingMethod`.
849
850 ```javascript
851 // Before v2.0.0
852
853 distanceInWordsStrict(
854 new Date(1986, 3, 4, 10, 32, 0),
855 new Date(1986, 3, 4, 10, 33, 1),
856 { partialMethod: 'ceil' }
857 ) //=> '2 minutes'
858
859 // v2.0.0 onward
860
861 formatDistanceStrict(
862 new Date(1986, 3, 4, 10, 33, 1),
863 new Date(1986, 3, 4, 10, 32, 0),
864 { roundingMethod: 'ceil' }
865 ) //=> '2 minutes'
866 ```
867
868- **BREAKING**: in `formatDistanceStrict`, if `roundingMethod` is not specified,
869 it now defaults to `round` instead of `floor`.
870
871- **BREAKING**: `unit` option in `formatDistanceStrict` now accepts one of the strings:
872 'second', 'minute', 'hour', 'day', 'month' or 'year' instead of 's', 'm', 'h', 'd', 'M' or 'Y'
873
874 ```javascript
875 // Before v2.0.0
876
877 distanceInWordsStrict(
878 new Date(1986, 3, 4, 10, 32, 0),
879 new Date(1986, 3, 4, 10, 33, 1),
880 { unit: 'm' }
881 )
882
883 // v2.0.0 onward
884
885 formatDistanceStrict(
886 new Date(1986, 3, 4, 10, 33, 1),
887 new Date(1986, 3, 4, 10, 32, 0),
888 { unit: 'minute' }
889 )
890 ```
891
892- **BREAKING**: `parse` that previously used to convert strings and
893 numbers to dates now parse only strings in an arbitrary format
894 specified as an argument. Use `toDate` to coerce numbers and `parseISO`
895 to parse ISO 8601 strings.
896
897 ```javascript
898 // Before v2.0.0
899 parse('2016-01-01')
900 parse(1547005581366)
901 parse(new Date()) // Clone the date
902
903 // v2.0.0 onward
904 parse('2016-01-01', 'yyyy-MM-dd', new Date())
905 parseISO('2016-01-01')
906 toDate(1547005581366)
907 toDate(new Date()) // Clone the date
908 ```
909
910- **BREAKING**: `toDate` (previously `parse`) now doesn't accept string
911 arguments but only numbers and dates. `toDate` called with an invalid
912 argument will return `Invalid Date`.
913
914- **BREAKING**: new locale format.
915 See [docs/Locale](https://date-fns.org/docs/Locale).
916 Locales renamed:
917
918 - `en` → `en-US`
919 - `zh_cn` → `zh-CN`
920 - `zh_tw` → `zh-TW`
921
922 ```javascript
923 // Before v2.0.0
924 import locale from 'date-fns/locale/zh_cn'
925
926 // v2.0.0 onward
927 import locale from 'date-fns/locale/zh-CN'
928 ```
929
930- **BREAKING**: now `closestTo` and `closestIndexTo` don't throw an exception
931 when the second argument is not an array, and return Invalid Date instead.
932
933- **BREAKING**: now `isValid` doesn't throw an exception
934 if the first argument is not an instance of Date.
935 Instead, argument is converted beforehand using `toDate`.
936
937 Examples:
938
939 | `isValid` argument | Before v2.0.0 | v2.0.0 onward |
940 | ------------------------- | ------------- | ------------- |
941 | `new Date()` | `true` | `true` |
942 | `new Date('2016-01-01')` | `true` | `true` |
943 | `new Date('')` | `false` | `false` |
944 | `new Date(1488370835081)` | `true` | `true` |
945 | `new Date(NaN)` | `false` | `false` |
946 | `'2016-01-01'` | `TypeError` | `false` |
947 | `''` | `TypeError` | `false` |
948 | `1488370835081` | `TypeError` | `true` |
949 | `NaN` | `TypeError` | `false` |
950
951 We introduce this change to make _date-fns_ consistent with ECMAScript behavior
952 that try to coerce arguments to the expected type
953 (which is also the case with other _date-fns_ functions).
954
955- **BREAKING**: functions now throw `RangeError` if optional values passed to `options`
956 are not `undefined` or have expected values.
957 This change is introduced for consistency with ECMAScript standard library which does the same.
958
959- **BREAKING**: `format`, `formatDistance` (previously `distanceInWords`) and
960 `formatDistanceStrict` (previously `distanceInWordsStrict`) now throw
961 `RangeError` if one the passed arguments is invalid. It reflects behavior of
962 `toISOString` and Intl API. See [#1032](https://github.com/date-fns/date-fns/pull/1032).
963
964- **BREAKING**: all functions now implicitly convert arguments by following rules:
965
966 | | date | number | string | boolean |
967 | --------- | ------------ | ------ | ----------- | ------- |
968 | 0 | new Date(0) | 0 | '0' | false |
969 | '0' | Invalid Date | 0 | '0' | false |
970 | 1 | new Date(1) | 1 | '1' | true |
971 | '1' | Invalid Date | 1 | '1' | true |
972 | true | Invalid Date | NaN | 'true' | true |
973 | false | Invalid Date | NaN | 'false' | false |
974 | null | Invalid Date | NaN | 'null' | false |
975 | undefined | Invalid Date | NaN | 'undefined' | false |
976 | NaN | Invalid Date | NaN | 'NaN' | false |
977
978 Notes:
979
980 - as before, arguments expected to be `Date` are converted to `Date` using _date-fns'_ `toDate` function;
981 - arguments expected to be numbers are converted to integer numbers using our custom `toInteger` implementation
982 (see [#765](https://github.com/date-fns/date-fns/pull/765));
983 - arguments expected to be strings are converted to strings using JavaScript's `String` function;
984 - arguments expected to be booleans are converted to boolean using JavaScript's `Boolean` function.
985
986 `null` and `undefined` passed to optional arguments (i.e. properties of `options` argument)
987 are ignored as if no argument was passed.
988
989 If any resulting argument is invalid (i.e. `NaN` for numbers and `Invalid Date` for dates),
990 an invalid value will be returned:
991
992 - `false` for functions that return booleans (expect `isValid`);
993 - `Invalid Date` for functions that return dates;
994 - and `NaN` for functions that return numbers.
995
996 See tests and PRs [#460](https://github.com/date-fns/date-fns/pull/460) and
997 [#765](https://github.com/date-fns/date-fns/pull/765) for exact behavior.
998
999- **BREAKING**: all functions now check if the passed number of arguments is less
1000 than the number of required arguments and throw `TypeError` exception if so.
1001
1002- **BREAKING**: all functions that accept numbers as arguments, now coerce
1003 values using `Number()` and also round decimals. Positive decimals are
1004 rounded using `Math.floor`, decimals less than zero are rounded using
1005 `Math.ceil`.
1006
1007- **BREAKING**: The Bower & UMD/CDN package versions are no longer supported.
1008
1009- **BREAKING**: `null` now is not a valid date. `isValid(null)` returns `false`;
1010 `toDate(null)` returns an invalid date. Since `toDate` is used internally
1011 by all the functions, operations over `null` will also return an invalid date.
1012 [See #537](https://github.com/date-fns/date-fns/issues/537) for the reasoning.
1013
1014- `toDate` (previously `parse`) and `isValid` functions now accept `any` type
1015 as the first argument.
1016
1017- [Exclude `docs.json` from the npm package](https://github.com/date-fns/date-fns/pull/837). Kudos to [@hawkrives](https://github.com/hawkrives).
1018
1019### Added
1020
1021- FP functions like those in [lodash](https://github.com/lodash/lodash/wiki/FP-Guide),
1022 that support [currying](https://en.wikipedia.org/wiki/Currying), and, as a consequence,
1023 functional-style [function composing](https://medium.com/making-internets/why-using-chain-is-a-mistake-9bc1f80d51ba).
1024
1025 Functions with options (`format`, `parse`, etc.) have two FP counterparts:
1026 one that has the options object as its first argument and one that hasn't.
1027 The name of the former has `WithOptions` added to the end of its name.
1028
1029 In FP functions, the order of arguments is reversed.
1030
1031 See [FP Guide](https://date-fns.org/docs/FP-Guide) for more information.
1032
1033 ```javascript
1034 import addYears from 'date-fns/fp/addYears'
1035 import formatWithOptions from 'date-fns/fp/formatWithOptions'
1036 import eo from 'date-fns/locale/eo'
1037
1038 // If FP function has not received enough arguments, it returns another function
1039 const addFiveYears = addYears(5)
1040
1041 // Several arguments can be curried at once
1042 const dateToString = formatWithOptions({ locale: eo }, 'd MMMM yyyy')
1043
1044 const dates = [
1045 new Date(2017, 0 /* Jan */, 1),
1046 new Date(2017, 1 /* Feb */, 11),
1047 new Date(2017, 6 /* Jul */, 2),
1048 ]
1049
1050 const formattedDates = dates.map((date) => dateToString(addFiveYears(date)))
1051 //=> ['1 januaro 2022', '11 februaro 2022', '2 julio 2022']
1052 ```
1053
1054- Added support for [ECMAScript Modules](http://www.ecma-international.org/ecma-262/6.0/#sec-modules).
1055
1056 It allows usage with bundlers that support tree-shaking,
1057 like [rollup.js](http://rollupjs.org) and [webpack](https://webpack.js.org):
1058
1059 ```javascript
1060 // Without tree-shaking:
1061 import format from 'date-fns/format'
1062 import parse from 'date-fns/parse'
1063
1064 // With tree-shaking:
1065 import { format, parse } from 'date-fns'
1066 ```
1067
1068 Also, ESM functions provide default export, they can be used with TypeScript
1069 to import functions in more idiomatic way:
1070
1071 ```typescript
1072 // Before
1073 import * as format from 'date-fns/format'
1074
1075 // Now
1076 import format from 'date-fns/format'
1077 ```
1078
1079- `formatRelative` function. See [formatRelative](https://date-fns.org/docs/formatRelative)
1080
1081- Flow typings for `index.js`, `fp/index.js`, `locale/index.js`, and their ESM equivalents.
1082 See PR [#558](https://github.com/date-fns/date-fns/pull/558)
1083
1084- New locale-dependent week-numbering year helpers:
1085
1086 - `getWeek`
1087
1088 - `getWeekYear`
1089
1090 - `setWeek`
1091
1092 - `setWeekYear`
1093
1094 - `startOfWeekYear`
1095
1096- Added `eachWeekOfInterval`, the weekly equivalent of `eachDayOfInterval`
1097
1098- [Added `getUnixTime` function](https://github.com/date-fns/date-fns/pull/870). Kudos to [@Kingwl](https://github.com/Kingwl).
1099
1100- [New decade helpers](https://github.com/date-fns/date-fns/pull/839). Thanks to [@y-nk](https://github.com/y-nk)!
1101
1102 - `getDecade`
1103
1104 - `startOfDecade`
1105
1106 - `endOfDecade`
1107
1108 - `lastDayOfDecade`
1109
1110- [New `roundToNearestMinutes` function](https://github.com/date-fns/date-fns/pull/928). Kudos to [@xkizer](https://github.com/xkizer).
1111
1112- Added new function `fromUnixTime`. Thansk to [@xkizer](https://github.com/xkizer).
1113
1114- New interval, month, and year helpers to fetch a list of all Saturdays and Sundays (weekends) for a given date interval. `eachWeekendOfInterval` is the handler function while the other two are wrapper functions. Kudos to [@laekettavong](https://github.com/laekettavong)!
1115
1116 - `eachWeekendOfInterval`
1117
1118 - `eachWeekendOfMonth`
1119
1120 - `eachWeekendOfYear`
1121
1122- Build-efficient `lightFormat` that only supports the popular subset of tokens. See [#1050](https://github.com/date-fns/date-fns/pull/1015).
1123
1124- `parseISO` function that parses ISO 8601 strings. See [#1023](https://github.com/date-fns/date-fns/pull/1023).
1125
1126- Add constants that can be imported directly from `date-fns` or the submodule `date-fns/constants`:
1127
1128 - `maxTime`
1129
1130 - `minTime`
1131
1132- New locales:
1133
1134 - [Norwegian Nynorsk locale (nn)](https://github.com/date-fns/date-fns/pull/1172)
1135 by [@draperunner](https://github.com/draperunner).
1136
1137 - [Ukrainian locale (ua)](https://github.com/date-fns/date-fns/pull/532)
1138 by [@korzhyk](https://github.com/korzhyk).
1139
1140 - [Vietnamese locale (vi)](https://github.com/date-fns/date-fns/pull/546)
1141 by [@trongthanh](https://github.com/trongthanh).
1142
1143 - [Persian locale (fa-IR)](https://github.com/date-fns/date-fns/pull/1113)
1144 by [@mort3za](https://github.com/mort3za).
1145
1146 - [Latvian locale (lv)](https://github.com/date-fns/date-fns/pull/1175)
1147 by [@prudolfs](https://github.com/prudolfs).
1148
1149 - [Bengali locale (bb)](https://github.com/date-fns/date-fns/pull/845)
1150 by [@nutboltu](https://github.com/nutboltu) and [@touhidrahman](https://github.com/touhidrahman).
1151
1152 - [Hungarian (hu) and Lithuanian (lt) locales](https://github.com/date-fns/date-fns/pull/864)
1153 by [@izifortune](https://github.com/izifortune) and [pardoeryanair](https://github.com/pardoeryanair).
1154
1155 - [Canadian English locale (en-CA)](https://github.com/date-fns/date-fns/pull/688)
1156 by [@markowsiak](https://github.com/markowsiak).
1157
1158 - [Great Britain English locale (en-GB)](https://github.com/date-fns/date-fns/pull/563)
1159 by [@glintik](https://github.com/glintik).
1160
1161 - [Uighur locale (ug)](https://github.com/date-fns/date-fns/pull/1080)
1162 by [@abduwaly](https://github.com/abduwaly).
1163
1164- [Add new function `differenceInBusinessDays`](https://github.com/date-fns/date-fns/pull/1194)
1165 which calculates the difference in business days. Kudos to [@ThorrStevens](https://github.com/ThorrStevens)!
1166
1167- [Add new function `addBusinessDays`](https://github.com/date-fns/date-fns/pull/1154),
1168 similar to `addDays` but ignoring weekends. Thanks to [@ThorrStevens](https://github.com/ThorrStevens)!
1169
1170## [1.30.1] - 2018-12-10
1171
1172### Fixed
1173
1174- [Fixed DST issue](https://github.com/date-fns/date-fns/pull/1005). See [#972](https://github.com/date-fns/date-fns/issues/972) and [#992](https://github.com/date-fns/date-fns/issues/992) for more details. This fix was backported from v2.
1175
1176- Fix a few bugs that appear in timezones with offsets that include seconds (e.g. GMT+00:57:44). See PR [#789](https://github.com/date-fns/date-fns/issues/789). This fix was backported from v2.
1177
1178- [Fix misspelled January in the Thai locale](https://github.com/date-fns/date-fns/pull/913). Thanks to [@ratchapol-an](https://github.com/ratchapol-an)!
1179
1180### Added
1181
1182- [Added Serbian locale](https://github.com/date-fns/date-fns/pull/717). Kudos to [@mawi12345](https://github.com/mawi12345)!
1183
1184- [Added Belarusian locale](https://github.com/date-fns/date-fns/pull/716). Kudos to [@mawi12345](https://github.com/mawi12345) again!
1185
1186### Changed
1187
1188- [Improve ja translation of distanceInWords](https://github.com/date-fns/date-fns/pull/880). Thanks to [@kudohamu](https://github.com/kudohamu)!
1189
1190## [1.30.0] - 2018-12-10
1191
1192⚠️ The release got failed.
1193
1194## [1.29.0] - 2017-10-11
1195
1196### Fixed
1197
1198- Fix Italian translations for `formatDistance`. ([see the issue: #550](https://github.com/date-fns/date-fns/issues/550); [see the PR: #552](https://github.com/date-fns/date-fns/pull/552))
1199 Thanks to [@giofilo](https://github.com/giofilo)!
1200
1201### Added
1202
1203- [Hungarian locale (hu)](https://github.com/date-fns/date-fns/pull/503)
1204 (thanks to László Horváth [@horvathlg](https://github.com/horvathlg))
1205
1206- [Slovenian locale (sl)](https://github.com/date-fns/date-fns/pull/505)
1207 (thanks to Adam Stradovnik [@Neoglyph](https://github.com/Neoglyph))
1208
1209- Add `step` to `eachDay` function. Thanks to [@BDav24](https://github.com/BDav24).
1210 See PR [#487](https://github.com/date-fns/date-fns/pull/487).
1211
1212## [1.28.5] - 2017-05-19
1213
1214### Fixed
1215
1216- Fix a.m./p.m. formatters in Chinese Simplified locale.
1217 Thanks to [@fnlctrl](https://github.com/fnlctrl).
1218 See PR [#486](https://github.com/date-fns/date-fns/pull/486)
1219
1220## [1.28.4] - 2017-04-26
1221
1222### Fixed
1223
1224- Fix accents on weekdays in the Italian locale.
1225 See PR [#481](https://github.com/date-fns/date-fns/pull/481).
1226 Thanks to [@albertorestifo](https://github.com/albertorestifo)
1227
1228- Fix typo in `ddd` format token in Spanish language locale.
1229 Kudos to [@fjaguero](https://github.com/fjaguero).
1230 See PR [#482](https://github.com/date-fns/date-fns/pull/482)
1231
1232## [1.28.3] - 2017-04-14
1233
1234### Fixed
1235
1236- Fix ordinal numbers for Danish language locale. Thanks to [@kgram](https://github.com/kgram).
1237 See PR [#474](https://github.com/date-fns/date-fns/pull/474)
1238
1239## [1.28.2] - 2017-03-27
1240
1241### Fixed
1242
1243- Fix `dd` and `ddd` formatters in Polish language locale. Kudos to [@justrag](https://github.com/justrag).
1244 See PR: [#467](https://github.com/date-fns/date-fns/pull/467)
1245
1246## [1.28.1] - 2017-03-19
1247
1248### Fixed
1249
1250- Fix DST border bug in `addMilliseconds`, `addSeconds`, `addMinutes`, `addHours`,
1251 `subMilliseconds`, `subSeconds`, `subMinutes` and `subHours`.
1252 See issue [#465](https://github.com/date-fns/date-fns/issues/465)
1253
1254- Minor fix for Indonesian locale. Thanks to [@bentinata](https://github.com/bentinata).
1255 See PR: [#458](https://github.com/date-fns/date-fns/pull/458)
1256
1257## [1.28.0] - 2017-02-27
1258
1259### Added
1260
1261- [Romanian locale (ro)](https://github.com/date-fns/date-fns/pull/446)
1262 (thanks to Sergiu Munteanu [@jsergiu](https://github.com/jsergiu))
1263
1264### Fixed
1265
1266- All functions now convert all their arguments to the respective types.
1267 See PR: [#443](https://github.com/date-fns/date-fns/pull/443)
1268
1269- Fixes for ordinals (1er, 2, 3, …) in French locale.
1270 Thanks to [@fbonzon](https://github.com/fbonzon).
1271 See PR: [#449](https://github.com/date-fns/date-fns/pull/449)
1272
1273## [1.27.2] - 2017-02-01
1274
1275### Fixed
1276
1277- Various fixes for Dutch locale. See PR: [#416](https://github.com/date-fns/date-fns/pull/416).
1278 Thanks to Ruben Stolk [@rubenstolk](https://github.com/rubenstolk)
1279
1280## [1.27.1] - 2017-01-20
1281
1282### Fixed
1283
1284- Added generation of TypeScript locale sub-modules, allowing import of locales in TypeScript.
1285
1286## [1.27.0] - 2017-01-19
1287
1288### Added
1289
1290- [Macedonian locale (mk)](https://github.com/date-fns/date-fns/pull/398)
1291 (thanks to Petar Vlahu [@vlahupetar](https://github.com/vlahupetar))
1292
1293## [1.26.0] - 2017-01-15
1294
1295### Added
1296
1297- `getTime`
1298
1299### Fixed
1300
1301- Various fixes for Japanese locale. See PR: [395](https://github.com/date-fns/date-fns/pull/395).
1302 Thanks to Yamagishi Kazutoshi [@ykzts](https://github.com/ykzts)
1303
1304## [1.25.0] - 2017-01-11
1305
1306### Added
1307
1308- [Bulgarian locale (bg)](https://github.com/date-fns/date-fns/pull/357)
1309 (thanks to Nikolay Stoynov [@arvigeus](https://github.com/arvigeus))
1310
1311- [Czech locale (cs)](https://github.com/date-fns/date-fns/pull/386)
1312 (thanks to David Rus [@davidrus](https://github.com/davidrus))
1313
1314## [1.24.0] - 2017-01-06
1315
1316### Added
1317
1318- [Modern Standard Arabic locale (ar)](https://github.com/date-fns/date-fns/pull/367)
1319 (thanks to Abdallah Hassan [@AbdallahAHO](https://github.com/AbdallahAHO))
1320
1321## [1.23.0] - 2017-01-05
1322
1323### Added
1324
1325- Auto generate TypeScript and flow typings from documentation on release.
1326 Thanks to [@mattlewis92](https://github.com/mattlewis92).
1327 See related PRs: [#355](https://github.com/date-fns/date-fns/pull/355),
1328 [#370](https://github.com/date-fns/date-fns/pull/370)
1329
1330- [Croatian locale (hr)](https://github.com/date-fns/date-fns/pull/365)
1331 (thanks to Matija Marohnić [@silvenon](https://github.com/silvenon))
1332
1333- [Thai locale (th)](https://github.com/date-fns/date-fns/pull/362)
1334 (thanks to Athiwat Hirunworawongkun [@athivvat](https://github.com/athivvat))
1335
1336- [Finnish locale (fi)](https://github.com/date-fns/date-fns/pull/361)
1337 (thanks to Pyry-Samuli Lahti [@Pyppe](https://github.com/Pyppe))
1338
1339## [1.22.0] - 2016-12-28
1340
1341### Added
1342
1343- [Icelandic locale (is)](https://github.com/date-fns/date-fns/pull/356)
1344 (thanks to Derek Blank [@derekblank](https://github.com/derekblank))
1345
1346## [1.21.1] - 2016-12-18
1347
1348### Fixed
1349
1350- Fix `isBefore` and `isAfter` documentation mistakes.
1351
1352## [1.21.0] - 2016-12-16
1353
1354### Added
1355
1356- [Filipino locale (fil)](https://github.com/date-fns/date-fns/pull/339)
1357 (thanks to Ian De La Cruz [@RIanDeLaCruz](https://github.com/RIanDeLaCruz))
1358
1359- [Danish locale (da)](https://github.com/date-fns/date-fns/pull/343)
1360 (kudos to Anders B. Hansen [@Andersbiha](https://github.com/Andersbiha))
1361
1362## [1.20.1] - 2016-12-14
1363
1364### Fixed
1365
1366- Fix documentation for `getOverlappingDaysInRanges`.
1367
1368## [1.20.0] - 2016-12-13
1369
1370### Added
1371
1372- `areRangesOverlapping` and `getOverlappingDaysInRanges`
1373 Thanks to Joanna T [@asia-t](https://github.com/asia-t).
1374 See PR: [#331](https://github.com/date-fns/date-fns/pull/331)
1375
1376## [1.19.0] - 2016-12-13
1377
1378### Added
1379
1380- [Greek locale (el)](https://github.com/date-fns/date-fns/pull/334)
1381 (kudos to Theodoros Orfanidis [@teoulas](https://github.com/teoulas))
1382
1383- [Slovak locale (sk)](https://github.com/date-fns/date-fns/pull/336)
1384 (kudos to Marek Suscak [@mareksuscak](https://github.com/mareksuscak))
1385
1386- Add yarn support.
1387 Thanks to Uladzimir Havenchyk [@havenchyk](https://github.com/havenchyk).
1388 See PR: [#288](https://github.com/date-fns/date-fns/pull/288)
1389
1390## [1.18.0] - 2016-12-12
1391
1392### Added
1393
1394- [Turkish locale (tr)](https://github.com/date-fns/date-fns/pull/329)
1395 (kudos to Alpcan Aydın [@alpcanaydin](https://github.com/alpcanaydin))
1396
1397- [Korean locale (ko)](https://github.com/date-fns/date-fns/pull/327)
1398 (thanks to Hong Chulju [@angdev](https://github.com/angdev))
1399
1400### Fixed
1401
1402- `SS` and `SSS` formats in `format` are now correctly displayed with leading zeros.
1403 Thanks to Paul Dijou [@pauldijou](https://github.com/pauldijou).
1404 See PR: [#330](https://github.com/date-fns/date-fns/pull/330)
1405
1406## [1.17.0] - 2016-12-10
1407
1408### Added
1409
1410- [Polish locale (pl)](https://github.com/date-fns/date-fns/pull/294)
1411 (thanks to Mateusz Derks [@ertrzyiks](https://github.com/ertrzyiks))
1412
1413- [Portuguese locale (pt)](https://github.com/date-fns/date-fns/pull/316)
1414 (thanks to Dário Freire [@dfreire](https://github.com/dfreire))
1415
1416- [Swedish locale (sv)](https://github.com/date-fns/date-fns/pull/311)
1417 (thanks to Johannes Ulén [@ejulen](https://github.com/ejulen))
1418
1419- [French locale (fr)](https://github.com/date-fns/date-fns/pull/281)
1420 (thanks to Jean Dupouy [@izeau](https://github.com/izeau))
1421
1422- Performance tests. See PR: [#289](https://github.com/date-fns/date-fns/pull/289)
1423
1424### Fixed
1425
1426- Fix TypeScript and flow typings for `isValid`.
1427 See PR: [#310](https://github.com/date-fns/date-fns/pull/310)
1428
1429- Fix incorrect locale tests that could potentially lead to `format` bugs.
1430 Kudos to Mateusz Derks [@ertrzyiks](https://github.com/ertrzyiks).
1431 See related PRs: [#312](https://github.com/date-fns/date-fns/pull/312),
1432 [#320](https://github.com/date-fns/date-fns/pull/320)
1433
1434- Minor language fixes in the documentation.
1435 Thanks to Vedad Šoše [@vedadsose](https://github.com/vedadsose) ([#314](https://github.com/date-fns/date-fns/pull/314))
1436 and Asia [@asia-t](https://github.com/asia-t) ([#318](https://github.com/date-fns/date-fns/pull/318))
1437
1438### Changed
1439
1440- `format` now returns `String('Invalid Date')` if the passed date is invalid.
1441 See PR: [#323](https://github.com/date-fns/date-fns/pull/323)
1442
1443- `distanceInWords`, `distanceInWordsToNow`, `distanceInWordsStrict` and `format` functions now
1444 check if the passed locale is valid, and fallback to English locale otherwise.
1445 See PR: [#321](https://github.com/date-fns/date-fns/pull/321)
1446
1447- _Internal_: use a loop instead of `Object.keys` in `buildFormattingTokensRegExp`
1448 to improve compatibility with older browsers.
1449 See PR: [#322](https://github.com/date-fns/date-fns/pull/322)
1450
1451## [1.16.0] - 2016-12-08
1452
1453### Added
1454
1455- [Italian locale (it)](https://github.com/date-fns/date-fns/pull/298)
1456 (thanks to Alberto Restifo [@albertorestifo](https://github.com/albertorestifo))
1457
1458- For German `buildDistanceInWordsLocale`, add nominative case translations (for distances without a suffix).
1459 Kudos to Asia [@asia-t](https://github.com/asia-t).
1460 See related PR: [#295](https://github.com/date-fns/date-fns/pull/295)
1461
1462## [1.15.1] - 2016-12-07
1463
1464### Fixed
1465
1466- Fixed TypeScript imports from individual modules.
1467 Thanks to [@mattlewis92](https://github.com/mattlewis92).
1468 See related PR: [#287](https://github.com/date-fns/date-fns/pull/287)
1469
1470## [1.15.0] - 2016-12-07
1471
1472### Added
1473
1474- [Indonesian locale (id)](https://github.com/date-fns/date-fns/pull/299)
1475 (thanks to Rahmat Budiharso [@rbudiharso](https://github.com/rbudiharso))
1476
1477- [Catalan locale (ca)](https://github.com/date-fns/date-fns/pull/300)
1478 (thanks to Guillermo Grau [@guigrpa](https://github.com/guigrpa))
1479
1480### Fixed
1481
1482- Fix some inaccuracies in Spanish locale.
1483 Kudos to [@guigrpa](https://github.com/guigrpa).
1484 See related PR: [#302](https://github.com/date-fns/date-fns/pull/302)
1485
1486## [1.14.1] - 2016-12-06
1487
1488### Fixed
1489
1490- Fixed broken test for Norwegian Bokmål locale.
1491
1492## [1.14.0] - 2016-12-06
1493
1494### Added
1495
1496- [Norwegian Bokmål locale (nb)](https://github.com/date-fns/date-fns/pull/291)
1497 (thanks to Hans-Kristian Koren [@Hanse](https://github.com/Hanse))
1498
1499## [1.13.0] - 2016-12-06
1500
1501### Added
1502
1503- [Chinese Traditional locale (zh_tw)](https://github.com/date-fns/date-fns/pull/283)
1504 (thanks to tonypai [@tpai](https://github.com/tpai)).
1505
1506- [Dutch language locale (nl)](https://github.com/date-fns/date-fns/pull/278)
1507 (kudos to Jorik Tangelder [@jtangelder](https://github.com/jtangelder))
1508
1509## [1.12.1] - 2016-12-05
1510
1511### Fixed
1512
1513- Added `distanceInWordsStrict` to the list of supported functions in I18n doc.
1514
1515## [1.12.0] - 2016-12-05
1516
1517### Added
1518
1519- [Spanish language locale (es)](https://github.com/date-fns/date-fns/pull/269)
1520 (thanks to Juan Angosto [@juanangosto](https://github.com/juanangosto)).
1521
1522### Fixed
1523
1524- Fix flow typings for some of the functions.
1525 See PR: [#273](https://github.com/date-fns/date-fns/pull/273)
1526
1527## [1.11.2] - 2016-11-28
1528
1529### Fixed
1530
1531- Bug in `parse` when it sometimes parses ISO week-numbering dates incorrectly.
1532 See PR: [#262](https://github.com/date-fns/date-fns/pull/262)
1533
1534- Bug in some functions which caused them to handle dates earlier than 100 AD incorrectly.
1535 See PR: [#263](https://github.com/date-fns/date-fns/pull/263)
1536
1537## [1.11.1] - 2016-11-24
1538
1539### Fixed
1540
1541- Include TypeScript typings with npm package.
1542
1543## [1.11.0] - 2016-11-23
1544
1545### Added
1546
1547- `distanceInWordsStrict`.
1548 Kudos to [@STRML](https://github.com/STRML).
1549 See related PR: [#254](https://github.com/date-fns/date-fns/pull/254)
1550
1551- [TypeScript](https://www.typescriptlang.org/) typings for all functions.
1552 Kudos to [@mattlewis92](https://github.com/mattlewis92).
1553 See related PR: [#255](https://github.com/date-fns/date-fns/pull/255)
1554
1555## [1.10.0] - 2016-11-01
1556
1557### Added
1558
1559- `parse` now can parse dates that are ISO 8601 centuries (e.g., `19` and `+0019`).
1560
1561 ```javascript
1562 var result = parse('19')
1563 //=> Mon Jan 01 1900 00:00:00
1564 ```
1565
1566- In `parse`, added ability to specify the number of additional digits
1567 for extended year or century format (possible values are 0, 1 or 2; default is 2).
1568
1569 ```javascript
1570 parse('+002016-11-01')
1571 parse('+02016-11-01', { additionalDigits: 1 })
1572 parse('+2016-11-01', { additionalDigits: 0 })
1573 ```
1574
1575## [1.9.0] - 2016-10-25
1576
1577### Added
1578
1579- Got index.js imports to work with SystemJS.
1580
1581## [1.8.1] - 2016-10-24
1582
1583### Fixed
1584
1585- Added Japanese and German language locales to the list in I18n doc.
1586
1587## [1.8.0] - 2016-10-23
1588
1589### Added
1590
1591- [Japanese language locale (ja)](https://github.com/date-fns/date-fns/pull/241)
1592 (thanks to Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) again!)
1593
1594- `getISODay`
1595
1596- `setISODay`
1597
1598## [1.7.0] - 2016-10-20
1599
1600### Added
1601
1602- [German language locale (de)](https://github.com/date-fns/date-fns/pull/237)
1603 (thanks to Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu)).
1604
1605## [1.6.0] - 2016-10-16
1606
1607### Added
1608
1609- [Chinese Simplified locale (zh_cn)](https://github.com/date-fns/date-fns/pull/235)
1610 (kudos to Changyu [@KingMario](https://github.com/KingMario) Geng).
1611
1612## [1.5.2] - 2016-10-13
1613
1614### Fixed
1615
1616- Incorrectly generated docs for `format`.
1617
1618- Fixed typo in I18n doc.
1619
1620## [1.5.1] - 2016-10-12
1621
1622### Fixed
1623
1624- A change log entry for [1.5.0] is added.
1625
1626## [1.5.0] - 2016-10-12
1627
1628### Added
1629
1630- [The initial I18n support](https://date-fns.org/docs/I18n)
1631
1632## [1.4.0] - 2016-10-09
1633
1634### Added
1635
1636- Basic [SystemJS](https://github.com/systemjs/systemjs) support.
1637
1638### Fixed
1639
1640- Fix incorrect behaviour of `YYYY` and `YY` for years prior to 1000:
1641 now `format(new Date('0001-01-01'), 'YYYY-MM-DD')` returns `0001-01-01`
1642 instead of `1-01-01`.
1643
1644## [1.3.0] - 2016-05-26
1645
1646### Added
1647
1648- `closestIndexTo`
1649
1650## [1.2.0] - 2016-05-23
1651
1652### Added
1653
1654- Add an ability to pass negative numbers to `setDay`.
1655
1656## [1.1.1] - 2016-05-19
1657
1658### Fixed
1659
1660- Fix [Flow](http://flowtype.org/) declarations for some of the functions.
1661
1662## [1.1.0] - 2016-05-19
1663
1664### Added
1665
1666- [Flow](http://flowtype.org/) declarations for each function
1667 in [the ".js.flow" style](http://flowtype.org/docs/declarations.html#declaration-files).
1668 Kudos to [@JohnyDays](https://github.com/JohnyDays). See related PRs:
1669
1670 - [#205](https://github.com/date-fns/date-fns/pull/205)
1671
1672 - [#207](https://github.com/date-fns/date-fns/pull/207)
1673
1674## [1.0.0] - 2016-05-18
1675
1676### Fixed
1677
1678- `format` now returns the correct result for key `E`.
1679
1680- Prevent `startOf...`, `endOf...` and `lastDayOf...` functions
1681 to return dates with an incorrect time when the date is modifying
1682 into another time zone.
1683
1684- `parse` now parses years from 1 AD to 99 AD correctly.
1685
1686- Fix a bug in `getISOWeek` appearing because of a changing time zone
1687 (e.g., when the given date is in DST and the start of the ISO year is not).
1688
1689### Changed
1690
1691- **BREAKING**: all functions are moved to the root of the library, so they
1692 are now accessible with `require('date-fns/name_of_function')` or
1693 `import nameOfFunction from 'date-fns/name_of_function'`.
1694
1695 ```javascript
1696 // Before v1.0.0
1697 var addMonths = require('date-fns/src/add_months')
1698
1699 // v1.0.0 onward
1700 var addMonths = require('date-fns/add_months')
1701 ```
1702
1703- **BREAKING**: functions that had the last optional argument `weekStartsAt`
1704 (i.e. `endOfWeek`, `isSameWeek`, `lastDayOfWeek`, `setDay`, `startOfWeek`)
1705 now instead receive the object `options` with the property `options.weekStartsOn`
1706 as the last argument.
1707
1708 ```javascript
1709 // Before v1.0.0
1710 var result = endOfWeek(new Date(2014, 8, 2), 1)
1711
1712 // v1.0.0 onward
1713 var result = endOfWeek(new Date(2014, 8, 2), { weekStartsOn: 1 })
1714 ```
1715
1716- **BREAKING**: remove the function `getTimeSinceMidnight` that was used inside
1717 the other functions.
1718
1719- **BREAKING**: `differenceInDays` now returns the number of full days instead
1720 of calendar days.
1721
1722- **BREAKING**: `eachDay` and `isWithinRange` now throw an exception
1723 when the given range boundaries are invalid.
1724
1725- Faster `isLeapYear`.
1726
1727- _Internal_: make the documentation more verbose.
1728
1729- _Internal_: convert the tests from Chai to power-assert allowing them
1730 to run against IE8.
1731
1732### Added
1733
1734- `addISOYears`
1735
1736- `closestTo`
1737
1738- `differenceInCalendarDays`
1739
1740- `differenceInCalendarISOWeeks`
1741
1742- `differenceInCalendarISOYears`
1743
1744- `differenceInCalendarMonths`
1745
1746- `differenceInCalendarQuarters`
1747
1748- `differenceInCalendarWeeks`
1749
1750- `differenceInCalendarYears`
1751
1752- `differenceInHours`
1753
1754- `differenceInISOYears`
1755
1756- `differenceInMilliseconds`
1757
1758- `differenceInMinutes`
1759
1760- `differenceInMonths`
1761
1762- `differenceInQuarters`
1763
1764- `differenceInSeconds`
1765
1766- `differenceInWeeks`
1767
1768- `differenceInYears`
1769
1770- `distanceInWords`
1771
1772- `distanceInWordsToNow`
1773
1774- `endOfISOWeek`
1775
1776- `endOfISOYear`
1777
1778- `endOfToday`
1779
1780- `endOfTomorrow`
1781
1782- `endOfYesterday`
1783
1784- `getDaysInYear`
1785
1786- `isDate`
1787
1788- `isFriday`
1789
1790- `isMonday`
1791
1792- `isSameISOWeek`
1793
1794- `isSameISOYear`
1795
1796- `isSaturday`
1797
1798- `isSunday`
1799
1800- `isThisHour`
1801
1802- `isThisISOWeek`
1803
1804- `isThisISOYear`
1805
1806- `isThisMinute`
1807
1808- `isThisMonth`
1809
1810- `isThisQuarter`
1811
1812- `isThisSecond`
1813
1814- `isThisWeek`
1815
1816- `isThisYear`
1817
1818- `isThursday`
1819
1820- `isTomorrow`
1821
1822- `isTuesday`
1823
1824- `isValid`
1825
1826- `isWednesday`
1827
1828- `isYesterday`
1829
1830- `lastDayOfISOWeek`
1831
1832- `lastDayOfISOYear`
1833
1834- `startOfISOWeek`
1835
1836- `startOfToday`
1837
1838- `startOfTomorrow`
1839
1840- `startOfYesterday`
1841
1842- `subISOYears`
1843
1844- Add `Qo`, `W`, `Wo`, `WW`, `GG`, `GGGG`, `Z`, `ZZ`, `X`, `x` keys to `format`.
1845
1846## [0.17.0] - 2015-09-29
1847
1848### Fixed
1849
1850- Fix a lot of bugs appearing when date is modifying into other time zone
1851 (e.g., when adding months and original date is in DST but new date is not).
1852
1853- Prevent instances of Date to lose milliseconds value when passed to.
1854 `parse` in IE10.
1855
1856### Changed
1857
1858- `setISOWeek` now keeps time from original date.
1859
1860- _Internal_: reuse `getDaysInMonth` inside of `addMonths`.
1861
1862### Added
1863
1864- `differenceInDays`
1865
1866- `getTimeSinceMidnight`
1867
1868- `format` now has new format key `aa`, which returns `a.m.`/`p.m.`
1869 as opposed to `a` that returns `am`/`pm`.
1870
1871- Complete UMD package (for Bower and CDN).
1872
1873## [0.16.0] - 2015-09-01
1874
1875### Changed
1876
1877- Use `parse` to clean date arguments in all functions.
1878
1879- `parse` now fallbacks to `new Date` when the argument
1880 is not an ISO formatted date.
1881
1882- _Internal_: reuse `getDaysInMonth` inside of `setMonth`.
1883
1884### Added
1885
1886- `addQuarters`
1887
1888- `addWeeks`
1889
1890- `endOfQuarter`
1891
1892- `getDate`
1893
1894- `getDay`
1895
1896- `getDaysInMonth`
1897
1898- `getHours`
1899
1900- `getISOWeeksInYear`
1901
1902- `getMilliseconds`
1903
1904- `getMinutes`
1905
1906- `getMonth`
1907
1908- `getSeconds`
1909
1910- `getYear`
1911
1912- `isLeapYear`
1913
1914- `isSameHour`
1915
1916- `isSameMinute`
1917
1918- `isSameQuarter`
1919
1920- `isSameSecond`
1921
1922- `lastDayOfQuarter`
1923
1924- `lastDayOfWeek`
1925
1926- `max`
1927
1928- `min`
1929
1930- `setDate`
1931
1932- `setDay`
1933
1934- `setHours`
1935
1936- `setMilliseconds`
1937
1938- `setMinutes`
1939
1940- `setSeconds`
1941
1942- `startOfQuarter`
1943
1944- `subQuarters`
1945
1946- `subWeeks`
1947
1948## [0.15.0] - 2015-08-26
1949
1950### Changed
1951
1952- `format` now returns `a.m.`/`p.m.` instead of `am`/`pm`.
1953
1954- `setMonth` now sets last day of month if original date was last day
1955 of longer month.
1956
1957- _Internal_: Fix code style according to ESLint.
1958
1959- _Internal_: Make tests run through all time zones.
1960
1961### Added
1962
1963- `getQuarter`
1964
1965- `setQuarter`
1966
1967- `getDayOfYear`
1968
1969- `setDayOfYear`
1970
1971- `isPast`
1972
1973- `addSeconds`
1974
1975- `subSeconds`
1976
1977- `startOfSecond`
1978
1979- `endOfSecond`
1980
1981- `startOfMinute`
1982
1983- `endOfMinute`
1984
1985- `addMilliseconds`
1986
1987- `subMilliseconds`
1988
1989- `endOfYear`
1990
1991- `addYears`
1992
1993- `subYears`
1994
1995- `lastDayOfYear`
1996
1997- `lastDayOfMonth`
1998
1999## [0.14.11] - 2015-08-21
2000
2001### Fixed
2002
2003- `format` now uses `parse` to avoid time zone bugs.
2004
2005### Changed
2006
2007- `setIsoWeek` now sets time to the start of the day.
2008
2009## [0.14.10] - 2015-07-29
2010
2011### Fixed
2012
2013- `format` now behaves correctly with 12:00 am.
2014
2015- `format` now behaves correctly with ordinal numbers.
2016
2017### Added
2018
2019- `compareAsc`
2020
2021- `compareDesc`
2022
2023- `addHours`
2024
2025- `subHours`
2026
2027- `isSameDay`
2028
2029- `parse`
2030
2031- `getISOYear`
2032
2033- `setISOYear`
2034
2035- `startOfISOYear`
2036
2037- `getISOWeek`
2038
2039- `setISOWeek`
2040
2041## [0.14.9] - 2015-01-14
2042
2043### Fixed
2044
2045- `addMonths` now correctly behaves with February
2046 (see [#18](https://github.com/js-fns/date-fns/pull/18)).
2047
2048## [0.14.8] - 2014-12-25
2049
2050### Fixed
2051
2052- `format` function now behaves correctly with `pm`/`am`.
2053
2054## [0.14.6] - 2014-12-04
2055
2056### Fixed
2057
2058- Fix broken Bower support.
2059
2060## [0.14.0] - 2014-11-05
2061
2062### Added
2063
2064- Bower package.
2065
2066## [0.13.0] - 2014-10-22
2067
2068### Added
2069
2070- `addMinutes`
2071
2072- `subMinutes`
2073
2074- `isEqual`
2075
2076- `isBefore`
2077
2078- `isAfter`
2079
2080## [0.12.1] - 2014-10-19
2081
2082### Fixed
2083
2084- Incorrect rounding in `DDD` formatter.
2085
2086## [0.12.0] - 2014-10-15
2087
2088### Added
2089
2090- `isSameYear`
2091
2092## [0.11.0] - 2014-10-15
2093
2094### Added
2095
2096- `isWithinRange`
2097
2098## [0.10.0] - 2014-10-13
2099
2100### Added
2101
2102- `format`
2103
2104- `startOfYear`
2105
2106## [0.9.0] - 2014-10-10
2107
2108### Changed
2109
2110- _Internal_: simplify `isWeekend`
2111
2112### Added
2113
2114- `isFuture`
2115
2116## [0.8.0] - 2014-10-09
2117
2118### Changed
2119
2120- _Internal_: reuse `addDays` inside of `subDays`.
2121
2122### Added
2123
2124- `addMonths`
2125
2126- `subMonths`
2127
2128- `setMonth`
2129
2130- `setYear`
2131
2132## [0.7.0] - 2014-10-08
2133
2134### Added
2135
2136- `isSameWeek`
2137
2138## [0.6.0] - 2014-10-07
2139
2140### Fixed
2141
2142- Inconsistent behavior of `endOfMonth`.
2143
2144### Added
2145
2146- `isFirstDayOfMonth`
2147
2148- `isLastDayOfMonth`
2149
2150- `isSameMonth`
2151
2152## [0.5.0] - 2014-10-07
2153
2154### Added
2155
2156- `addDays`
2157
2158- `subDays`
2159
2160## [0.4.0] - 2014-10-07
2161
2162### Added
2163
2164- `startOfWeek`
2165
2166- `endOfWeek`
2167
2168- `eachDay`
2169
2170## [0.3.0] - 2014-10-06
2171
2172### Changed
2173
2174- `startOfDay` now sets milliseconds as well.
2175
2176### Added
2177
2178- `endOfDay`
2179
2180- `startOfMonth`
2181
2182- `endOfMonth`
2183
2184## [0.2.0] - 2014-10-06
2185
2186### Added
2187
2188- `isToday`
2189
2190- `isWeekend`
2191
2192## 0.1.0 - 2014-10-06
2193
2194### Added
2195
2196- `startOfDay`
2197
2198[unreleased]: https://github.com/date-fns/date-fns/compare/v2.16.1...HEAD
2199[2.16.1]: https://github.com/date-fns/date-fns/compare/v2.16.0...v2.16.1
2200[2.16.0]: https://github.com/date-fns/date-fns/compare/v2.15.0...v2.16.0
2201[2.15.0]: https://github.com/date-fns/date-fns/compare/v2.14.0...v2.15.0
2202[2.14.0]: https://github.com/date-fns/date-fns/compare/v2.13.0...v2.14.0
2203[2.13.0]: https://github.com/date-fns/date-fns/compare/v2.12.0...v2.13.0
2204[2.12.0]: https://github.com/date-fns/date-fns/compare/v2.11.1...v2.12.0
2205[2.11.1]: https://github.com/date-fns/date-fns/compare/v2.11.0...v2.11.1
2206[2.11.0]: https://github.com/date-fns/date-fns/compare/v2.10.0...v2.11.0
2207[2.10.0]: https://github.com/date-fns/date-fns/compare/v2.9.0...v2.10.0
2208[2.9.0]: https://github.com/date-fns/date-fns/compare/v2.8.1...v2.9.0
2209[2.8.1]: https://github.com/date-fns/date-fns/compare/v2.8.0...v2.8.1
2210[2.8.0]: https://github.com/date-fns/date-fns/compare/v2.7.0...v2.8.0
2211[2.7.0]: https://github.com/date-fns/date-fns/compare/v2.6.0...v2.7.0
2212[2.6.0]: https://github.com/date-fns/date-fns/compare/v2.5.1...v2.6.0
2213[2.5.1]: https://github.com/date-fns/date-fns/compare/v2.5.0...v2.5.1
2214[2.5.0]: https://github.com/date-fns/date-fns/compare/v2.4.1...v2.5.0
2215[2.4.1]: https://github.com/date-fns/date-fns/compare/v2.4.0...v2.4.1
2216[2.4.0]: https://github.com/date-fns/date-fns/compare/v2.3.0...v2.4.0
2217[2.3.0]: https://github.com/date-fns/date-fns/compare/v2.2.1...v2.3.0
2218[2.2.1]: https://github.com/date-fns/date-fns/compare/v2.1.0...v2.2.1
2219[2.1.0]: https://github.com/date-fns/date-fns/compare/v2.0.1...v2.1.0
2220[2.0.1]: https://github.com/date-fns/date-fns/compare/v2.0.0...v2.0.1
2221[2.0.0]: https://github.com/date-fns/date-fns/compare/v1.28.5...v2.0.0
2222[1.28.5]: https://github.com/date-fns/date-fns/compare/v1.28.4...v1.28.5
2223[1.28.4]: https://github.com/date-fns/date-fns/compare/v1.28.3...v1.28.4
2224[1.28.3]: https://github.com/date-fns/date-fns/compare/v1.28.2...v1.28.3
2225[1.28.2]: https://github.com/date-fns/date-fns/compare/v1.28.1...v1.28.2
2226[1.28.1]: https://github.com/date-fns/date-fns/compare/v1.28.0...v1.28.1
2227[1.28.0]: https://github.com/date-fns/date-fns/compare/v1.27.2...v1.28.0
2228[1.27.2]: https://github.com/date-fns/date-fns/compare/v1.27.1...v1.27.2
2229[1.27.1]: https://github.com/date-fns/date-fns/compare/v1.27.0...v1.27.1
2230[1.27.0]: https://github.com/date-fns/date-fns/compare/v1.26.0...v1.27.0
2231[1.26.0]: https://github.com/date-fns/date-fns/compare/v1.25.0...v1.26.0
2232[1.25.0]: https://github.com/date-fns/date-fns/compare/v1.24.0...v1.25.0
2233[1.24.0]: https://github.com/date-fns/date-fns/compare/v1.23.0...v1.24.0
2234[1.23.0]: https://github.com/date-fns/date-fns/compare/v1.22.0...v1.23.0
2235[1.22.0]: https://github.com/date-fns/date-fns/compare/v1.21.1...v1.22.0
2236[1.21.1]: https://github.com/date-fns/date-fns/compare/v1.21.0...v1.21.1
2237[1.21.0]: https://github.com/date-fns/date-fns/compare/v1.20.1...v1.21.0
2238[1.20.1]: https://github.com/date-fns/date-fns/compare/v1.20.0...v1.20.1
2239[1.20.0]: https://github.com/date-fns/date-fns/compare/v1.19.0...v1.20.0
2240[1.19.0]: https://github.com/date-fns/date-fns/compare/v1.18.0...v1.19.0
2241[1.18.0]: https://github.com/date-fns/date-fns/compare/v1.17.0...v1.18.0
2242[1.17.0]: https://github.com/date-fns/date-fns/compare/v1.16.0...v1.17.0
2243[1.16.0]: https://github.com/date-fns/date-fns/compare/v1.15.1...v1.16.0
2244[1.15.1]: https://github.com/date-fns/date-fns/compare/v1.15.0...v1.15.1
2245[1.15.0]: https://github.com/date-fns/date-fns/compare/v1.14.1...v1.15.0
2246[1.14.1]: https://github.com/date-fns/date-fns/compare/v1.14.0...v1.14.1
2247[1.14.0]: https://github.com/date-fns/date-fns/compare/v1.13.0...v1.14.0
2248[1.13.0]: https://github.com/date-fns/date-fns/compare/v1.12.1...v1.13.0
2249[1.12.1]: https://github.com/date-fns/date-fns/compare/v1.12.0...v1.12.1
2250[1.12.0]: https://github.com/date-fns/date-fns/compare/v1.11.2...v1.12.0
2251[1.11.2]: https://github.com/date-fns/date-fns/compare/v1.11.1...v1.11.2
2252[1.11.1]: https://github.com/date-fns/date-fns/compare/v1.11.0...v1.11.1
2253[1.11.0]: https://github.com/date-fns/date-fns/compare/v1.10.0...v1.11.0
2254[1.10.0]: https://github.com/date-fns/date-fns/compare/v1.9.0...v1.10.0
2255[1.9.0]: https://github.com/date-fns/date-fns/compare/v1.8.1...v1.9.0
2256[1.8.1]: https://github.com/date-fns/date-fns/compare/v1.8.0...v1.8.1
2257[1.8.0]: https://github.com/date-fns/date-fns/compare/v1.7.0...v1.8.0
2258[1.7.0]: https://github.com/date-fns/date-fns/compare/v1.6.0...v1.7.0
2259[1.6.0]: https://github.com/date-fns/date-fns/compare/v1.5.2...v1.6.0
2260[1.5.2]: https://github.com/date-fns/date-fns/compare/v1.5.1...v1.5.2
2261[1.5.1]: https://github.com/date-fns/date-fns/compare/v1.5.0...v1.5.1
2262[1.5.0]: https://github.com/date-fns/date-fns/compare/v1.4.0...v1.5.0
2263[1.4.0]: https://github.com/date-fns/date-fns/compare/v1.3.0...v1.4.0
2264[1.3.0]: https://github.com/date-fns/date-fns/compare/v1.2.0...v1.3.0
2265[1.2.0]: https://github.com/date-fns/date-fns/compare/v1.1.1...v1.2.0
2266[1.1.1]: https://github.com/date-fns/date-fns/compare/v1.1.0...v1.1.1
2267[1.1.0]: https://github.com/date-fns/date-fns/compare/v1.0.0...v1.1.0
2268[1.0.0]: https://github.com/date-fns/date-fns/compare/v0.17.0...v1.0.0
2269[0.17.0]: https://github.com/date-fns/date-fns/compare/v0.16.0...v0.17.0
2270[0.16.0]: https://github.com/date-fns/date-fns/compare/v0.15.0...v0.16.0
2271[0.15.0]: https://github.com/date-fns/date-fns/compare/v0.14.11...v0.15.0
2272[0.14.11]: https://github.com/date-fns/date-fns/compare/v0.14.10...v0.14.11
2273[0.14.10]: https://github.com/date-fns/date-fns/compare/v0.14.9...v0.14.10
2274[0.14.9]: https://github.com/date-fns/date-fns/compare/v0.14.8...v0.14.9
2275[0.14.8]: https://github.com/date-fns/date-fns/compare/v0.14.6...v0.14.8
2276[0.14.6]: https://github.com/date-fns/date-fns/compare/v0.14.0...v0.14.6
2277[0.14.0]: https://github.com/date-fns/date-fns/compare/v0.13.0...v0.14.0
2278[0.13.0]: https://github.com/date-fns/date-fns/compare/v0.12.1...v0.13.0
2279[0.12.1]: https://github.com/date-fns/date-fns/compare/v0.12.0...v0.12.1
2280[0.12.0]: https://github.com/date-fns/date-fns/compare/v0.11.0...v0.12.0
2281[0.11.0]: https://github.com/date-fns/date-fns/compare/v0.10.0...v0.11.0
2282[0.10.0]: https://github.com/date-fns/date-fns/compare/v0.9.0...v0.10.0
2283[0.9.0]: https://github.com/date-fns/date-fns/compare/v0.8.0...v0.9.0
2284[0.8.0]: https://github.com/date-fns/date-fns/compare/v0.7.0...v0.8.0
2285[0.7.0]: https://github.com/date-fns/date-fns/compare/v0.6.0...v0.7.0
2286[0.6.0]: https://github.com/date-fns/date-fns/compare/v0.5.0...v0.6.0
2287[0.5.0]: https://github.com/date-fns/date-fns/compare/v0.4.0...v0.5.0
2288[0.4.0]: https://github.com/date-fns/date-fns/compare/v0.3.0...v0.4.0
2289[0.3.0]: https://github.com/date-fns/date-fns/compare/v0.2.0...v0.3.0
2290[0.2.0]: https://github.com/date-fns/date-fns/compare/v0.1.0...v0.2.0
2291
\No newline at end of file