Skip to content

v3.3.0

Compare
Choose a tag to compare
@MattiasBuelens MattiasBuelens released this 04 Jan 15:24
· 72 commits to master since this release
  • 馃殌 Added global augmentations for ReadableStream to the polyfill's type definitions. (#130)
    • This allows TypeScript users to use new methods such as ReadableStream.prototype[Symbol.asyncIterator](), even when TypeScript doesn't yet have a built-in type definition for them.
  • 馃挜 The type definitions now require TypeScript 3.6 or higher. (#130) (Reverted in version 3.3.1)
  • 馃憮 Align with spec version 4dc123a (#115, #134)
    • Added 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)
    • Added Transformer.cancel method, which is called when the readable side of a TransformStream is cancelled or when its writable side is aborted.
    • Added min option to ReadableStreamBYOBReader.read(view, options).
    • Added support for AbortSignal.reason when aborting a pipe.
  • 馃殌 Buffers passed to ReadableStreamBYOBReader.read(view) will now be correctly transferred if either ArrayBuffer.prototype.transfer() or structuredClone() is available. (#136)
  • 馃悰 Prevent warnings from Bluebird about a promise being created within a handler but not being returned from a handler. (#131)
  • 馃彔 Improve internal DOMException polyfill. (#133)