web-streams-polyfill 2.0.4 → 2.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +6 -6
  3. package/dist/polyfill.es2018.js +2984 -2902
  4. package/dist/polyfill.es2018.js.map +1 -1
  5. package/dist/polyfill.es2018.min.js +1 -1
  6. package/dist/polyfill.es2018.min.js.map +1 -1
  7. package/dist/polyfill.es2018.mjs +2949 -2867
  8. package/dist/polyfill.es2018.mjs.map +1 -1
  9. package/dist/polyfill.es6.js +2995 -2914
  10. package/dist/polyfill.es6.js.map +1 -1
  11. package/dist/polyfill.es6.min.js +1 -1
  12. package/dist/polyfill.es6.min.js.map +1 -1
  13. package/dist/polyfill.es6.mjs +2960 -2879
  14. package/dist/polyfill.es6.mjs.map +1 -1
  15. package/dist/polyfill.js +3096 -3016
  16. package/dist/polyfill.js.map +1 -1
  17. package/dist/polyfill.min.js +1 -1
  18. package/dist/polyfill.min.js.map +1 -1
  19. package/dist/polyfill.mjs +3061 -2981
  20. package/dist/polyfill.mjs.map +1 -1
  21. package/dist/ponyfill.es2018.js +2947 -2865
  22. package/dist/ponyfill.es2018.js.map +1 -1
  23. package/dist/ponyfill.es2018.mjs +2914 -2832
  24. package/dist/ponyfill.es2018.mjs.map +1 -1
  25. package/dist/ponyfill.es6.js +2958 -2877
  26. package/dist/ponyfill.es6.js.map +1 -1
  27. package/dist/ponyfill.es6.mjs +2925 -2844
  28. package/dist/ponyfill.es6.mjs.map +1 -1
  29. package/dist/ponyfill.js +3054 -2974
  30. package/dist/ponyfill.js.map +1 -1
  31. package/dist/ponyfill.mjs +3021 -2941
  32. package/dist/ponyfill.mjs.map +1 -1
  33. package/dist/types/polyfill.d.ts +23 -5
  34. package/dist/types/ts3.6/polyfill.d.ts +227 -0
  35. package/dist/types/tsdoc-metadata.json +1 -1
  36. package/es2018/package.json +7 -7
  37. package/es6/package.json +7 -7
  38. package/package.json +26 -15
package/CHANGELOG.md CHANGED
@@ -9,6 +9,26 @@
9
9
  > - 🏠 Internal
10
10
  > - 💅 Polish
11
11
 
