npm / web-streams-polyfill
web-streams-polyfill
What changed in web-streams-polyfill 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
2 performance1 behavior and defaults
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initweb-streams-polyfill 43 changes
Performance 2
When a chunk is available in the stream’s internal queue, reads now return a resolved promise using Promise.resolve(), which is slightly faster.
When a chunk is available in the stream’s internal queue, reads now return a resolved promise using Promise.resolve(), which is slightly faster.
Behavior and default changes 1
When chunks are available in the internal queue, pipeTo() reads them in a single batch and writes them to the destination while respecting backpressure.