web-streams-polyfill 3.0.1 → 3.1.1

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 CHANGED
@@ -9,6 +9,28 @@
9
9
  > - 🏠 Internal
10
10
  > - 💅 Polish
11
11
 
12
+ ## v3.1.1 (2021-09-06)
13
+
14
+ * 🐛 Fix compatibility with TypeScript's DOM types for `ReadableStream` and `TransformStream` ([#85](https://github.com/MattiasBuelens/web-streams-polyfill/issues/85), [#86](https://github.com/MattiasBuelens/web-streams-polyfill/pull/86))
15
+
16
+ ## v3.1.0 (2021-07-21)
17
+
18
+ * 🚀 Calling `ReadableStream.tee()` on a readable byte stream now returns two readable byte streams. ([#81](https://github.com/MattiasBuelens/web-streams-polyfill/pull/81))
19
+ * 🚀 Add `WritableStreamDefaultController.signal` and `.abortReason`. ([#81](https://github.com/MattiasBuelens/web-streams-polyfill/pull/81))
20
+ * `.signal` requires a global `AbortController` constructor to be available. If necessary, use a polyfill.
21
+ * 🐛 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))
22
+ * 👓 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))
23
+
24
+ ## v3.0.3 (2021-04-09)
25
+
26
+ * 💅 Change `Promise<void>` to `Promise<undefined>` in TypeScript type definitions ([#72](https://github.com/MattiasBuelens/web-streams-polyfill/pull/72))
27
+ * 🐛 Fix `ReadableStream.tee()` resolving its `cancel()` promise too early ([#73](https://github.com/MattiasBuelens/web-streams-polyfill/pull/73))
28
+ * 👓 Align with [spec version `6762cdb`](https://github.com/whatwg/streams/tree/6762cdb4c6421cfa0da1d834d5a14fdd7326aaa5/) ([#73](https://github.com/MattiasBuelens/web-streams-polyfill/pull/73))
29
+
30
+ ## v3.0.2 (2021-02-10)
31
+
32
+ * 👓 Align with [spec version `200c971`](https://github.com/whatwg/streams/tree/200c971563b1a695fce3eebe6dab45c348ff0ac0/) ([#69](https://github.com/MattiasBuelens/web-streams-polyfill/pull/69))
33
+
12
34
  ## v3.0.1 (2020-11-12)
13
35
 
14
36
  * 📝 Add documentation to type definitions ([#62](https://github.com/MattiasBuelens/web-streams-polyfill/pull/62))
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 `6cd5e81` (5 Aug 2020)][spec-snapshot] of the streams specification.
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
- [spec-snapshot]: https://streams.spec.whatwg.org/commit-snapshots/6cd5e81f6191fed9e7d99ee73d4941e3060311ce/
103
- [wpt]: https://github.com/web-platform-tests/wpt/tree/c5f9e701753a034f99dda16d4716c465bed73e18/streams
104
- [wpt-bad-buffers]: https://github.com/web-platform-tests/wpt/blob/c5f9e701753a034f99dda16d4716c465bed73e18/streams/readable-byte-streams/bad-buffers-and-views.any.js
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/6cd5e81f6191fed9e7d99ee73d4941e3060311ce/reference-implementation/lib/abstract-ops/ecmascript.js#L16
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/e5e5e7a10cbb968b31c51ad87ce8a3da62bb1b34/streams/readable-streams/async-iterator.any.js#L24
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