Open renovate[bot] opened 4 years ago
Merging #2291 (be54d2d) into release (6dedadc) will not change coverage. The diff coverage is
n/a
.:exclamation: Current head be54d2d differs from pull request most recent head 02f4f38. Consider uploading reports for the commit 02f4f38 to get more accurate results
@@ Coverage Diff @@
## release #2291 +/- ##
========================================
Coverage 98.68% 98.68%
========================================
Files 141 141
Lines 6372 6372
Branches 1065 1065
========================================
Hits 6288 6288
Misses 84 84
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 6dedadc...02f4f38. Read the comment docs.
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠️ Warning: custom changes will be lost.
This PR contains the following updates:
2.12.0
->2.22.1
Release Notes
date-fns/date-fns
### [`v2.22.1`](https://togithub.com/date-fns/date-fns/blob/master/CHANGELOG.md#v2221---2021-05-28) [Compare Source](https://togithub.com/date-fns/date-fns/compare/v2.22.0...v2.22.1) Thanks to [Sasha Koss](http://github.com/kossnocorp) for working on the release. ##### Fixed - Fixed constant typings. ([#2491](https://togithub.com/date-fns/date-fns/issues/2491)) ### [`v2.22.0`](https://togithub.com/date-fns/date-fns/blob/master/CHANGELOG.md#v2220---2021-05-28) [Compare Source](https://togithub.com/date-fns/date-fns/compare/v2.21.3...v2.22.0) On this release worked [Sasha Koss](http://github.com/kossnocorp), [Lucas Silva](http://github.com/LucasHFS), [Lay](http://github.com/brownsugar), [jwbth](http://github.com/jwbth), [fturmel](http://github.com/fturmel), [Tan75](http://github.com/tan75) and [Anastasia Kobzar](http://github.com/rikkalo). ##### Fixed - [Fixed Taiwanese locale to use traditional Chinese and removed unnecessary spaces.](https://togithub.com/date-fns/date-fns/pull/2436) - [Fixed Russian locale to use correct long formats.](https://togithub.com/date-fns/date-fns/pull/2478) ##### Added - [Added 18 new conversion functions](https://togithub.com/date-fns/date-fns/pull/2433): - `daysToWeeks` - `hoursToMilliseconds` - `hoursToMinutes` - `hoursToSeconds` - `millisecondsToHours` - `millisecondsToMinutes` - `millisecondsToSeconds` - `minutesToHours` - `minutesToMilliseconds` - `minutesToSeconds` - `monthsToQuarters` - `monthsToYears` - `quartersToMonths` - `quartersToYears` - `secondsToHours` - `secondsToMilliseconds` - `secondsToMinutes` - `weeksToDays` - `yearsToMonths` - `yearsToQuarters` ### [`v2.21.3`](https://togithub.com/date-fns/date-fns/blob/master/CHANGELOG.md#v2213---2021-05-08) [Compare Source](https://togithub.com/date-fns/date-fns/compare/v2.21.2...v2.21.3) This release is brought to you by [Maxim Topciu](http://github.com/maximtop). ##### Fixed - [Fixed IE11 support by babelifing the shorthand properties.](https://togithub.com/date-fns/date-fns/pull/2467) ### [`v2.21.2`](https://togithub.com/date-fns/date-fns/blob/master/CHANGELOG.md#v2212---2021-05-05) [Compare Source](https://togithub.com/date-fns/date-fns/compare/v2.21.1...v2.21.2) Kudos 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. ##### Fixed - [`differenceInBusinessDays` now returns `NaN` instead of `Invalid Date` when an invalid argument is passed to the function.](https://togithub.com/date-fns/date-fns/pull/2414) - [Fixed `weekStartsOn` in Persian locale.](https://togithub.com/date-fns/date-fns/pull/2430) ### [`v2.21.1`](https://togithub.com/date-fns/date-fns/blob/master/CHANGELOG.md#v2211---2021-04-15) [Compare Source](https://togithub.com/date-fns/date-fns/compare/v2.21.0...v2.21.1) Thanks to [Sasha Koss](http://github.com/kossnocorp) for working on the release. ##### Fixed - [Fixed a breaking change introduced by using modern default argument value syntax (see https://github.com/Hacker0x01/react-datepicker/issues/2870).](https://togithub.com/date-fns/date-fns/pull/2423) ### [`v2.21.0`](https://togithub.com/date-fns/date-fns/blob/master/CHANGELOG.md#v2210---2021-04-14) [Compare Source](https://togithub.com/date-fns/date-fns/compare/v2.20.3...v2.21.0) This 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). ##### Fixed - [Made `formatDistanceStrict` return `12 months` instead of `1 year` when `unit: 'month'`.](https://togithub.com/date-fns/date-fns/pull/2411) ##### Added - [Added Haitian Creole (`ht`) locale.](https://togithub.com/date-fns/date-fns/pull/2396) - [Added Austrian German (`de-AT`) locale.](https://togithub.com/date-fns/date-fns/pull/2362) ### [`v2.20.3`](https://togithub.com/date-fns/date-fns/blob/master/CHANGELOG.md#v2203---2021-04-13) [Compare Source](https://togithub.com/date-fns/date-fns/compare/v2.20.2...v2.20.3) Kudos to [fturmel](http://github.com/fturmel) for working on the release. ##### Fixed - [Fixed broken tree-shaking caused by missing links to corresponding ESM.](https://togithub.com/date-fns/date-fns/pull/2339) ([#2207](https://togithub.com/date-fns/date-fns/issues/2207)) ### [`v2.20.2`](https://togithub.com/date-fns/date-fns/blob/master/CHANGELOG.md#v2202---2021-04-12) [Compare Source](https://togithub.com/date-fns/date-fns/compare/v2.20.1...v2.20.2) Kudos to [Maxim Topciu](http://github.com/maximtop) for working on the release. ##### Fixed - [Fixed IE11 incompatibility caused by the usage of spread syntax.](https://togithub.com/date-fns/date-fns/pull/2407) ([#2408](https://togithub.com/date-fns/date-fns/issues/2408)) ### [`v2.20.1`](https://togithub.com/date-fns/date-fns/blob/master/CHANGELOG.md#v2201---2021-04-09) [Compare Source](https://togithub.com/date-fns/date-fns/compare/v2.20.0...v2.20.1) This release is brought to you by [Sasha Koss](http://github.com/kossnocorp) and [Tan75](http://github.com/tan75). ##### Fixed - Fixed `isDate` Flow typings that we broke in `v2.20.0`. ### [`v2.20.0`](https://togithub.com/date-fns/date-fns/blob/master/CHANGELOG.md#v2200---2021-04-08) [Compare Source](https://togithub.com/date-fns/date-fns/compare/v2.19.0...v2.20.0) This 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). ##### Fixed - [Made `formatDistanceStrict` and `formatDistanceToNowStrict` always return `1 year` instead of `12 months`.](https://togithub.com/date-fns/date-fns/pull/2391) ([#2388](https://togithub.com/date-fns/date-fns/issues/2388)) - Fixed `nextDay`, `nextMonday` and `nextTuesday` missing in exports and type definitions. ([#2325](https://togithub.com/date-fns/date-fns/issues/2325)) - [Fixed a DST bug in `formatDistanceStrict`.](https://togithub.com/date-fns/date-fns/pull/2329) ([#2307](https://togithub.com/date-fns/date-fns/issues/2307)) ##### Added - [Added new `eachMinuteOfInterval` function.](https://togithub.com/date-fns/date-fns/pull/2382) - [Added Albanian (`sq`) locale](https://togithub.com/date-fns/date-fns/pull/2290) - [Added Mongolian (`mn`) locale](https://togithub.com/date-fns/date-fns/pull/1961) - [Added `nextWednesday`, `nextThursday`, `nextFriday`, `nextSaturday` and `nextSunday`.](https://togithub.com/date-fns/date-fns/pull/2291) ### [`v2.19.0`](https://togithub.com/date-fns/date-fns/blob/master/CHANGELOG.md#v2190---2021-03-05) [Compare Source](https://togithub.com/date-fns/date-fns/compare/v2.18.0...v2.19.0) On this release worked [Tan75](http://github.com/tan75). ##### Fixed - [Assigned the correct `firstWeekContainsDate` value (`4`) for the French locale.](https://togithub.com/date-fns/date-fns/pull/2273) ([#2148](https://togithub.com/date-fns/date-fns/issues/2148)) - [Fixed torsdag abbreviation in the Swedish locale.](https://togithub.com/date-fns/date-fns/pull/2220) - [Fixed a bug in `differenceInMonths` and `intervalToDuration` that occurs when dealing with the 28th of February.](https://togithub.com/date-fns/date-fns/pull/2256) ([#2255](https://togithub.com/date-fns/date-fns/issues/2255)) ##### Added - [Added new functions: `nextDay`, `nextMonday` and `nextTuesday` that allows getting the next day of the week, Monday or Tuesday respectively.](https://togithub.com/date-fns/date-fns/pull/2214) ### [`v2.18.0`](https://togithub.com/date-fns/date-fns/blob/master/CHANGELOG.md#v2180---2021-03-01) [Compare Source](https://togithub.com/date-fns/date-fns/compare/v2.17.0...v2.18.0) Thanks to [Tan75](http://github.com/tan75) and [Lesha Koss](http://github.com/leshakoss). ##### Fixed - [Fixed documentation missing for `intlFormat`.](https://togithub.com/date-fns/date-fns/pull/2259) ([#2258](https://togithub.com/date-fns/date-fns/issues/2258)) - [Fixed date formats in the Latvian locale.](https://togithub.com/date-fns/date-fns/pull/2205) ([#2202](https://togithub.com/date-fns/date-fns/issues/2202)) ##### Added - [Added support of positive and negative offsets in `parseJSON`.](https://togithub.com/date-fns/date-fns/pull/2200) ([#2149](https://togithub.com/date-fns/date-fns/issues/2149)) ### [`v2.17.0`](https://togithub.com/date-fns/date-fns/blob/master/CHANGELOG.md#2170---2021-02-05) [Compare Source](https://togithub.com/date-fns/date-fns/compare/v2.16.1...v2.17.0) Kudos to [@shaykav](https://togithub.com/date-fns/date-fns/pull/1952), [@davidgape89](https://togithub.com/davidgape89), [@rikkalo](https://togithub.com/rikkalo), [@tan75](https://togithub.com/tan75), [@talgautb](https://togithub.com/talgautb), [@owenl131](https://togithub.com/owenl131), [@kylesezhi](https://togithub.com/kylesezhi), [@inigoiparragirre](https://togithub.com/inigoiparragirre), [@gius](https://togithub.com/gius), [@Endeauvirr](https://togithub.com/Endeauvirr) and [@frankyston](https://togithub.com/frankyston). ##### Fixed - [Fixed Russian locale parsing issue](https://togithub.com/date-fns/date-fns/pull/1950). - [Fixed `differenceInMonths` for edge cases, such as the end of February dates](https://togithub.com/date-fns/date-fns/pull/2185). - [Fixed suffixes for the Kazakh locale](https://togithub.com/date-fns/date-fns/pull/2010). - [Fixed `formatDuration` week translation in `pt` and `pt-BR` locales](https://togithub.com/date-fns/date-fns/pull/2125). - [Made Japanese locale to use the correct value for the start of the week](https://togithub.com/date-fns/date-fns/pull/2099). - [Adjusted date formats in the Basque locale](https://togithub.com/date-fns/date-fns/pull/2080). - [Fixed the short and medium date formats in the Czech locale](https://togithub.com/date-fns/date-fns/pull/2111). - [Adjusted the Polish translations of `formatDistance`](https://togithub.com/date-fns/date-fns/pull/2187). - [Fixed the week's abbreviations in the Brazilian Portuguese](https://togithub.com/date-fns/date-fns/pull/2170). ##### Added - [Added `intlFormat`](https://togithub.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. - [Added `en-ZA` locale](https://togithub.com/date-fns/date-fns/pull/1952). - [Added an ability to format lowercase am/pm with `aaa` and `bbb` tokens](https://togithub.com/date-fns/date-fns/pull/2016). - [Added ordinal formatting for Japanese year values](https://togithub.com/date-fns/date-fns/pull/2177/files). ### [`v2.16.1`](https://togithub.com/date-fns/date-fns/blob/master/CHANGELOG.md#2161---2020-07-31) [Compare Source](https://togithub.com/date-fns/date-fns/compare/v2.16.0...v2.16.1) Kudos to [@aleksaps](https://togithub.com/aleksaps), [@leedriscoll](https://togithub.com/leedriscoll) and [@BanForFun](https://togithub.com/BanForFun) for pull-requests! ##### Fixed - [Fixed a typo in Scottish Gaelic (gd) locale](https://togithub.com/date-fns/date-fns/pull/1925). - [Fixed typos in Serbian Latin locale](https://togithub.com/date-fns/date-fns/pull/1928). - [Fixed greek grammar for Saturday on `formatRelative`](https://togithub.com/date-fns/date-fns/pull/1930). - Removed locale snapshots from the npm package making it lighter. ### [`v2.16.0`](https://togithub.com/date-fns/date-fns/blob/master/CHANGELOG.md#2160---2020-08-27) [Compare Source](https://togithub.com/date-fns/date-fns/compare/v2.15.0...v2.16.0) Kudos to [@jvpelt](https://togithub.com/jvpelt), [@piotrl](https://togithub.com/piotrl), [@yotamofek](https://togithub.com/yotamofek), [@dwaxweiler](https://togithub.com/dwaxweiler), [@leedriscoll](https://togithub.com/leedriscoll) and [@bradevans](https://togithub.com/bradevans) for working on the release. Also thanks to [@PascalHonegger](https://togithub.com/PascalHonegger), [@pickfire](https://togithub.com/pickfire), [@TheJaredWilcurt](https://togithub.com/TheJaredWilcurt), [@SidKH](https://togithub.com/SidKH) and [@nfantone](https://togithub.com/nfantone) for improving the documentation. ##### Fixed - [Added correct translations for Welsh `1 minute` and `2 days`](https://togithub.com/date-fns/date-fns/pull/1903). - [Fixed `formatRFC3339` formatting timezone offset with minutes](https://togithub.com/date-fns/date-fns/pull/1890). - [Added missing locale type definition for `formatDuration`](https://togithub.com/date-fns/date-fns/pull/1881) - [Fixed Scottish Gaelic locale issues](https://togithub.com/date-fns/date-fns/pull/1914). ##### Changed - [Used shorter Hebrew alternative for "about"](https://togithub.com/date-fns/date-fns/pull/1893). - [Improved string arguments warning after upgrading to v2](https://togithub.com/date-fns/date-fns/pull/1910). ##### Added - [Added Luxembourgish (lb) locale](https://togithub.com/date-fns/date-fns/pull/1900). ### [`v2.15.0`](https://togithub.com/date-fns/date-fns/blob/master/CHANGELOG.md#2150---2020-07-17) [Compare Source](https://togithub.com/date-fns/date-fns/compare/v2.14.0...v2.15.0) Thanks to [@belgamo](https://togithub.com/belgamo), [@Matsuuu](https://togithub.com/Matsuuu), [@Imballinst](https://togithub.com/Imballinst), [@arsnyder16](https://togithub.com/arsnyder16), [@pankajupadhyay29](https://togithub.com/pankajupadhyay29), [@DCBN](https://togithub.com/DCBN), [@leedriscoll](https://togithub.com/leedriscoll), [@gottsohn](https://togithub.com/gottsohn), [@mukuljainx](https://togithub.com/mukuljainx) and [@dtriana](https://togithub.com/dtriana) for working on the release. Also kudos to [@KidkArolis](https://togithub.com/KidkArolis), [@imgx64](https://togithub.com/imgx64), [@fjc0k](https://togithub.com/fjc0k), [@wmonk](https://togithub.com/wmonk), [@djD-REK](https://togithub.com/djD-REK), [@dandv](https://togithub.com/dandv), [@psimk](https://togithub.com/psimk) and [@brimworks](https://togithub.com/brimworks) for improving the documentation. ##### Fixed - [Fixed behavior of `addBusinessDays` when input date is a weekend day](https://togithub.com/date-fns/date-fns/pull/1790). - [Fixed `parseISO` not returning `Invalid Date` on incorrect string when there are spaces in it](https://togithub.com/date-fns/date-fns/pull/1791). - [Fixed `es` round-tripping dates with Wednesday](https://togithub.com/date-fns/date-fns/pull/1792). - [Fixed round-trip bug with `d`/`EEEE` ordering in tokens like `PPPPP`](https://togithub.com/date-fns/date-fns/pull/1795). - [Fixed issues with parsing values in Japanese](https://togithub.com/date-fns/date-fns/pull/1807). - [Fixed Hungarian breaking IE11](https://togithub.com/date-fns/date-fns/pull/1842). - [Fixed Spanish accents in Saturday and Wednesday](https://togithub.com/date-fns/date-fns/pull/1872). ##### Changed - [Improved the message of protected tokens error](https://togithub.com/date-fns/date-fns/pull/1641). ##### Added - [Added Swiss-French `fr-CH` locale](https://togithub.com/date-fns/date-fns/pull/1809). - [Added Flemish `nl-BE` locale](https://togithub.com/date-fns/date-fns/pull/1812). - [Added Scottish Gaelic `gd` locale](https://togithub.com/date-fns/date-fns/pull/1832). - [Added New Zealand English `en-NZ` locale](https://togithub.com/date-fns/date-fns/pull/1835). - [Added `isMatch` function](https://togithub.com/date-fns/date-fns/pull/1868). ### [`v2.14.0`](https://togithub.com/date-fns/date-fns/blob/master/CHANGELOG.md#2140---2020-05-18) [Compare Source](https://togithub.com/date-fns/date-fns/compare/v2.13.0...v2.14.0) Kudos to [@julamb](https://togithub.com/julamb), [@JacobSoderblom](https://togithub.com/JacobSoderblom), [@justingrant](http://github.com/justingrant), [@dragunoff](https://togithub.com/dragunoff), [@jmate0321](https://togithub.com/jmate0321), [@gbhasha](https://togithub.com/gbhasha), [@rasck](https://togithub.com/rasck), [@AlbertoPdRF](https://togithub.com/AlbertoPdRF), [@sebastianhaberey](https://togithub.com/sebastianhaberey) and [@giogonzo](https://togithub.com/giogonzo) for working on the release! ##### Fixed - [Fixed DST issues with `add`, `addDays` and `addMonths`](https://togithub.com/date-fns/date-fns/pull/1760). - [Fixed "quarter" translation in the Bulgarian locale](https://togithub.com/date-fns/date-fns/pull/1763). - [Fixed `formatDistance` strings in the Hungarian locale](https://togithub.com/date-fns/date-fns/pull/1765). - [Fixed Danish month abbreviations](https://togithub.com/date-fns/date-fns/pull/1774). - [Fixed parsing of mei in the Dutch locale](https://togithub.com/date-fns/date-fns/pull/1774). - [Fixed missing preposition in `formatLong` in the Spanish locale](https://togithub.com/date-fns/date-fns/pull/1775). - [Fixed `formatRelative` in the Italian locale](https://togithub.com/date-fns/date-fns/pull/1777). ##### Added - [Added `eachQuarterOfInterval`](https://togithub.com/date-fns/date-fns/pull/1715). - [Added Basque (`eu`) locale](https://togithub.com/date-fns/date-fns/pull/1759). - [Added Indian English (`en-IN`) locale](https://togithub.com/date-fns/date-fns/pull/1767). - [Added `eachHourOfInterval`](https://togithub.com/date-fns/date-fns/pull/1776). ### [`v2.13.0`](https://togithub.com/date-fns/date-fns/blob/master/CHANGELOG.md#2130---2020-05-06) [Compare Source](https://togithub.com/date-fns/date-fns/compare/v2.12.0...v2.13.0) Thanks to [@JorenVos](https://togithub.com/JorenVos), [@developergouli](https://togithub.com/developergouli), [@rhlowe](https://togithub.com/rhlowe) and [@justingrant](http://github.com/justingrant) for working on the release! ##### Fixed - [Fixed mei abbreviation in the Dutch locale](https://togithub.com/date-fns/date-fns/pull/1752). - [Fixed `differenceInDays` DST behavior broken in 2.12.0](https://togithub.com/date-fns/date-fns/pull/1754). ##### Added - [Added Kannada locale support](https://togithub.com/date-fns/date-fns/pull/1747). - [Added `formatISODuration` function](https://togithub.com/date-fns/date-fns/pull/1713). - [Added `intervalToDuration` function](https://togithub.com/date-fns/date-fns/pull/1713).Configuration
📅 Schedule: "before 3am on the first day of the month" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Never, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.