Skip to content

fix(browser): platform-free zTXt inflate - #24

Merged
woss merged 2 commits into
mainfrom
fix/browser-ztxt
Sep 29, 2026
Merged

woss merged 2 commits into
mainfrom
fix/browser-ztxt

Conversation

@woss

@woss woss commented Sep 29, 2026

Copy link
Copy Markdown
Owner

Follows #22. node:zlib import in png.ts broke the browser bundle gate; swap to DecompressionStream('deflate') (zlib RFC 1950), which makes parse async. Also bumps release to 0.5.1 since JSR already published 0.5.0.

png.ts is bundled into dist/browser.js; node:zlib leaked a node: import
and failed the browser build gate. DecompressionStream('deflate') decodes
zlib (RFC 1950) streams platform-free on Node >=18 and all browsers.
@woss
woss merged commit 3d55e7b into main Sep 29, 2026
1 of 2 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