moment-holiday
Advanced tools
Changelog
[1.5.0] - 2017-08-03
modifyHolidays.load
function.holiday
function will now return false is the current holiday set is empty and the holiday parameter is set to null.test.js
more dynamic for all locales.us
locale is now United States
and is no longer built-in to moment-holiday.js
by default (You can still get the one with United States
built-in by using build/moment-holiday-us.js
).Changelog
[1.4.2] - 2017-07-26
findHoliday
will now skip keyword search if the string matches the holiday name exactly (case-insensitive).npm test
would fail on holidays with matching keywords.Changelog
[1.4.1] - 2017-07-24
merge
dynamic parameters to static ones for older node version support.findHoliday
will now skip keyword search if the string matches the holiday name exactly.Changelog
[1.4.0] - 2017-07-24
modifyHolidays.set
and modifyHolidays.add
functions for cherry-picking specific holidays to use from a locale.modifyHolidays.undo
function.modifyHolidays.set('US')
.modifyHolidays.set
function would modify the original locale object.(
character.isHoliday
function will now return an array of holiday names if not checking for a specific holiday in the case of multiple holidays on the same day.test.js
now handles dynamic holiday counts and indexes.holidayObject
to moment.holidays.active
to make it public.Changelog
[1.3.0] - 2017-07-19
modifyHolidays.extendParser
function.moment().modifyHolidays
to moment.modifyHolidays
.moment.modifyHolidays
functions chainable.Changelog
[1.1.1] - 2017-07-17
previousHoliday
and nextHoliday
functions will return a single moment object if count
is set to 1
.Changelog
[1.1.0] - 2017-07-17
previousHoliday
and nextHoliday
functions.holidays
alias function for holiday
.moment.fn.holidays
to moment.holidays
.holidaysBetween
function would only return holidays for the start year.holidaysBetween
function now returns an array of moment objects rather than an object.isHoliday
now accepts a holidays
parameter to get a true
response.