All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- 'module' has been replaced with 'jsnext:main' to support both rollup and webpack 2
lib
is now included in npm release to allow packagers to repackage the library- Update to webpack 2
- Add @victoriafrench to CONTRIBUTORS
- Add @JochenDiekenbrock to CONTRIBUTORS
- Added contributors to README
- Added CircleCI badge to README
- Added yarn lockfile
- Added polyfill for
Symbol
- Updated contributors in package.json
- Updated usage instructions for browsers (
window['moment-range']
) - Moved
expect.js
from dependencies to development dependencies
- ES6
- Flow typing
- Added documentation about range creation (thanks @seanwendt)
- Added webpack
- Added eslint
- Added karma/mocha/expect.js
- Added many more tests
- Addded new methods:
by
,reverseBy
,byRange
,reverseByRange
(#68)- Pass options as object
- New methods use iterators
- Added reversal methods
- Discrete methods for different iterator types
- Added ability to iterate over a range by a step (#93)
- Added
isEqual
as alias ofisSame
- Added
adjacent
method and option tooverlaps
(#92 #112) - Added
duration
as an alias ofdiff
(#64) - Added CircleCI config
- Documentation
- Changed usage: import Moment from 'moment'; import { DateRange, extendMoment } from 'moment-js'; const moment = extendMoment(Moment);
- Pass additonal optional rounded argument in
diff
(#104) - Updated short-hand units (#134)
- Updated packaging rules and scripts
- Iteration methods now return an
Iterator
dist/
is only included in the npm release now
- Removed bower
- Removed grunt
- Removed jshint
- Removed mocha/should
- Removed
toArray
- Fixed issue with
moment#within
and moment-timezone (#127) - Fixed typo in comment (#133)