web-streams-polyfill
Advanced tools
Changelog
v3.1.0 (2021-07-21)
ReadableStream.tee()
on a readable byte stream now returns two readable byte streams. (#81)WritableStreamDefaultController.signal
and .abortReason
. (#81)
.signal
requires a global AbortController
constructor to be available. If necessary, use a polyfill.cada812
(#79, #81)Changelog
v3.0.3 (2021-04-09)
Promise<void>
to Promise<undefined>
in TypeScript type definitions (#72)ReadableStream.tee()
resolving its cancel()
promise too early (#73)6762cdb
(#73)Changelog
v3.0.2 (2021-02-10)
200c971
(#69)Changelog
v3.0.0 (2020-07-20)
62fe4c8
(#52, #57, #59)ReadableStreamDefaultController
ReadableByteStreamController
ReadableStreamBYOBRequest
ReadableStreamDefaultReader
ReadableStreamBYOBReader
WritableStreamDefaultController
WritableStreamDefaultWriter
TransformStreamDefaultController
ReadableStream.getIterator()
is renamed to ReadableStream.values()
ReadableByteStreamController.byobRequest
can be null
(instead of undefined
) if there is no current BYOB request.ReadableStreamBYOBRequest.view
can be null
(instead of undefined
) if the BYOB request has already been responded to.new ReadableStream(null)
would previously behave like new ReadableStream({})
, but now it throws a TypeError
instead.ReadableStream
now behaves more like an async generator, e.g. returning promises fulfilled with { value: undefined, done: true }
after return()
ing the iterator, instead of returning a rejected promise.PipeOptions
is renamed to StreamPipeOptions
ReadResult
is replaced by ReadableStreamDefaultReadResult
and ReadableStreamBYOBReadResult
ReadableStreamDefaultControllerCallback
is replaced by UnderlyingSourceStartCallback
and UnderlyingSourcePullCallback
ReadableByteStreamControllerCallback
is replaced by UnderlyingByteSourceStartCallback
and UnderlyingByteSourcePullCallback
ReadableStreamErrorCallback
is renamed to UnderlyingSourceCancelCallback
WritableStreamDefaultControllerStartCallback
is renamed to UnderlyingSinkStartCallback
WritableStreamDefaultControllerWriteCallback
is renamed to UnderlyingSinkWriteCallback
WritableStreamDefaultControllerCloseCallback
is renamed to UnderlyingSinkCloseCallback
WritableStreamErrorCallback
is renamed to UnderlyingSinkAbortCallback
TransformStreamDefaultControllerCallback
is replaced by TransformerStartCallback
and TransformerFlushCallback
TransformStreamDefaultControllerTransformCallback
is renamed to TransformerTransformCallback
Changelog
v2.1.0 (2020-02-23)
ed00d2f
(#43, #44)Changelog
v2.0.5 (2019-10-08)
ae5e0cb
(#33)