Socket
Socket
Sign inDemoInstall

web-streams-polyfill

Package Overview
Dependencies
Maintainers
3
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web-streams-polyfill - npm Package Versions

134

3.1.1

Diff

Changelog

Source

v3.1.1 (2021-09-06)

  • 🐛 Fix compatibility with TypeScript's DOM types for ReadableStream and TransformStream (#85, #86)
mattiasbuelens
published 3.1.0 •

Changelog

Source

v3.1.0 (2021-07-21)

  • 🚀 Calling ReadableStream.tee() on a readable byte stream now returns two readable byte streams. (#81)
  • 🚀 Add WritableStreamDefaultController.signal and .abortReason. (#81)
    • .signal requires a global AbortController constructor to be available. If necessary, use a polyfill.
  • 🐛 Make sure streams created with a different version of the polyfill do not pass the brand checks. (#75, #77)
  • 👓 Align with spec version cada812 (#79, #81)
mattiasbuelens
published 3.0.3 •

Changelog

Source

v3.0.3 (2021-04-09)

  • 💅 Change Promise<void> to Promise<undefined> in TypeScript type definitions (#72)
  • 🐛 Fix ReadableStream.tee() resolving its cancel() promise too early (#73)
  • 👓 Align with spec version 6762cdb (#73)
mattiasbuelens
published 3.0.2 •

Changelog

Source

v3.0.2 (2021-02-10)

mattiasbuelens
published 3.0.1 •

Changelog

Source

v3.0.1 (2020-11-12)

  • 📝 Add documentation to type definitions (#62)
  • 👓 Align with spec version 6cd5e81 (#63)
  • 🐛 Fix an issue where the polyfill could throw an error when resolving/rejecting reader.closed when it was already resolved/rejected (#66, #67)
mattiasbuelens
published 3.0.0 •

Changelog

Source

v3.0.0 (2020-07-20)

  • 💥 Align with spec version 62fe4c8 (#52, #57, #59)
    This includes the following breaking changes:
    • 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
mattiasbuelens
published 2.1.1 •

Changelog

Source

v2.1.1 (2020-04-11)

  • 💅 Improve ReadResult in TypeScript type definitions. (759506e, #49)
mattiasbuelens
published 2.1.0 •

Changelog

Source

v2.1.0 (2020-02-23)

mattiasbuelens
published 2.0.6 •

Changelog

Source

v2.0.6 (2019-11-08)

  • 🐛 Fix type definitions to be compatible with TypeScript 3.3 and lower. (#39, #40)
mattiasbuelens
published 2.0.5 •

Changelog

Source

v2.0.5 (2019-10-08)

  • 👓 Align with spec version ae5e0cb (#33)
  • 🐛 Fix support for non-browser environments, such as Node.
    • Accept polyfilled AbortSignals. (#36)
    • Polyfill DOMException if necessary. (#37)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc