Update deps, CI, and add npm publish workflow#18
Merged
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
2.0.1->2.16.4(fixes native build issues on newer Node)>=4.9.5(including 5.x), update typedoc0.22.7->0.28.17@types/node^16.7.8->^20.0.0[12.x, 14.x, 15.x, 16.x]to[20.x, 22.x]checkout@v4,setup-node@v4)engines.nodeto>=20workflow_dispatchpublish workflow for manual npm publish.parcel-cache/to.gitignoreTest plan
npm test— 190 passing on Node 20npm run build— all 3 build steps pass (parcel, main, module)🤖 On behalf of @grimmerk — generated with Claude Code