MattiasBuelens/web-streams-polyfill (web-streams-polyfill)
### [`v4.0.0`](https://togithub.com/MattiasBuelens/web-streams-polyfill/blob/HEAD/CHANGELOG.md#400-2024-02-28)
[Compare Source](https://togithub.com/MattiasBuelens/web-streams-polyfill/compare/v3.3.3...v4.0.0)
- 💥 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](https://togithub.com/MattiasBuelens/web-streams-polyfill/blob/master/MIGRATING.md) for more information.
([#82](https://togithub.com/MattiasBuelens/web-streams-polyfill/issues/82), [#139](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/139))
- 💥 Remove the ES2018 variant, in favor of the ES2015 variant.
- 💥 Switch to [subpath exports](https://nodejs.org/api/packages.html#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`](https://www.typescriptlang.org/tsconfig#moduleResolution) must be set to `"node16"`, `"nodenext"` or `"bundler"`.
- 🚀 Support [importing as ESM in Node](https://nodejs.org/api/esm.html).
- 💅 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](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/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`](https://togithub.com/MattiasBuelens/web-streams-polyfill/blob/HEAD/CHANGELOG.md#333-2024-02-16)
[Compare Source](https://togithub.com/MattiasBuelens/web-streams-polyfill/compare/v3.3.2...v3.3.3)
- 🐛 Fix `ReadableStream` to match TypeScript's `AsyncIterable` type. ([#141](https://togithub.com/MattiasBuelens/web-streams-polyfill/issues/141), [#142](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/142))
### [`v3.3.2`](https://togithub.com/MattiasBuelens/web-streams-polyfill/blob/HEAD/CHANGELOG.md#332-2024-01-04)
[Compare Source](https://togithub.com/MattiasBuelens/web-streams-polyfill/compare/v3.3.1...v3.3.2)
- 🐛 Fix bad publish to npm.
### [`v3.3.1`](https://togithub.com/MattiasBuelens/web-streams-polyfill/blob/HEAD/CHANGELOG.md#331-2024-01-04)
[Compare Source](https://togithub.com/MattiasBuelens/web-streams-polyfill/compare/v3.3.0...v3.3.1)
- 🐛 Revert `engines` bump in `package.json`. ([#137](https://togithub.com/MattiasBuelens/web-streams-polyfill/issues/137), [#138](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/138))
- 🐛 Re-introduce support for TypeScript 3.5 and below. ([#137](https://togithub.com/MattiasBuelens/web-streams-polyfill/issues/137), [#138](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/138))
### [`v3.3.0`](https://togithub.com/MattiasBuelens/web-streams-polyfill/blob/HEAD/CHANGELOG.md#330-2024-01-04)
[Compare Source](https://togithub.com/MattiasBuelens/web-streams-polyfill/compare/v3.2.1...v3.3.0)
- 🚀 Added global augmentations for `ReadableStream` to the polyfill's type definitions. ([#130](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/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](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/130))~~ (Reverted in version 3.3.1)
- 👓 Align with [spec version `4dc123a`](https://togithub.com/whatwg/streams/tree/4dc123a6e7f7ba89a8c6a7975b021156f39cab52/) ([#115](https://togithub.com/MattiasBuelens/web-streams-polyfill/issues/115), [#134](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/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](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/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](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer#transferring_arraybuffers)
if either `ArrayBuffer.prototype.transfer()` or `structuredClone()` is available. ([#136](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/136))
- 🐛 Prevent [warnings from Bluebird](http://bluebirdjs.com/docs/warning-explanations.html#warning-a-promise-was-created-in-a-handler-but-was-not-returned-from-it) about a promise being created within a handler but not being returned from a handler. ([#131](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/131))
- 🏠 Improve internal `DOMException` polyfill. ([#133](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/133))
### [`v3.2.1`](https://togithub.com/MattiasBuelens/web-streams-polyfill/blob/HEAD/CHANGELOG.md#v321-2022-04-07)
[Compare Source](https://togithub.com/MattiasBuelens/web-streams-polyfill/compare/v3.2.0...v3.2.1)
- 🐛 Fix an error in very old browsers where `Function.name` is non-configurable. ([#112](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/112))
### [`v3.2.0`](https://togithub.com/MattiasBuelens/web-streams-polyfill/blob/HEAD/CHANGELOG.md#v320-2021-11-06)
[Compare Source](https://togithub.com/MattiasBuelens/web-streams-polyfill/compare/v3.1.1...v3.2.0)
- 👎 Deprecate `WritableStreamDefaultController.abortReason` ([#102](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/102))
- Use `WritableStreamDefaultController.signal.reason` instead.
- 👓 Align with [spec version `4b6b93c`](https://togithub.com/whatwg/streams/tree/4b6b93c69e531e2fe45a6ed4cb1484a7ba4eb8bb/) ([#103](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/103))
### [`v3.1.1`](https://togithub.com/MattiasBuelens/web-streams-polyfill/blob/HEAD/CHANGELOG.md#v311-2021-09-06)
[Compare Source](https://togithub.com/MattiasBuelens/web-streams-polyfill/compare/v3.1.0...v3.1.1)
- 🐛 Fix compatibility with TypeScript's DOM types for `ReadableStream` and `TransformStream` ([#85](https://togithub.com/MattiasBuelens/web-streams-polyfill/issues/85), [#86](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/86))
### [`v3.1.0`](https://togithub.com/MattiasBuelens/web-streams-polyfill/blob/HEAD/CHANGELOG.md#v310-2021-07-21)
[Compare Source](https://togithub.com/MattiasBuelens/web-streams-polyfill/compare/v3.0.3...v3.1.0)
- 🚀 Calling `ReadableStream.tee()` on a readable byte stream now returns two readable byte streams. ([#81](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/81))
- 🚀 Add `WritableStreamDefaultController.signal` and `.abortReason`. ([#81](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/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](https://togithub.com/MattiasBuelens/web-streams-polyfill/issues/75), [#77](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/77))
- 👓 Align with [spec version `cada812`](https://togithub.com/whatwg/streams/tree/cada8129edcc4803b2878a7a3f5e1d8325dc0c23/) ([#79](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/79), [#81](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/81))
### [`v3.0.3`](https://togithub.com/MattiasBuelens/web-streams-polyfill/blob/HEAD/CHANGELOG.md#v303-2021-04-09)
[Compare Source](https://togithub.com/MattiasBuelens/web-streams-polyfill/compare/v3.0.2...v3.0.3)
- 💅 Change `Promise` to `Promise` in TypeScript type definitions ([#72](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/72))
- 🐛 Fix `ReadableStream.tee()` resolving its `cancel()` promise too early ([#73](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/73))
- 👓 Align with [spec version `6762cdb`](https://togithub.com/whatwg/streams/tree/6762cdb4c6421cfa0da1d834d5a14fdd7326aaa5/) ([#73](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/73))
### [`v3.0.2`](https://togithub.com/MattiasBuelens/web-streams-polyfill/blob/HEAD/CHANGELOG.md#v302-2021-02-10)
[Compare Source](https://togithub.com/MattiasBuelens/web-streams-polyfill/compare/v3.0.1...v3.0.2)
- 👓 Align with [spec version `200c971`](https://togithub.com/whatwg/streams/tree/200c971563b1a695fce3eebe6dab45c348ff0ac0/) ([#69](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/69))
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 contains the following updates:
^3.0.1
->^4.0.0
Release Notes
MattiasBuelens/web-streams-polyfill (web-streams-polyfill)
### [`v4.0.0`](https://togithub.com/MattiasBuelens/web-streams-polyfill/blob/HEAD/CHANGELOG.md#400-2024-02-28) [Compare Source](https://togithub.com/MattiasBuelens/web-streams-polyfill/compare/v3.3.3...v4.0.0) - 💥 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](https://togithub.com/MattiasBuelens/web-streams-polyfill/blob/master/MIGRATING.md) for more information. ([#82](https://togithub.com/MattiasBuelens/web-streams-polyfill/issues/82), [#139](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/139)) - 💥 Remove the ES2018 variant, in favor of the ES2015 variant. - 💥 Switch to [subpath exports](https://nodejs.org/api/packages.html#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`](https://www.typescriptlang.org/tsconfig#moduleResolution) must be set to `"node16"`, `"nodenext"` or `"bundler"`. - 🚀 Support [importing as ESM in Node](https://nodejs.org/api/esm.html). - 💅 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](https://togithub.com/MattiasBuelens/web-streams-polyfill/pull/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`](https://togithub.com/MattiasBuelens/web-streams-polyfill/blob/HEAD/CHANGELOG.md#333-2024-02-16) [Compare Source](https://togithub.com/MattiasBuelens/web-streams-polyfill/compare/v3.3.2...v3.3.3) - 🐛 Fix `ReadableStream` to match TypeScript's `AsyncIterableConfiguration
📅 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.
This PR was generated by Mend Renovate. View the repository job log.