You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All classes are now exposed globally. Concretely, this adds the following classes:
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.
Constructors and methods have stricter type checking for object arguments. For example, new ReadableStream(null) would previously behave like new ReadableStream({}), but now it throws a TypeError instead.
Some constructors and methods may throw slightly different errors when given invalid arguments.
Various byte-stream-related APIs now prohibit zero-length views or buffers.
The async iterator of a 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.
💥 Updated TypeScript types to align with new specification (#60)
While these are technically breaking changes, you should only be affected if you manually reference these types from your code.
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