UNPKG

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