Socket
Socket
Sign inDemoInstall

web-streams-polyfill

Package Overview
Dependencies
0
Maintainers
3
Versions
35
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
234Next

4.0.0

Diff

Changelog

Source

4.0.0 (2024-02-28)

  • 💥 Rework the list of variants to have more modern defaults. The table below shows how to upgrade your v3 import to their equivalent v4 import. See the migration guide for more information. (#82, #139)
  • 💥 Remove the ES2018 variant, in favor of the ES2015 variant.
  • 💥 Switch to subpath exports for variants.
    • Node 12 or higher is required to import or require() a variant.
    • When using TypeScript, version 4.7 or higher is now required. Additionally, moduleResolution must be set to "node16", "nodenext" or "bundler".
  • 🚀 Support importing as ESM in Node.
  • 💅 Minify all code in the published package, to reduce the download size.
  • 💅 Rework 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 |

mattiasbuelens
published 3.3.3 •

Changelog

Source

3.3.3 (2024-02-16)

  • 🐛 Fix ReadableStream to match TypeScript's AsyncIterable<R> type. (#141, #142)
mattiasbuelens
published 3.3.2 •

Changelog

Source

3.3.2 (2024-01-04)

  • 🐛 Fix bad publish to npm.
mattiasbuelens
published 3.3.1 •

Changelog

Source

3.3.1 (2024-01-04)

  • 🐛 Revert engines bump in package.json. (#137, #138)
  • 🐛 Re-introduce support for TypeScript 3.5 and below. (#137, #138)
mattiasbuelens
published 3.3.0 •

Changelog

Source

3.3.0 (2024-01-04)

  • 🚀 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)
mattiasbuelens
published 4.0.0-beta.3 •

mattiasbuelens
published 4.0.0-beta.2 •

mattiasbuelens
published 3.2.1 •

Changelog

Source

v3.2.1 (2022-04-07)

  • 🐛 Fix an error in very old browsers where Function.name is non-configurable. (#112)
mattiasbuelens
published 3.2.0 •

Changelog

Source

v3.2.0 (2021-11-06)

  • 👎 Deprecate WritableStreamDefaultController.abortReason (#102)
    • Use WritableStreamDefaultController.signal.reason instead.
  • 👓 Align with spec version 4b6b93c (#103)
mattiasbuelens
published 4.0.0-beta.1 •

234Next
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc