runtime: implement CompressionStream/DecompressionStream (#24757)

Closes https://github.com/oven-sh/bun/issues/1723
Closes https://github.com/oven-sh/bun/pull/22214
Closes https://github.com/oven-sh/bun/pull/24241

also supports the `"brotli"` and `"zstd"` formats

<img width="1244" height="547" alt="image"
src="https://github.com/user-attachments/assets/aecf4489-29ad-411d-9f6b-3bee50ed1b27"
/>
This commit is contained in:
Meghan Denny
2025-11-20 17:14:37 -08:00
committed by GitHub
parent b72ba31441
commit 5702b39ef1
20 changed files with 699 additions and 12 deletions

View File

@@ -245,7 +245,7 @@ The table below lists all globals implemented by Node.js and Bun's current compa
### [`CompressionStream`](https://developer.mozilla.org/en-US/docs/Web/API/CompressionStream)
🔴 Not implemented.
🟢 Fully implemented.
### [`console`](https://developer.mozilla.org/en-US/docs/Web/API/console)
@@ -273,7 +273,7 @@ The table below lists all globals implemented by Node.js and Bun's current compa
### [`DecompressionStream`](https://developer.mozilla.org/en-US/docs/Web/API/DecompressionStream)
🔴 Not implemented.
🟢 Fully implemented.
### [`Event`](https://developer.mozilla.org/en-US/docs/Web/API/Event)