Skip to content

Add zlib Brotli compress/decompress APIs - #200

Merged
kevinresol merged 2 commits into
HaxeFoundation:masterfrom
kevinresol:feat/zlib-brotli
Jul 13, 2026
Merged

Add zlib Brotli compress/decompress APIs#200
kevinresol merged 2 commits into
HaxeFoundation:masterfrom
kevinresol:feat/zlib-brotli

Conversation

@kevinresol

Copy link
Copy Markdown
Contributor

Summary

  • Add BrotliCompress / BrotliDecompress externs mirroring Gzip/Gunzip
  • Extend js.node.Zlib with BrotliOptions, create helpers, and brotli compress/decompress (sync + async)
  • Add crc32 binding

Test plan

  • haxe -cp src -D nodejs js.node.Zlib js.node.zlib.BrotliCompress js.node.zlib.BrotliDecompress --no-output
  • Spot-check against Node.js zlib docs for option field names

Made with Cursor

kevinresol and others added 2 commits July 13, 2026 22:20
Expose Node.js Brotli stream classes, create helpers, sync/async buffer APIs, and crc32.

Co-authored-by: Cursor <cursoragent@cursor.com>
Add the documented `info` option and clarify `maxOutputLength` default.

Co-authored-by: Cursor <cursoragent@cursor.com>
@kevinresol

Copy link
Copy Markdown
Contributor Author

ready to merge

@kevinresol
kevinresol merged commit d2d18d5 into HaxeFoundation:master Jul 13, 2026
@kevinresol
kevinresol deleted the feat/zlib-brotli branch July 15, 2026 01:02
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