Skip to content

Releases: smikitky/node-multi-integer-range

v2.0.0

23 Jun 15:20
Compare
Choose a tag to compare
  • Dropped support for UMD. Now the module is compiled only as commonJS/node style module.
  • Added segmentLength() method.
  • Deprecated some methods, namely addRange, subtractRange, hasRange, isContinuous. These may be removed in future releases.

Existing codes which do not depend on the AMD module system should work fine without problems.

v1.4.3

17 Feb 02:33
Compare
Choose a tag to compare

Fixed compatibility issues for old browsers.

v1.4.2

24 Jan 10:29
Compare
Choose a tag to compare

Small performance improvements and documentation improvements.

v1.4.0

22 Jan 06:39
Compare
Choose a tag to compare
  • Add intersect method.
  • Many methods and the constructor now have consistent signatures. Notably, it's now possible to create a MultiRange object using a single integer (new MultiRange(5)).

v1.3.1

23 Oct 08:19
Compare
Choose a tag to compare
  • #has() now accepts range strings. multirange('1-100').has('10-20') returns true.
  • Optimized #append() so that appending integers to the end of the existing ranges will be faster.

v1.3.0

20 Oct 04:35
Compare
Choose a tag to compare

Exported a shorthand function multirange.

v1.2.1

19 Oct 04:24
Compare
Choose a tag to compare
  • Removed Array.prototype.forEach. The library should work fine for very old runtime. (except for native iterators)
  • Added typings field in package.json, so TypeScript compilers can locate the d.ts file (TS >= 1.6 required). Currently not working with iterators.