web-streams-polyfill
Advanced tools
Changelog
4.1.0 (2025-01-05)
fa4891a
(#156)
Object.prototype.then
,
which broke some internal invariants.next()
and return()
methods of ReadableStream
's async iterator are now correctly "chained",
such that the promises returned by either of these methods are always resolved in the same order
as those methods were called.WritableStreamDefaultController.signal
. (#157)Changelog
4.0.0 (2024-02-28)
import
or require()
a variant.moduleResolution
must be set to "node16"
, "nodenext"
or "bundler"
.ReadableStream.from()
implementation to avoid depending on async function*
down-leveling for ES5. (#144)| v3 import | v4 import | description |
| --- | --- | --- |
| web-streams-polyfill
| web-streams-polyfill/polyfill/es5
| ES5+ polyfill |
| web-streams-polyfill/es6
| web-streams-polyfill/polyfill
| ES2015+ polyfill |
| web-streams-polyfill/es2018
| web-streams-polyfill/polyfill
| ES2015+ polyfill |
| web-streams-polyfill/ponyfill
| web-streams-polyfill/es5
| ES5+ ponyfill |
| web-streams-polyfill/ponyfill/es6
| web-streams-polyfill
| ES2015+ ponyfill |
| web-streams-polyfill/ponyfill/es2018
| web-streams-polyfill
| ES2015+ ponyfill |
Changelog
3.3.0 (2024-01-04)
ReadableStream
to the polyfill's type definitions. (#130)
ReadableStream.prototype[Symbol.asyncIterator]()
,
even when TypeScript doesn't yet have a built-in type definition for them.4dc123a
(#115, #134)
ReadableStream.from(asyncIterable)
, which creates a ReadableStream
wrapping the given iterable or async iterable.
This can also be used to wrap a native ReadableStream
(e.g. a Response.body
from fetch()
),
even if the native ReadableStream
doesn't yet support async iteration. (#135)Transformer.cancel
method, which is called when the readable side of a TransformStream
is cancelled or when its writable side is aborted.min
option to ReadableStreamBYOBReader.read(view, options)
.AbortSignal.reason
when aborting a pipe.ReadableStreamBYOBReader.read(view)
will now be correctly transferred
if either ArrayBuffer.prototype.transfer()
or structuredClone()
is available. (#136)DOMException
polyfill. (#133)Changelog
v3.2.0 (2021-11-06)
WritableStreamDefaultController.abortReason
(#102)
WritableStreamDefaultController.signal.reason
instead.4b6b93c
(#103)