d3-path is a JavaScript module that serializes canvas path commands for use with SVG. It provides a common API for drawing in both SVG and canvas, useful when you need to convert or generate path data.
Project status
- d3-path appears quiet as of 2026-10-02, with the last upstream push on 2023-10-06 and the last listed published updates dating to 2022-12-19, so there is no evidence of active day-to-day maintenance today.
- Apparent update cadence is low and bursty (roughly years between updates, for example 2020-08, 2021-06, then 2022-12), with no recent cadence visible after 2022-12.
AI summary generated
Recent updates
v3.1.0
Release v3.1.0 introduces d3.pathRound, a new helper for serializing SVG path commands with a fixed number of decimal digits. The implementation adds precision-aware output generation to the underlying Path serialization logic, along with new unit tests and updated documentation.
Featuresv3.0.1
Release v3.0.1 primarily updates build and development dependencies, and adjusts the build setup to make generated artifacts more reproducible. The code diff also changes the UMD banner generation logic used during bundling.
v3.0.0
v3.0.0 converts the package to ES modules and raises the minimum Node.js requirement to >= 12. The release notes only mention the module-type change, but the actual diff also updates package entrypoints, test tooling, and various build and metadata settings.
Breakingv2.0.0
The v2.0.0 release notes state that d3-path now relies on ES2015 features and drops support for older browsers such as IE. The code diff for this release is small, with only minor internal syntax changes, plus documentation updates for the v2 CDN filename and package version bump.
Breakingv1.0.9
v1.0.9 makes the import path for the exported `path` helper use explicit `.js` file specifiers and sets `sideEffects: false` in `package.json` for better bundler optimization. It also changes the publishing behavior by removing `.npmignore`, and updates some development dependencies in `yarn.lock`.
v1.0.8
Release v1.0.8 mainly fixes how the `anticlockwise` (implemented as `ccw`) argument is coerced by `path.arc`, ensuring SVG arc sweep behavior is consistent when callers pass non-boolean truthy or falsy values. The diff also updates README formatting and bumps several build-time devDependencies plus the npm packaging file list.
v1.0.7
v1.0.7 release notes only mention “Housekeeping”. The code diff shows packaging and build-entry changes in package.json and rollup, plus a small refactor of the public entry file location.
v1.0.6
v1.0.6 is described in release notes only as a dependency update. The code diff shows a broader packaging and build-system change (switch from build/ to dist/, new Rollup config, and Terser-based minification) plus a small code-style change in src/path.js.
Breakingv1.0.5
v1.0.5 updates the d3-path package version metadata and adjusts a build dependency version/range. The release notes only state “Update dependencies,” but the diff shows a specific change to the uglify-js entry in package.json, plus minor documentation link target updates in README.md.
v1.0.4
v1.0.4 updates d3-path to handle small-angle cases for Path.prototype.arc. The release notes say it ignores small-angle arcs to work around a Chrome on Ubuntu rendering bug.