Skip to content

2.0.0

Compare
Choose a tag to compare
@gf3 gf3 released this 01 Jun 18:12
· 152 commits to master since this release

moment has been moved to a peerDependency which means that moment-range will play nice in node-land as a moment plugin. going forward you'll need to add moment to your dependencies and require it before moment-range, e.g.:

package.json

{
  "dependencies": {
    "moment": "~2",
    "moment-range": "~2"
  }
}

code:

var moment = require('moment');
var DateRange = require('moment-range');