Snyk has created this PR to upgrade date-fns from 2.9.0 to 2.27.0.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 27 versions ahead of your current version.
The recommended version was released a month ago, on 2021-11-30.
Snyk has created this PR to upgrade date-fns from 2.9.0 to 2.27.0.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: date-fns
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
format
in Chinese Simplified locale (zh-CN
).Fixed
P
token informat
for Romanian locale (ro
).Fixed era and month formatters in Azerbaijani locale (
az
).Fixed
formatRelative
patterns in Georgian locale (ka
).Fixed regular expressions for
parse
in Estonian locale (er
).Fixed the format of zeros in
formatDuration
in Czech locale (cs
).Fixed ordinal formatting for years, weeks, hours, minutes and seconds in
fr
,fr-CA
andfr-CH
locales.Fixed constants not having proper TypeScript and Flow types.
Fixed translation for Monday in Turkish locale (
tr
).Fixed
eachMinuteOfInterval
not handling intervals less than a minute correctly.Fixed flow types for
closestTo
andclosestIndexTo
.Added
km
).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
Fixed
formatRelative
format forlastWeek
in Spanish locale.Fixed translation for October in Hindi locale.
Fixed Azerbaijani locale to use correct era matchers for
parse
.Added the functions that use
weekStartsOn
andfirstWeekContainsDate
that were missing from theLocale
documentation page.Changed
Added
Added Irish English locale (
en-IE
).Added Arabic locale (
ar
). (#1670)Added Hong Kong Traditional Chinese locale (zh-HK). (#2684)
Added Egyptian Arabic locale (ar-EG).
This release is brought to you by @ kossnocorp, @ gierschv, @ fturmel, @ redbmk, @ mprovenc, @ artyom-ivanov and @ tan75.
Added
Added Japanese Hiragana locale (
ja-Hira
).Added standalone months support to
de
andde-AT
locales.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
1
instead ofein
for GermanformatDuration
to make it consistent with other locales and formats. (#2505)Made Norwegian
formatDuration
consistent 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
roundingMethod
option todifferenceInHours
,differenceInMinutes
,differenceInQuarters
,differenceInSeconds
anddifferenceInWeeks
withtrunc
as the default method. (#2555)Added new functions:
previousDay
,previousMonday
,previousTuesday
,previousWednesday
,previousThursday
,previousFriday
,previousSaturday
andpreviousSunday
.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
Improved
nextDay
performance by roughly 50%.Added more ordinal formatting to the Japanese locale.
Added
Added a new
clamp
function that allows to bound a date to an interval.Added Bosnian locale (bs).
Allowed passing
undefined
in the duration to add and sub functions.Thanks to Sasha Koss for working on the release.
Fixed
On this release worked Sasha Koss, Lucas Silva, Lay, jwbth, fturmel, Tan75 and Anastasia Kobzar.
Fixed
Fixed Taiwanese locale to use traditional Chinese and removed unnecessary spaces.
Fixed Russian locale to use correct long formats.
Added
daysToWeeks
hoursToMilliseconds
hoursToMinutes
hoursToSeconds
millisecondsToHours
millisecondsToMinutes
millisecondsToSeconds
minutesToHours
minutesToMilliseconds
minutesToSeconds
monthsToQuarters
monthsToYears
quartersToMonths
quartersToYears
secondsToHours
secondsToMilliseconds
secondsToMinutes
weeksToDays
yearsToMonths
yearsToQuarters
This release is brought to you by Maxim Topciu.
Fixed
Kudos to Aleksei Korzun, Maxim Topciu, Jonas L, Mohammad ali Ali panah and Tan75 for working on the release.
Fixed
differenceInBusinessDays
now returnsNaN
instead ofInvalid Date
when an invalid argument is passed to the function.Fixed
weekStartsOn
in Persian locale.Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs