- 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
weekDays
andweekendDays
now aligns more closely withMoment.prototype.diff
. If theendMoment
passed in comes beforestartMoment
, then the result will be negative. - Better docs!
The API is now more consistent.
- Rename
isWorkDay
toisWeekDay
- Rename
addWorkDays
toaddWeekDays
- Rename
subtractWorkDays
tosubtractWeekDays
- 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:
isWeekendDay
andisWorkDay
- Removes the wrapper file altogether
- Fixes an issue with the UMD wrapper
First major release.