Repository navigation
Bug fixes, no API changes.
Fixes
- The package now loads in Node. Because
package.jsonsets"type": "module", Node treated the UMD build inmainas an ES module, so bothrequire('d3-simple-slider')andimportreturned an empty module.mainnow 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
sliderTopandsliderRightsliders 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
sliderRightandsliderBottompointed 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 throwERR_REQUIRE_ESM.- Tests and CI now run on Node 20, 22 and 24. (#233)