12
+ ## v2.1.1 (2020-04-11)
13
+
14
+ * 💅 Improve `ReadResult` in TypeScript type definitions. ([759506e](https://github.com/MattiasBuelens/web-streams-polyfill/commit/759506e00e55289ae6f92f30922b8855fcddd9ab), [#49](https://github.com/MattiasBuelens/web-streams-polyfill/pull/49))
15
+
16
+ ## v2.1.0 (2020-02-23)
17
+
18
+ * 👓 Align with [spec version `ed00d2f`](https://github.com/whatwg/streams/tree/ed00d2fe2d53ac5ad9ff8e727c7ef0a68f424074/) ([#43](https://github.com/MattiasBuelens/web-streams-polyfill/issues/43), [#44](https://github.com/MattiasBuelens/web-streams-polyfill/pull/44))
19
+ * 🏠 Down-level type definitions for older TypeScript versions. ([#41](https://github.com/MattiasBuelens/web-streams-polyfill/pull/41))
20
+
21
+ ## v2.0.6 (2019-11-08)
22
+
23
+ * 🐛 Fix type definitions to be compatible with TypeScript 3.3 and lower. ([#39](https://github.com/MattiasBuelens/web-streams-polyfill/issues/39), [#40](https://github.com/MattiasBuelens/web-streams-polyfill/pull/40))
24
+
25
+ ## v2.0.5 (2019-10-08)
26
+
27
+ * 👓 Align with [spec version `ae5e0cb`](https://github.com/whatwg/streams/tree/ae5e0cb41e9f72cdd97f3a6d47bc674c1f4049d1/) ([#33](https://github.com/MattiasBuelens/web-streams-polyfill/pull/33))
28
+ * 🐛 Fix support for non-browser environments, such as Node.
29
+ * Accept polyfilled `AbortSignal`s. ([#36](https://github.com/MattiasBuelens/web-streams-polyfill/pull/36))
30
+ * Polyfill `DOMException` if necessary. ([#37](https://github.com/MattiasBuelens/web-streams-polyfill/pull/37))
31
+
12
32
  ## v2.0.4 (2019-08-01)
13
33
 
14
34
  * 🐛 Fix pipe not aborting when both `preventAbort` and `preventCancel` are set ([#31](https://github.com/MattiasBuelens/web-streams-polyfill/pull/31))
package/README.md CHANGED
@@ -66,7 +66,7 @@ The `polyfill/es2018` and `ponyfill/es2018` variants work in any ES2018-compatib
66
66
 
67
67
  ### Compliance
68
68
 
69
- The polyfill implements [version `e4d3b1a` (29 Jul 2019)][spec-snapshot] of the streams specification.
69
+ The polyfill implements [version `ed00d2f` (17 Feb 2020)][spec-snapshot] of the streams specification.
70
70
 
71
71
  The polyfill is tested against the same [web platform tests][wpt] that are used by browsers to test their native implementations.
72
72
  The polyfill aims to pass all tests, although it allows some exceptions for practical reasons:
@@ -99,12 +99,12 @@ Thanks to these people for their work on [the original polyfill][creatorrr-polyf
99
99
  [promise-support]: https://kangax.github.io/compat-table/es6/#test-Promise
100
100
  [promise-polyfill]: https://www.npmjs.com/package/promise-polyfill
101
101
  [rs-asynciterator]: https://streams.spec.whatwg.org/#rs-asynciterator
102
- [spec-snapshot]: https://streams.spec.whatwg.org/commit-snapshots/e4d3b1a826e34d27a7cb5485a1cc4b078608c9ec/
103
- [wpt]: https://github.com/web-platform-tests/wpt/tree/0da3476dcd5fd3148041d090d2330cf8d412d7f9/streams
104
- [wpt-detached-buffer]: https://github.com/web-platform-tests/wpt/blob/0da3476dcd5fd3148041d090d2330cf8d412d7f9/streams/readable-byte-streams/detached-buffers.any.js
102
+ [spec-snapshot]: https://streams.spec.whatwg.org/commit-snapshots/ed00d2fe2d53ac5ad9ff8e727c7ef0a68f424074/
103
+ [wpt]: https://github.com/web-platform-tests/wpt/tree/0ba0c4c07c8d2c23efdcc84dfc9043a3fdccbf19/streams
104
+ [wpt-detached-buffer]: https://github.com/web-platform-tests/wpt/blob/0ba0c4c07c8d2c23efdcc84dfc9043a3fdccbf19/streams/readable-byte-streams/detached-buffers.any.js
105
105
  [proposal-arraybuffer-transfer]: https://github.com/domenic/proposal-arraybuffer-transfer
106
- [ref-impl-transferarraybuffer]: https://github.com/whatwg/streams/blob/e4d3b1a826e34d27a7cb5485a1cc4b078608c9ec/reference-implementation/lib/helpers.js#L119
106
+ [ref-impl-transferarraybuffer]: https://github.com/whatwg/streams/blob/ed00d2fe2d53ac5ad9ff8e727c7ef0a68f424074/reference-implementation/lib/helpers.js#L120
107
107
  [issue-3]: https://github.com/MattiasBuelens/web-streams-polyfill/issues/3
108
- [wpt-async-iterator-prototype]: https://github.com/web-platform-tests/wpt/blob/0da3476dcd5fd3148041d090d2330cf8d412d7f9/streams/readable-streams/async-iterator.any.js#L17
108
+ [wpt-async-iterator-prototype]: https://github.com/web-platform-tests/wpt/blob/0ba0c4c07c8d2c23efdcc84dfc9043a3fdccbf19/streams/readable-streams/async-iterator.any.js#L17
109
109
  [stub-async-iterator-prototype]: https://github.com/MattiasBuelens/web-streams-polyfill/blob/v2.0.0/src/target/es5/stub/async-iterator-prototype.ts
110
110
  [creatorrr-polyfill]: https://github.com/creatorrr/web-streams-polyfill