Releases: rotaready/moment-range
2.2.0
2.1.0
You can now create open-ended ranges which go to the earliest or latest possible date:
var rangeUntil = moment.range(null, "2011-05-05");
var rangeFrom = moment.range("2011-03-05", null);
var rangeAllTime = moment.range(null, null);
a6a609e Jeremy Forsythe: Support null as open ended range
5022bf5 Jeremy Forsythe: Add tests for open-ended ranges
aca2323 Jeremy Forsythe: Update README.md with examples for open ranges
f11230a thomasvanlankveld: Added documentation for creating a range using moment(date).range(interval)
3214a23 thomasvanlankveld: Made wording a little simpler
42ebebd Gianni Chiappetta: Add moment as a dev dependency
b75ec4e Gianni Chiappetta: Update README for npm
72e31df Gianni Chiappetta: Version bump to 2.1.0
2.0.3
2.0.2
NPM main script now uses the compiled dist version.
2.0.1
2.0.0
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');
1.2.0
1.1.2
1.1.1
1.1.0
4c492dd (3 hours ago) Gianni Chiappetta: Convert project from CoffeeScript to JavaScript
87cec66 (2 hours ago) Gianni Chiappetta: Add TOC to README
a08f779 (44 minutes ago) Gianni Chiappetta: Allow DateRange constructor to accept an array (fixes #69)
a5bb421 (30 minutes ago) Gianni Chiappetta: DateRange objects are represented as an ISO 8601 time interval when converted to a string
ec0a135 (4 minutes ago) Gianni Chiappetta: Allow DateRanges to be instantiated with an IS0 8601 time interval string (fixes #66)
8fb30e8 (59 seconds ago) Gianni Chiappetta: Version bump to 1.1.0