Skip to content

es bundle, pnpm - #295

Merged
mbostock merged 11 commits into
mainfrom
mbostock/rollup
Nov 3, 2026
Merged

mbostock merged 11 commits into
mainfrom
mbostock/rollup

Conversation

@mbostock

@mbostock mbostock commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

See d3/d3-array#288 for context.

Also upgrades canvas to v3 (prebuilt N-API binaries; v2 doesn't load on Node 24) and allows its install script via pnpm.onlyBuiltDependencies.

Also switches the tests from mocha to vitest (keeping node’s assert and it), and ESLint to v10 with a flat config; vitest is v5.

🤖 Generated with Claude Code

mbostock and others added 11 commits November 2, 2026 15:54
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mbostock
mbostock merged commit bcfc112 into main Nov 3, 2026
1 check passed
@mbostock
mbostock deleted the mbostock/rollup branch November 3, 2026 06:06
Fil added a commit to d3/d3-geo-polygon that referenced this pull request Nov 26, 2026
Applies the November 2026 release sweep of the core d3 modules (see d3/d3-array#288, d3/d3-geo#295):

- Adopt pnpm (also for the GitHub Pages docs build)
- Adopt npm trusted publishing via GitHub Actions, replacing the token + OTP workflow
- Publish an ES module bundle instead of separate source files
- Switch tests from mocha to vitest; ESLint 10 with the shared flat config

Source stays at ES2020 (src/reclip.js uses optional chaining), as before.
The published files are limited to dist/*.{js,mjs} so the docs build in dist/docs is never packed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant