Skip to content

v3.0.0

Latest
Compare
Choose a tag to compare
@sindresorhus sindresorhus released this 23 Jan 08:59

Breaking

  • Require Node.js 12 (#4) c01c7f0
  • This package is now pure ESM
    • This means you need to use import inRange from 'in-range' instead of const inRange = require('in-range').
    • I would recommend moving to ESM. ESM can still import CommonJS packages, but CommonJS cannot import ESM packages synchronously.
    • If you cannot move to ESM yet, don't upgrade to this version.

Improvements

v2.0.0...v3.0.0