Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Latest commit

 

History

History
45 lines (29 loc) · 1.63 KB

CHANGELOG.md

File metadata and controls

45 lines (29 loc) · 1.63 KB
  • Fix the name of the library in non-module loader browser environments. Previously, the library was attached as window.none. Now it is available under window.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 and weekendDays now aligns more closely with Moment.prototype.diff. If the endMoment passed in comes before startMoment, then the result will be negative.
  • Better docs!

The API is now more consistent.

  • Rename isWorkDay to isWeekDay
  • Rename addWorkDays to addWeekDays
  • Rename subtractWorkDays to subtractWeekDays
  • 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 and isWorkDay
  • Removes the wrapper file altogether
  • Fixes an issue with the UMD wrapper

First major release.