Skip to content

Update deps, CI, and add npm publish workflow#18

Merged
grimmerk merged 8 commits intomasterfrom
update-deps-and-ci
Mar 7, 2026
Merged

Update deps, CI, and add npm publish workflow#18
grimmerk merged 8 commits intomasterfrom
update-deps-and-ci

Conversation

@grimmerk
Copy link
Copy Markdown
Owner

@grimmerk grimmerk commented Mar 7, 2026

Summary

  • Upgrade Parcel 2.0.1 -> 2.16.4 (fixes native build issues on newer Node)
  • Support TypeScript >=4.9.5 (including 5.x), update typedoc 0.22.7 -> 0.28.17
  • Update @types/node ^16.7.8 -> ^20.0.0
  • Update CI Node matrix from [12.x, 14.x, 15.x, 16.x] to [20.x, 22.x]
  • Update CI actions to v4 (checkout@v4, setup-node@v4)
  • Set engines.node to >=20
  • Add workflow_dispatch publish workflow for manual npm publish
  • Add .parcel-cache/ to .gitignore

Test plan

  • npm test — 190 passing on Node 20
  • npm run build — all 3 build steps pass (parcel, main, module)
  • CI should pass on 20.x and 22.x after merge

🤖 On behalf of @grimmerk — generated with Claude Code

grimmerk and others added 8 commits March 7, 2026 19:38
- Upgrade Parcel 2.0.1 -> 2.16.4, typedoc, @types/node
- Support TypeScript >=4.9.5 (including 5.x)
- Update CI Node matrix to 20.x/22.x, actions to v4
- Set engines to node >=20
- Add workflow_dispatch publish workflow

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Parcel 2.16 no longer auto-polyfills Node.js builtins for
browser targets. Explicitly alias buffer to the npm package
so it gets bundled into numjs.min.js.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add util polyfill alongside buffer so the browser bundle
has no remaining bare Node.js builtin imports.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace the util npm polyfill (which pulls in process) with
a tiny browser shim that only provides util.inspect.custom.
Reduces bundle from 461KB to 368KB.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Node.js ESM requires explicit file extensions in relative
imports, but tsc does not rewrite them. Add a post-build
script to fix import paths in build/module/ output.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@grimmerk grimmerk merged commit 0d274b3 into master Mar 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant