date-fns v2.9.0 Release Notes
Release Date: 2020-01-08 // over 3 years ago-
๐ 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