Skip to content

2.1.0 (13 Oct 2026)

Latest

Choose a tag to compare

@johnwalley johnwalley released this 13 Oct 21:05
· 1 commit to main since this release
e3cd47a

Bug fixes, no API changes.

Fixes

  • The package now loads in Node. Because package.json sets "type": "module", Node treated the UMD build in main as an ES module, so both require('d3-simple-slider') and import returned an empty module. main now points at a new CommonJS build, dist/d3-simple-slider.cjs. Bundlers and the CDN builds are unaffected. (#234)
  • The fill no longer jumps on top and right sliders. On single-handle sliderTop and sliderRight sliders with .fill(), the start of the fill moved 16px inwards on the first value change. (#235)
  • Two README links are fixed. The source links for sliderRight and sliderBottom pointed at the wrong lines.

Notes

  • require() needs Node 20.19+ or 22.12+, because d3 v7's own packages are ESM-only. Older Node versions throw ERR_REQUIRE_ESM.
  • Tests and CI now run on Node 20, 22 and 24. (#233)