- Fix the name of the library in non-module loader browser environments.
Previously, the library was attached as
window.none. Now it is available underwindow.momentBusiness. Note that this issue does not affect users building with ES2015/CommonJS/AMD module bundlers.
- The functions in this library now accept moments as arguments rather than being attached to the Moment prototype.
- The behavior is
weekDaysandweekendDaysnow aligns more closely withMoment.prototype.diff. If theendMomentpassed in comes beforestartMoment, then the result will be negative. - Better docs!
The API is now more consistent.
- Rename
isWorkDaytoisWeekDay - Rename
addWorkDaystoaddWeekDays - Rename
subtractWorkDaystosubtractWeekDays
- Add dependencies to
bower.json - Support invalid values when adding or subtracting work days (it returns the same moment)
- Add this CHANGELOG file
- Two new methods:
isWeekendDayandisWorkDay
- Removes the wrapper file altogether
- Fixes an issue with the UMD wrapper
First major release.