Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency web-streams-polyfill to v4 #225

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 29, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
web-streams-polyfill ^3.0.1 -> ^4.1.0 age adoption passing confidence

Release Notes

MattiasBuelens/web-streams-polyfill (web-streams-polyfill)

v4.1.0

Compare Source

  • 👓 Align with spec version fa4891a (#​156)
    • Commit pull-into descriptors after filling them from the internal queue.
      This prevents an issue where an incorrect BYOB request would temporarily be visible through a patched Object.prototype.then,
      which broke some internal invariants.
    • The next() and return() methods of ReadableStream's async iterator are now correctly "chained",
      such that the promises returned by either of these methods are always resolved in the same order
      as those methods were called.
  • 💅 Improve type of WritableStreamDefaultController.signal. (#​157)

v4.0.0

Compare Source

  • 💥 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

v3.3.3

Compare Source

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

v3.3.2

Compare Source

  • 🐛 Fix bad publish to npm.

v3.3.1

Compare Source

v3.3.0

Compare Source

  • 🚀 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)

v3.2.1

Compare Source

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

v3.2.0

Compare Source

  • 👎 Deprecate WritableStreamDefaultController.abortReason (#​102)
    • Use WritableStreamDefaultController.signal.reason instead.
  • 👓 Align with spec version 4b6b93c (#​103)

v3.1.1

Compare Source

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

v3.1.0

Compare Source

  • 🚀 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)

v3.0.3

Compare Source

  • 💅 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)

v3.0.2

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/web-streams-polyfill-4.x branch from 7629ac2 to 9694b74 Compare January 5, 2025 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants