UNPKG

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