v2.1.0: bundle size −57%, fix consumer types, cross-browser Playwright CI, Node 20.4.0+ support#28
Merged
Merged
Conversation
Co-authored-by: jEnbuska <11061511+jEnbuska@users.noreply.github.com>
…h try/finally Co-authored-by: jEnbuska <11061511+jEnbuska@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Reduce bundle size while maintaining TypeScript code quality
Reduce bundle size 57% via minification and Feb 22, 2026
using keyword removal
…nk workflow Co-authored-by: jEnbuska <11061511+jEnbuska@users.noreply.github.com>
Copilot
AI
changed the title
Reduce bundle size 57% via minification and
Build: explicit dist cleanup, npm link script, and local testing docs
Feb 22, 2026
using keyword removalCo-authored-by: jEnbuska <11061511+jEnbuska@users.noreply.github.com>
Copilot
AI
changed the title
Build: explicit dist cleanup, npm link script, and local testing docs
Reduce bundle size, clean build script, npm link workflow, and zero-deps callout
Feb 22, 2026
…olve types correctly Co-authored-by: jEnbuska <11061511+jEnbuska@users.noreply.github.com>
Copilot
AI
changed the title
Reduce bundle size, clean build script, npm link workflow, and zero-deps callout
Fix consumer TypeScript types by switching declaration generation to tsup dts bundling
Feb 22, 2026
Copilot stopped work on behalf of
jEnbuska due to an error
February 22, 2026 12:12
Copilot stopped work on behalf of
jEnbuska due to an error
February 22, 2026 12:14
…ests Co-authored-by: jEnbuska <11061511+jEnbuska@users.noreply.github.com>
Copilot
AI
changed the title
Fix consumer TypeScript types by switching declaration generation to tsup dts bundling
Bundle size, DTS fix, example projects, and npm workflow improvements
Feb 22, 2026
Copilot
AI
changed the title
Bundle size, DTS fix, example projects, and Playwright cross-browser tests
v2.1.0: bundle size −57%, DTS consumer fix, cross-browser Playwright examples, CI integration
Feb 22, 2026
Co-authored-by: jEnbuska <11061511+jEnbuska@users.noreply.github.com>
Copilot
AI
changed the title
v2.1.0: bundle size −57%, DTS consumer fix, cross-browser Playwright examples, CI integration
Fix CI: exclude examples/ from root tsc and vitest discovery
Feb 22, 2026
…ript Co-authored-by: jEnbuska <11061511+jEnbuska@users.noreply.github.com>
Copilot
AI
changed the title
Fix CI: exclude examples/ from root tsc and vitest discovery
Fix Feb 22, 2026
check-all and CI: auto-install Playwright browsers, exclude examples from root tsc/vitest, v2.1.0 release
…or node-ts example Co-authored-by: jEnbuska <11061511+jEnbuska@users.noreply.github.com>
Copilot
AI
changed the title
Fix
v2.1.0: bundle size −57%, fix consumer types, cross-browser Playwright examples, CI matrix, Node 20.4.0+ support
Feb 22, 2026
check-all and CI: auto-install Playwright browsers, exclude examples from root tsc/vitest, v2.1.0 release…idance Co-authored-by: jEnbuska <11061511+jEnbuska@users.noreply.github.com>
…tsconfig guidance to README Co-authored-by: jEnbuska <11061511+jEnbuska@users.noreply.github.com>
Copilot
AI
changed the title
v2.1.0: bundle size −57%, fix consumer types, cross-browser Playwright examples, CI matrix, Node 20.4.0+ support
Document DOM.Iterable is not required; add TypeScript lib guidance to README
Feb 22, 2026
… docs Co-authored-by: jEnbuska <11061511+jEnbuska@users.noreply.github.com>
Copilot
AI
changed the title
Document DOM.Iterable is not required; add TypeScript lib guidance to README
v2.1.0-beta.0: bundle size −57%, fix consumer types, cross-browser Playwright CI, Node 20.4.0+ support
Feb 22, 2026
…ta docs Co-authored-by: jEnbuska <11061511+jEnbuska@users.noreply.github.com>
Copilot
AI
changed the title
v2.1.0-beta.0: bundle size −57%, fix consumer types, cross-browser Playwright CI, Node 20.4.0+ support
v2.1.0: bundle size −57%, fix consumer types, cross-browser Playwright CI, Node 20.4.0+ support
Feb 22, 2026
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.
A collection of build pipeline, type distribution, integration testing, and release tooling improvements.
Bundle size −57% (55 KB → 23 KB)
minify: trueintsup.config.tsusingkeyword withtry/finallyin resolver classes — eliminates the__knownSymbol/__using/__callDisposepolyfill block tsup was injecting for ES2022 targetsConsumer TypeScript types fixed
tsc --emitDeclarationOnly+verbatimModuleSyntax: truepreserved raw.tsextensions in emitted.d.tsimport paths, breaking any consumer withoutallowImportingTsExtensions. Switched to tsupdts: true— all declarations bundled into a singledist/index.d.ts.tsconfig.build.jsondeleted.Node.js minimum lowered to 20.4.0
Removing
usingeliminates the 20.5.0 requirement. Only hard runtime dependency isSymbol.dispose/Symbol.asyncDispose(Node 20.4.0+). Added"engines": { "node": ">=20.4.0" }.Example projects & cross-browser tests
examples/node-ts— bare Node.js TypeScript consumer; builds withtscagainst the local packageexamples/react-vite— Vite 7 + React 19 app with a Playwright test suite covering Chromium, Firefox, WebKit (Safari ✅), and Edgenpm testinexamples/react-viteauto-installs Playwright browser binaries so it works out of the box afternpm ciCI
test-example-node: matrix over Node 20 × 22 × 24,fail-fast: falsetest-example-react: Playwright suite; uploads report artifact on failuretsconfig.jsonexcludesexamples/— preventstsc --noEmitwalking sub-projects whose deps aren't installed at rootvitest.config.tsscopes test discovery totests/**/*.test.ts— prevents Vitest picking up Playwright spec filesprettierandcheck-allextended to cover./examplesRelease tooling & docs
publish:betascript (npm publish --tag beta --access public) + abstract "Beta / Pre-release Process" section inCONTRIBUTING.mdDOM.Iterableis not required by this library — documented with a minimallibconfig table🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.