web-streams-polyfill 3.0.3 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -2
- package/README.md +10 -6
- package/dist/polyfill.es2018.js +424 -99
- package/dist/polyfill.es2018.js.map +1 -1
- package/dist/polyfill.es2018.min.js +1 -1
- package/dist/polyfill.es2018.min.js.map +1 -1
- package/dist/polyfill.es2018.mjs +424 -99
- package/dist/polyfill.es2018.mjs.map +1 -1
- package/dist/polyfill.es6.js +424 -99
- package/dist/polyfill.es6.js.map +1 -1
- package/dist/polyfill.es6.min.js +1 -1
- package/dist/polyfill.es6.min.js.map +1 -1
- package/dist/polyfill.es6.mjs +424 -99
- package/dist/polyfill.es6.mjs.map +1 -1
- package/dist/polyfill.js +432 -99
- package/dist/polyfill.js.map +1 -1
- package/dist/polyfill.min.js +1 -1
- package/dist/polyfill.min.js.map +1 -1
- package/dist/polyfill.mjs +432 -99
- package/dist/polyfill.mjs.map +1 -1
- package/dist/ponyfill.es2018.js +424 -99
- package/dist/ponyfill.es2018.js.map +1 -1
- package/dist/ponyfill.es2018.mjs +424 -99
- package/dist/ponyfill.es2018.mjs.map +1 -1
- package/dist/ponyfill.es6.js +424 -99
- package/dist/ponyfill.es6.js.map +1 -1
- package/dist/ponyfill.es6.mjs +424 -99
- package/dist/ponyfill.es6.mjs.map +1 -1
- package/dist/ponyfill.js +432 -99
- package/dist/ponyfill.js.map +1 -1
- package/dist/ponyfill.mjs +432 -99
- package/dist/ponyfill.mjs.map +1 -1
- package/dist/types/polyfill.d.ts +15 -2
- package/dist/types/ts3.6/polyfill.d.ts +15 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,13 +9,21 @@
|
|
|
9
9
|
> - 🏠 Internal
|
|
10
10
|
> - 💅 Polish
|
|
11
11
|
|
|
12
|
-
## v3.0
|
|
12
|
+
## v3.1.0 (2021-07-21)
|
|
13
|
+
|
|
14
|
+
* 🚀 Calling `ReadableStream.tee()` on a readable byte stream now returns two readable byte streams. ([#81](https://github.com/MattiasBuelens/web-streams-polyfill/pull/81))
|
|
15
|
+
* 🚀 Add `WritableStreamDefaultController.signal` and `.abortReason`. ([#81](https://github.com/MattiasBuelens/web-streams-polyfill/pull/81))
|
|
16
|
+
* `.signal` requires a global `AbortController` constructor to be available. If necessary, use a polyfill.
|
|
17
|
+
* 🐛 Make sure streams created with a different version of the polyfill do not pass the brand checks. ([#75](https://github.com/MattiasBuelens/web-streams-polyfill/issues/75), [#77](https://github.com/MattiasBuelens/web-streams-polyfill/pull/77))
|
|
18
|
+
* 👓 Align with [spec version `cada812`](https://github.com/whatwg/streams/tree/cada8129edcc4803b2878a7a3f5e1d8325dc0c23/) ([#79](https://github.com/MattiasBuelens/web-streams-polyfill/pull/79), [#81](https://github.com/MattiasBuelens/web-streams-polyfill/pull/81))
|
|
19
|
+
|
|
20
|
+
## v3.0.3 (2021-04-09)
|
|
13
21
|
|
|
14
22
|
* 💅 Change `Promise<void>` to `Promise<undefined>` in TypeScript type definitions ([#72](https://github.com/MattiasBuelens/web-streams-polyfill/pull/72))
|
|
15
23
|
* 🐛 Fix `ReadableStream.tee()` resolving its `cancel()` promise too early ([#73](https://github.com/MattiasBuelens/web-streams-polyfill/pull/73))
|
|
16
24
|
* 👓 Align with [spec version `6762cdb`](https://github.com/whatwg/streams/tree/6762cdb4c6421cfa0da1d834d5a14fdd7326aaa5/) ([#73](https://github.com/MattiasBuelens/web-streams-polyfill/pull/73))
|
|
17
25
|
|
|
18
|
-
## v3.0.2 (
|
|
26
|
+
## v3.0.2 (2021-02-10)
|
|
19
27
|
|
|
20
28
|
* 👓 Align with [spec version `200c971`](https://github.com/whatwg/streams/tree/200c971563b1a695fce3eebe6dab45c348ff0ac0/) ([#69](https://github.com/MattiasBuelens/web-streams-polyfill/pull/69))
|
|
21
29
|
|
package/README.md
CHANGED
|
@@ -64,9 +64,11 @@ The `polyfill/es2018` and `ponyfill/es2018` variants work in any ES2018-compatib
|
|
|
64
64
|
|
|
65
65
|
[Async iterable support for `ReadableStream`][rs-asynciterator] is available in all variants, but requires an ES2018-compatible environment or a polyfill for `Symbol.asyncIterator`.
|
|
66
66
|
|
|
67
|
+
[`WritableStreamDefaultController.signal`][ws-controller-signal] is available in all variants, but requires a global `AbortController` constructor. If necessary, consider using a polyfill such as [abortcontroller-polyfill].
|
|
68
|
+
|
|
67
69
|
### Compliance
|
|
68
70
|
|
|
69
|
-
The polyfill implements [version `
|
|
71
|
+
The polyfill implements [version `cada812` (8 Jul 2021)][spec-snapshot] of the streams specification.
|
|
70
72
|
|
|
71
73
|
The polyfill is tested against the same [web platform tests][wpt] that are used by browsers to test their native implementations.
|
|
72
74
|
The polyfill aims to pass all tests, although it allows some exceptions for practical reasons:
|
|
@@ -99,12 +101,14 @@ Thanks to these people for their work on [the original polyfill][creatorrr-polyf
|
|
|
99
101
|
[promise-support]: https://kangax.github.io/compat-table/es6/#test-Promise
|
|
100
102
|
[promise-polyfill]: https://www.npmjs.com/package/promise-polyfill
|
|
101
103
|
[rs-asynciterator]: https://streams.spec.whatwg.org/#rs-asynciterator
|
|
102
|
-
[
|
|
103
|
-
[
|
|
104
|
-
[
|
|
104
|
+
[ws-controller-signal]: https://streams.spec.whatwg.org/#ws-default-controller-signal
|
|
105
|
+
[abortcontroller-polyfill]: https://www.npmjs.com/package/abortcontroller-polyfill
|
|
106
|
+
[spec-snapshot]: https://streams.spec.whatwg.org/commit-snapshots/cada8129edcc4803b2878a7a3f5e1d8325dc0c23/
|
|
107
|
+
[wpt]: https://github.com/web-platform-tests/wpt/tree/87a4c80598aee5178c385628174f1832f5a28ad6/streams
|
|
108
|
+
[wpt-bad-buffers]: https://github.com/web-platform-tests/wpt/blob/87a4c80598aee5178c385628174f1832f5a28ad6/streams/readable-byte-streams/bad-buffers-and-views.any.js
|
|
105
109
|
[proposal-arraybuffer-transfer]: https://github.com/domenic/proposal-arraybuffer-transfer
|
|
106
|
-
[ref-impl-transferarraybuffer]: https://github.com/whatwg/streams/blob/
|
|
110
|
+
[ref-impl-transferarraybuffer]: https://github.com/whatwg/streams/blob/cada8129edcc4803b2878a7a3f5e1d8325dc0c23/reference-implementation/lib/abstract-ops/ecmascript.js#L16
|
|
107
111
|
[issue-3]: https://github.com/MattiasBuelens/web-streams-polyfill/issues/3
|
|
108
|
-
[wpt-async-iterator-prototype]: https://github.com/web-platform-tests/wpt/blob/
|
|
112
|
+
[wpt-async-iterator-prototype]: https://github.com/web-platform-tests/wpt/blob/87a4c80598aee5178c385628174f1832f5a28ad6/streams/readable-streams/async-iterator.any.js#L24
|
|
109
113
|
[stub-async-iterator-prototype]: https://github.com/MattiasBuelens/web-streams-polyfill/blob/v2.0.0/src/target/es5/stub/async-iterator-prototype.ts
|
|
110
114
|
[creatorrr-polyfill]: https://github.com/creatorrr/web-streams-polyfill
|