build-stats
build-stats copied to clipboard
Update dependency date-fns to v2 - abandoned
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| date-fns | ^1.29.0 -> ^2.0.0 |
Release Notes
date-fns/date-fns
v2.29.3
This release is prepared by our own @​leshakoss.
Fixed
v2.29.2
This release is brought to you by @​nopears, @​vadimpopa and @​leshakoss.
Fixed
v2.29.1
Thanks to @​fturmel for working on the release.
Fixed
v2.29.0
On this release worked @​tan75, @​kossnocorp, @​nopears, @​Balastrong, @​cpapazoglou, @​dovca, @​aliasgar55, @​tomchentw, @​JuanM04, @​alexandresaura, @​fturmel, @​aezell, @​andersravn, @​TiagoPortfolio, @​SukkaW, @​Zebreus, @​aviskarkc10, @​maic66, @​a-korzun, @​Mejans, @​davidspiess, @​alexgul1, @​matroskin062, @​undecaf, @​mprovenc, @​jooola and @​leshakoss.
Added
Fixed
-
Fixed long formatters in the South African English locale (
en-ZA). -
Fixed weekday format for
formatRelativein the Portuguese locale (pt). -
Fixed issue parsing months in Croatian (
hr), Georgian (ka) and Serbian (srandsr-Latn) locales.
Changed
v2.28.0
Kudos to @​tan75, @​fturmel, @​arcanar7, @​jeffjose, @​helmut-lang, @​zrev2220, @​jooola, @​minitesh, @​cowboy-bebug, @​mesqueeb, @​JuanM04, @​zhirzh, @​damon02 and @​leshakoss for working on the release.
Added
Fixed
v2.27.0
Kudos to @​tan75, @​hg-pyun, @​07akioni, @​razvanmitre, @​Haqverdi, @​pgcalixto, @​janziemba, @​fturmel, @​JuanM04, @​zhirzh, @​seanghay, @​bulutfatih, @​nodeadtree, @​cHaLkdusT, @​a-korzun, @​fishmandev, @​wingclover, @​Zacharias3690, @​kossnocorp and @​leshakoss for working on the release.
Fixed
-
Fixed translation for quarters in
formatin Chinese Simplified locale (zh-CN). -
Fixed regular expressions for
parsein Estonian locale (er). -
Fixed the format of zeros in
formatDurationin Czech locale (cs). -
Fixed constants not having proper TypeScript and Flow types.
-
Fixed
eachMinuteOfIntervalnot handling intervals less than a minute correctly.
Added
v2.26.0
Thanks to @​kossnocorp, @​leshakoss, @​tan75, @​gaplo, @​AbdAllahAbdElFattah13, @​fturmel, @​kentaro84207, @​V-Gutierrez, @​atefBB, @​jhonatanmacazana, @​zhirzh, @​Haqverdi, @​mandaputtra, @​micnic and @​rikkalo for working on the release.
Fixed
Changed
Added
v2.25.0
This release is brought to you by @​kossnocorp, @​gierschv, @​fturmel, @​redbmk, @​mprovenc, @​artyom-ivanov and @​tan75.
Added
v2.24.0
Kudos to Sasha Koss, Lucas Silva, Jan Ziemba, Anastasia Kobzar, Deepak Gupta, Jonas L, Kentaro Suzuki, Koussay Haj Kacem, fturmel, Tan75 and Adriaan Callaerts for working on the release.
Fixed
Changed
-
Used
1instead ofeinfor GermanformatDurationto make it consistent with other locales and formats. (#​2505) -
Made Norwegian
formatDurationconsistent with other locales by using numeric representation instead of written. (#​2469) -
Use the word "sekunda" instead of "vteřina" for second in the Czech locale.
-
Made Flemish short date format corresponds to the Flemish government.
Added
-
Added
roundingMethodoption todifferenceInHours,differenceInMinutes,differenceInQuarters,differenceInSecondsanddifferenceInWeekswithtruncas the default method. (#​2555)
v2.23.0
Thanks to Liam Tait, fturmel, Takuya Uehara, Branislav Lazic, Seyyed Morteza Moosavi, Felipe Armoni, Sasha Koss, Michael Mok, Tan75 and Maxim Topciu for working on the release.
Changed
Added
-
Added a new
clampfunction that allows to bound a date to an interval. -
Allowed passing
undefinedin the duration to add and sub functions.
v2.22.1
Thanks to Sasha Koss for working on the release.
Fixed
- Fixed constant typings. (#​2491)
v2.22.0
Sasha Koss, Lucas Silva, Lay, jwbth, fturmel, Tan75 and Anastasia Kobzar worked on this release.
Fixed
Added
- Added 18 new conversion functions:
daysToWeekshoursToMillisecondshoursToMinuteshoursToSecondsmillisecondsToHoursmillisecondsToMinutesmillisecondsToSecondsminutesToHoursminutesToMillisecondsminutesToSecondsmonthsToQuartersmonthsToYearsquartersToMonthsquartersToYearssecondsToHourssecondsToMillisecondssecondsToMinutesweeksToDaysyearsToMonthsyearsToQuarters
v2.21.3
This release is brought to you by Maxim Topciu.
Fixed
v2.21.2
Kudos to Aleksei Korzun, Maxim Topciu, Jonas L, Mohammad ali Ali panah and Tan75 for working on the release.
Fixed
v2.21.1
Thanks to Sasha Koss for working on the release.
Fixed
v2.21.0
This release is brought to you by Aleksei Korzun, Tan75, Rubens Mariuzzo, Christoph Stenglein and Clément Tamisier.
Fixed
Added
v2.20.3
Kudos to fturmel for working on the release.
Fixed
v2.20.2
Kudos to Maxim Topciu for working on the release.
Fixed
v2.20.1
This release is brought to you by Sasha Koss and Tan75.
Fixed
- Fixed
isDateFlow typings that we broke inv2.20.0.
v2.20.0
This release is brought to you by Sasha Koss, Maxim Topciu, tu4mo, Tan75, Ardit Dine, Carl Rosell, Roman Mahotskyi, Mateusz Krzak, fgottschalk, Anastasia Kobzar, Bilguun Ochirbat, Lesha Koss, YuLe and guyroberts21.
Fixed
-
Made
formatDistanceStrictandformatDistanceToNowStrictalways return1 yearinstead of12 months. (#​2388) -
Fixed
nextDay,nextMondayandnextTuesdaymissing in exports and type definitions. (#​2325)
Added
v2.19.0
Tan75 worked on this release.
Fixed
-
Assigned the correct
firstWeekContainsDatevalue (4) for the French locale. (#​2148) -
Fixed a bug in
differenceInMonthsandintervalToDurationthat occurs when dealing with the 28th of February. (#​2255)
Added
v2.18.0
Thanks to Tan75 and Lesha Koss.
Fixed
Added
v2.17.0
Kudos to @​shaykav, @​davidgape89, @​rikkalo, @​tan75, @​talgautb, @​owenl131, @​kylesezhi, @​inigoiparragirre, @​gius, @​Endeauvirr and @​frankyston.
Fixed
-
Fixed
differenceInMonthsfor edge cases, such as the end of February dates. -
Fixed
formatDurationweek translation inptandpt-BRlocales. -
Made Japanese locale to use the correct value for the start of the week.
-
Fixed the short and medium date formats in the Czech locale.
Added
-
Added
intlFormata lightweight formatting function that uses Intl API. Eventually, it will become the default formatting function, so it's highly recommended for new code. -
Added an ability to format lowercase am/pm with
aaaandbbbtokens.
v2.16.1
Kudos to @​aleksaps, @​leedriscoll and @​BanForFun for pull-requests!
Fixed
- Fixed a typo in Scottish Gaelic (gd) locale.
- Fixed typos in Serbian Latin locale.
- Fixed greek grammar for Saturday on
formatRelative. - Removed locale snapshots from the npm package making it lighter.
v2.16.0
Kudos to @​jvpelt, @​piotrl, @​yotamofek, @​dwaxweiler, @​leedriscoll and @​bradevans for working on the release. Also thanks to @​PascalHonegger, @​pickfire, @​TheJaredWilcurt, @​SidKH and @​nfantone for improving the documentation.
Fixed
- Added correct translations for Welsh
1 minuteand2 days. - Fixed
formatRFC3339formatting timezone offset with minutes. - Added missing locale type definition for
formatDuration - Fixed Scottish Gaelic locale issues.
Changed
- Used shorter Hebrew alternative for "about".
- Improved string arguments warning after upgrading to v2.
Added
v2.15.0
Thanks to @​belgamo, @​Matsuuu, @​Imballinst, @​arsnyder16, @​pankajupadhyay29, @​DCBN, @​leedriscoll, @​gottsohn, @​mukuljainx and @​dtriana for working on the release. Also kudos to @​KidkArolis, @​imgx64, @​fjc0k, @​wmonk, @​djD-REK, @​dandv, @​psimk and @​brimworks for improving the documentation.
Fixed
- Fixed behavior of
addBusinessDayswhen input date is a weekend day. - Fixed
parseISOnot returningInvalid Dateon incorrect string when there are spaces in it. - Fixed
esround-tripping dates with Wednesday. - Fixed round-trip bug with
d/EEEEordering in tokens likePPPPP. - Fixed issues with parsing values in Japanese.
- Fixed Hungarian breaking IE11.
- Fixed Spanish accents in Saturday and Wednesday.
Changed
Added
- Added Swiss-French
fr-CHlocale. - Added Flemish
nl-BElocale. - Added Scottish Gaelic
gdlocale. - Added New Zealand English
en-NZlocale. - Added
isMatchfunction.
v2.14.0
Kudos to @​julamb, @​JacobSoderblom, @​justingrant, @​dragunoff, @​jmate0321, @​gbhasha, @​rasck, @​AlbertoPdRF, @​sebastianhaberey and @​giogonzo for working on the release!
Fixed
- Fixed DST issues with
add,addDaysandaddMonths. - Fixed "quarter" translation in the Bulgarian locale.
- Fixed
formatDistancestrings in the Hungarian locale. - Fixed Danish month abbreviations.
- Fixed parsing of mei in the Dutch locale.
- Fixed missing preposition in
formatLongin the Spanish locale. - Fixed
formatRelativein the Italian locale.
Added
- Added
eachQuarterOfInterval. - Added Basque (
eu) locale. - Added Indian English (
en-IN) locale. - Added
eachHourOfInterval.
v2.13.0
Thanks to @​JorenVos, @​developergouli, @​rhlowe and @​justingrant for working on the release!
Fixed
Added
v2.12.0
Kudos to @​leshakoss, @​skyuplam, @​so99ynoodles, @​dkozickis, @​belgamo, @​akgondber, @​dcousens and @​BoomDev for working on the release!
Fixed
- Fixed minulý štvrtok in Slovak locale.
- Fixed date ordinalNumber for ja/zh-CN/zh-TW and ko.
- Fixed quarters parsing.
- Fixed
setDaywithweekStartsOn!= 0. - Fixed differenceInDays across DST.
- Fixed required arguments exception message.
Added
v2.11.1
Fixed
- Rebuilt TypeScript and flow types.
v2.11.0
Kudos to @​oakhan3, @​Mukhammadali, @​altrim, @​leepowellcouk, @​amatzon, @​bryanMt, @​kalekseev, @​eugene-platov and @​tjrobinson for working on the release.
Fixed
- Fixed a bug in
differenceInYearscausing incorrect results when the left date is a leap day. - Fixed
parseISOto work correctly around time shift dates. - Fixed
formatto work correctly with GMT-0752/GMT-0456 and similar timezones.
Changed
- Changed
getDaytypings to return0|1|2|3|4|5|6instead ofnumber. - Improved Chinese locale:
- Change date format to meet the national standard (GB/T 7408-2005).
- Improve
ordinalNumberfunction behavior. - Add prefix in
formatRelativedepending on if it's a current week or not.
Added
v2.10.0
Fixed
Fixed
- Fixed a bug in setDay when using weekStartsOn that is not 0
Added
- Added
weekstoDuration. - Added
weekssupport toaddandsub. - Added details message in
throwProtectedError.
v2.9.0
Thanks to @​mborgbrant, @​saintplay, @​mrenty, @​kibertoad, @​levibuzolic, @​Anshuman71, @​talgautb, @​filipjuza, @​tobyzerner, @​emil9453, @​fintara, @​pascaliske, @​rramiachraf, @​marnusw and @​Imballinst for working on the release.
Fixed
- Fixed a bug with addBusinessDays returning the Tuesday when adding 1 day on weekends. Now it returns the Monday.
- Added missing timezone to
formatISO. - Removed dots from short day period names in the Kazakh locale.
- Fixed typo in formatDistance in the Czech locale.
- Fixed shortenings in the Bulgarian locale.
- Fixed regex for the May in the Portuguese locale.
Added
- Added
eachMonthOfIntervalandeachYearOfInterval. - Added
inclusiveoption to `areIntervalsOverlapping. - Added
isExistsfunction that checks if the given date is exists. - Added
addfunction to add seconds, minutes, hours, weeks, years in single call. - Added
subfunction, the opposite ofadd. - Added
Durationtype used inaddandsub. - Added Azerbaijani (az) locale.
- Added Moroccan Arabic (ar-MA) locale.
Changed
- Reduced the total minified build size by 1Kb/4%.
- Made all properties in
Localetype optional. - Added missing properties to
Localetype. - Add the locale code to
Localetype. - Added support of space time separator to
parseJSON. - Allowed up to 7 digits in milliseconds in
parseJSON.
v2.8.1
Thanks to @​Imballinst for the bug fix!
Fixed
v2.8.0
Kudos to @​NaridaL, @​Zyten, @​Imballinst, @​leshakoss and @​Neorth for working on the release.
Fixed
Added
- Added Malay (ms) locale.
- Added
formatISO,formatISO9075,formatRFC3339, andformatRFC7231functions.
v2.7.0
Thanks to @​mzgajner, @​NaridaL, @​Zyten, @​leshakoss, @​fintara, @​kpr-hellofresh for contributing to the release.
Fixed
- Fixed a mistake in the Slovenian locale.
- Fixed incorrect behavior of
parseISOin Firefox caused by differences ingetTimezoneOffset.
Changed
- Make object arguments types more elaborate in Flow type definitions.
- Get rid of deprecated Function in Flow type definitions.
- Allow
parseJSONto accept strings without trailing 'Z' symbol and with up to 6 digits in the milliseconds' field.
Added
v2.6.0
Kudos to @​marnusw, @​cdrikd and @​rogyvoje for working on the release!
Added
- Added
parseJSON- lightweight function (just 411 B) that parses dates formatted withtoJSON. - Added the language code to each locale.
- Added
subBusinessDaysfunction. - Added both Serbian - cyrillic (sr) and latin (sr-Latn) locales.
v2.5.1
Thanks to @​mitchellbutler for the bug fix!
Fixed
v2.5.0
Kudos to @​dkozickis, @​drugoi, @​kranthilakum, @​102, @​gpetrioli and @​JulienMalige for making the release happen.
Fixed
Added
- Added Kazakh (kk) locale.
- Added Telugu (te) locale.
- Added Canadian French (fr-CA) locale.
- Added Australian English (en-AU) locale.
- Exported
IntervalandLocaletypes from Flow typings.
v2.4.1
Thanks to @​mrclayman for reporting the issue and @​leshakoss for fixing it.
Fixed
v2.4.0
This release is brought to you by these amazing people: @​lovelovedokidoki, @​alexigityan, @​kalekseev and @​andybangs. You rock!
Fixed
- Fixed Vietnamese parsing patterns.
- Fixed Czech parsing regexes.
- Fixed offset for Eastern Hemisphere in
parseISO.
Added
v2.3.0
Huge thanks to @​lovelovedokidoki who improved 8 (!) locales in an unstoppable open-source rampage and @​VesterDe for fixing Slovenian locale 👏
Fixed
- Fixed the translation of "yesterday" in the Slovenian locale.
- Fixed French parsing issues with June and August.
- Improved Turkish parsing.
- Fixed "March" in Dutch parsing patterns.
- Fixed Hindi parsing patterns.
Added
- Added Finnish matching patterns.
- Accept abbreviated March, June, July in Norwegian locales.
- Added parsing for Greek months with long formatting.
v2.2.1
Kudos to date-fns contributors: @​mzgajner, @​sibiraj-s, @​mukeshmandiwal, @​SneakyFish5 and @​CarterLi.
Added
- Added new
setfunction. - Updated Slovenian (sl) locale for v2.
- Added Tamil (ta) locale.
- Added Hindi (hi) locale.
- Added support of
\ninformat,lightFormatandparse.
v2.1.0
Thanks to date-fns contributors: @​ManadayM, @​illuminist, @​visualfanatic, @​vsaarinen and at last but not the least @​leshakoss!
Fixed
- Set start of the week to Sunday for Thai locale.
- Fixed month matching in Polish locale.
- Fixed
eachWeekendOfIntervalskipping the first date in the supplied interval.
Added
v2.0.1
Fixed
- Fix
getWeekOfMonthwithoptions.weekStartsOnset to 1 not working for Sundays. Kudos to @​waseemahmad31!
v2.0.0
If you're upgrading from v2 alpha or beta, see the pre-release changelog.
Fixed
-
Fixed the
toDatebug occurring when parsing ISO-8601 style dates (but not valid ISO format) with a trailing Z (e.g2012-01Z), it returned Invalid Date for FireFox/IE11 #​510 -
Fixed
differenceIn...functions returning negative zero in some cases: #​692 -
isDatenow works properly with dates passed across iframes #​754. -
Fixed a few bugs that appeared in timezones with offsets that include seconds (e.g. GMT+00:57:44). See PR #​789.
-
Fixed DST issue. See #​972 and #​992 for more details.
-
Fixed DST issue in
eachDayOfIntervalthat caused time in the days after DST change to have the shift as well. -
Fixed bug in Galician locale caused by incorrect usage of
getHoursinstead ofgetUTCHours.
Changed
-
BREAKING: now functions don't accept string arguments, but only numbers or dates. When a string is passed, it will result in an unexpected result (
Invalid Date,NaN, etc).From now on a string should be parsed using
parseISO(ISO 8601) orparse.In v1 we've used
new Date()to parse strings, but it resulted in many hard-to-track bugs caused by inconsistencies in different browsers. To address that we've implemented our ISO 8601 parser but that made library to significantly grow in size. To prevent inevitable bugs and keep the library tiny, we made this trade-off.See this post for more details.
// Before v2.0.0 addDays('2016-01-01', 1) // v2.0.0 onward addDays(parseISO('2016-01-01'), 1) -
BREAKING: new format string API for
formatfunction which is based on Unicode Technical Standard #​35. See this post for more details.Unit v2 Pattern v1 Pattern Result examples Era G..GGG AD, BC GGGG Anno Domini, Before Christ GGGGG A, B Calendar year y 44, 1, 1900, 2017 yo 44th, 1st, 0th, 17th yy YY 44, 01, 00, 17 yyy 044, 001, 1900, 2017 yyyy YYYY 0044, 0001, 1900, 2017 yyyyy ... Local week-numbering year Y 44, 1, 1900, 2017 Yo 44th, 1st, 1900th, 2017th YY 44, 01, 00, 17 YYY 044, 001, 1900, 2017 YYYY 0044, 0001, 1900, 2017 YYYYY ... ISO week-numbering year R -43, 0, 1, 1900, 2017 RR GG -43, 00, 01, 1900, 2017 RRR -043, 000, 001, 1900, 2017 RRRR GGGG -0043, 0000, 0001, 1900, 2017 RRRRR
Configuration
đź“… Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
Edited/Blocked Notification
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.
Autoclosing Skipped
This PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error.