Releases: date-fns/date-fns
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
addBusinessDays
when input date is a weekend day. - Fixed
parseISO
not returningInvalid Date
on incorrect string when there are spaces in it. - Fixed
es
round-tripping dates with Wednesday. - Fixed round-trip bug with
d
/EEEE
ordering in tokens likePPPPP
. - Fixed issues with parsing values in Japanese.
- Fixed Hungarian breaking IE11.
- Fixed Spanish accents in Saturday and Wednesday.
Changed
Added
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
,addDays
andaddMonths
. - Fixed "quarter" translation in the Bulgarian locale.
- Fixed
formatDistance
strings in the Hungarian locale. - Fixed Danish month abbreviations.
- Fixed parsing of mei in the Dutch locale.
- Fixed missing preposition in
formatLong
in the Spanish locale. - Fixed
formatRelative
in the Italian locale.
Added
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
setDay
withweekStartsOn
!= 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
differenceInYears
causing incorrect results when the left date is a leap day. - Fixed
parseISO
to work correctly around time shift dates. - Fixed
format
to work correctly with GMT-0752/GMT-0456 and similar timezones.
Changed
- Changed
getDay
typings to return0|1|2|3|4|5|6
instead ofnumber
. - Improved Chinese locale:
- Change date format to meet the national standard (GB/T 7408-2005).
- Improve
ordinalNumber
function behavior. - Add prefix in
formatRelative
depending on if it's a current week or not.
Added
v2.10.0
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
eachMonthOfInterval
andeachYearOfInterval
. - Added
inclusive
option to `areIntervalsOverlapping. - Added
isExists
function that checks if the given date is exists. - Added
add
function to add seconds, minutes, hours, weeks, years in single call. - Added
sub
function, the opposite ofadd
. - Added
Duration
type used inadd
andsub
. - Added Azerbaijani (az) locale.
- Added Moroccan Arabic (ar-MA) locale.
Changed
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.