web-streams-polyfill 3.2.0 → 4.0.0-beta.2
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/LICENSE +1 -1
- package/README.md +56 -35
- package/dist/polyfill.es5.js +8 -0
- package/dist/polyfill.js +6 -4368
- package/dist/ponyfill.es5.js +8 -0
- package/dist/ponyfill.es5.mjs +8 -0
- package/dist/ponyfill.js +6 -4340
- package/dist/ponyfill.mjs +6 -4318
- package/es5/package.json +6 -0
- package/package.json +62 -37
- package/polyfill/es5/package.json +5 -0
- package/polyfill/package.json +5 -0
- package/types/polyfill.d.ts +62 -0
- package/{dist/types/ts3.6/polyfill.d.ts → types/ponyfill.d.ts} +10 -6
- package/{dist/types → types}/tsdoc-metadata.json +1 -1
- package/CHANGELOG.md +0 -134
- package/dist/polyfill.es2018.js +0 -4229
- package/dist/polyfill.es2018.js.map +0 -1
- package/dist/polyfill.es2018.min.js +0 -2
- package/dist/polyfill.es2018.min.js.map +0 -1
- package/dist/polyfill.es2018.mjs +0 -4207
- package/dist/polyfill.es2018.mjs.map +0 -1
- package/dist/polyfill.es6.js +0 -4240
- package/dist/polyfill.es6.js.map +0 -1
- package/dist/polyfill.es6.min.js +0 -2
- package/dist/polyfill.es6.min.js.map +0 -1
- package/dist/polyfill.es6.mjs +0 -4218
- package/dist/polyfill.es6.mjs.map +0 -1
- package/dist/polyfill.js.map +0 -1
- package/dist/polyfill.min.js +0 -2
- package/dist/polyfill.min.js.map +0 -1
- package/dist/polyfill.mjs +0 -4348
- package/dist/polyfill.mjs.map +0 -1
- package/dist/ponyfill.es2018.js +0 -4201
- package/dist/ponyfill.es2018.js.map +0 -1
- package/dist/ponyfill.es2018.mjs +0 -4179
- package/dist/ponyfill.es2018.mjs.map +0 -1
- package/dist/ponyfill.es6.js +0 -4212
- package/dist/ponyfill.es6.js.map +0 -1
- package/dist/ponyfill.es6.mjs +0 -4190
- package/dist/ponyfill.es6.mjs.map +0 -1
- package/dist/ponyfill.js.map +0 -1
- package/dist/ponyfill.mjs.map +0 -1
- package/dist/types/polyfill.d.ts +0 -771
- package/es2018/package.json +0 -7
- package/es6/package.json +0 -7
- package/ponyfill/es2018/package.json +0 -6
- package/ponyfill/es6/package.json +0 -6
- package/ponyfill/package.json +0 -6
package/es5/package.json
ADDED
package/package.json
CHANGED
|
@@ -1,39 +1,60 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "web-streams-polyfill",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-beta.2",
|
|
4
4
|
"description": "Web Streams, based on the WHATWG spec reference implementation",
|
|
5
|
-
"main": "dist/
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"dist/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
"main": "dist/ponyfill.js",
|
|
6
|
+
"module": "dist/ponyfill.mjs",
|
|
7
|
+
"types": "types/ponyfill.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./types/ponyfill.d.ts",
|
|
11
|
+
"import": "./dist/ponyfill.mjs",
|
|
12
|
+
"require": "./dist/ponyfill.js"
|
|
13
|
+
},
|
|
14
|
+
"./es5": {
|
|
15
|
+
"types": "./types/ponyfill.d.ts",
|
|
16
|
+
"import": "./dist/ponyfill.es5.mjs",
|
|
17
|
+
"require": "./dist/ponyfill.es5.js"
|
|
18
|
+
},
|
|
19
|
+
"./polyfill": {
|
|
20
|
+
"types": "./types/polyfill.d.ts",
|
|
21
|
+
"default": "./dist/polyfill.js"
|
|
22
|
+
},
|
|
23
|
+
"./polyfill/es5": {
|
|
24
|
+
"types": "./types/polyfill.d.ts",
|
|
25
|
+
"default": "./dist/polyfill.es5.js"
|
|
26
|
+
},
|
|
27
|
+
"./dist/*": "./dist/*",
|
|
28
|
+
"./types/*": "./types/*",
|
|
29
|
+
"./package": "./package.json",
|
|
30
|
+
"./package.json": "./package.json"
|
|
15
31
|
},
|
|
16
32
|
"scripts": {
|
|
17
|
-
"test": "npm run test:types && npm run test:unit && npm run test:wpt",
|
|
18
|
-
"test:wpt": "node
|
|
19
|
-
"
|
|
33
|
+
"test": "npm run test:types && npm run test:unit && npm run test:wpt && npm run test:bundler",
|
|
34
|
+
"test:wpt": "npm run test:wpt:node && npm run test:wpt:chromium && npm run test:wpt:firefox",
|
|
35
|
+
"test:wpt:node": "node --expose_gc ./test/wpt/node/run.js",
|
|
36
|
+
"test:wpt:chromium": "node ./test/wpt/browser/run.js --browser chromium",
|
|
37
|
+
"test:wpt:firefox": "node ./test/wpt/browser/run.js --browser firefox",
|
|
38
|
+
"test:bundler": "npm run test:bundler:rollup && npm run test:bundler:webpack",
|
|
39
|
+
"test:bundler:rollup": "cd test/rollup && npm ci && npm test",
|
|
40
|
+
"test:bundler:webpack": "cd test/webpack && npm ci && npm test",
|
|
20
41
|
"test:types": "tsc -p ./test/types/tsconfig.json",
|
|
21
|
-
"test:unit": "jasmine --config=test/unit/jasmine.json",
|
|
42
|
+
"test:unit": "node --experimental-import-meta-resolve ./node_modules/jasmine/bin/jasmine.js --config=test/unit/jasmine.json",
|
|
22
43
|
"lint": "eslint \"src/**/*.ts\"",
|
|
23
44
|
"build": "npm run build:bundle && npm run build:types",
|
|
24
45
|
"build:bundle": "rollup -c",
|
|
25
|
-
"build:types": "tsc --project . --emitDeclarationOnly --declarationDir ./lib && api-extractor run
|
|
26
|
-
"accept:types": "tsc --project . --emitDeclarationOnly --declarationDir ./lib && api-extractor run --local
|
|
46
|
+
"build:types": "tsc --project . --emitDeclarationOnly --declarationDir ./lib && api-extractor run",
|
|
47
|
+
"accept:types": "tsc --project . --emitDeclarationOnly --declarationDir ./lib && api-extractor run --local",
|
|
27
48
|
"prepare": "npm run build"
|
|
28
49
|
},
|
|
29
50
|
"files": [
|
|
30
51
|
"dist",
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
52
|
+
"es5",
|
|
53
|
+
"polyfill",
|
|
54
|
+
"types"
|
|
34
55
|
],
|
|
35
56
|
"engines": {
|
|
36
|
-
"node": ">=
|
|
57
|
+
"node": ">= 14"
|
|
37
58
|
},
|
|
38
59
|
"repository": {
|
|
39
60
|
"type": "git",
|
|
@@ -54,23 +75,27 @@
|
|
|
54
75
|
},
|
|
55
76
|
"homepage": "https://github.com/MattiasBuelens/web-streams-polyfill#readme",
|
|
56
77
|
"devDependencies": {
|
|
57
|
-
"@microsoft/api-extractor": "^7.
|
|
58
|
-
"@rollup/plugin-inject": "^4.0.
|
|
59
|
-
"@rollup/plugin-replace": "^
|
|
60
|
-
"@rollup/plugin-strip": "^2.
|
|
61
|
-
"@rollup/plugin-typescript": "^8.
|
|
62
|
-
"@types/
|
|
63
|
-
"@
|
|
64
|
-
"@typescript-eslint/
|
|
78
|
+
"@microsoft/api-extractor": "^7.21.2",
|
|
79
|
+
"@rollup/plugin-inject": "^4.0.4",
|
|
80
|
+
"@rollup/plugin-replace": "^4.0.0",
|
|
81
|
+
"@rollup/plugin-strip": "^2.1.0",
|
|
82
|
+
"@rollup/plugin-typescript": "^8.3.1",
|
|
83
|
+
"@types/jasmine": "^4.0.2",
|
|
84
|
+
"@types/node": "^14.18.12",
|
|
85
|
+
"@typescript-eslint/eslint-plugin": "^5.19.0",
|
|
86
|
+
"@typescript-eslint/parser": "^5.19.0",
|
|
65
87
|
"@ungap/promise-all-settled": "^1.1.2",
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
88
|
+
"abort-controller": "^3.0.0",
|
|
89
|
+
"eslint": "^8.13.0",
|
|
90
|
+
"jasmine": "^4.0.2",
|
|
91
|
+
"micromatch": "^4.0.5",
|
|
92
|
+
"minimist": "^1.2.6",
|
|
93
|
+
"playwright": "^1.20.2",
|
|
94
|
+
"recursive-readdir": "^2.2.2",
|
|
95
|
+
"rollup": "^2.70.1",
|
|
70
96
|
"rollup-plugin-terser": "^7.0.2",
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"wpt-runner": "^3.2.1"
|
|
97
|
+
"tslib": "^2.3.1",
|
|
98
|
+
"typescript": "^4.7.0-beta",
|
|
99
|
+
"wpt-runner": "^4.1.0"
|
|
75
100
|
}
|
|
76
101
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/// <reference lib="dom" />
|
|
2
|
+
/// <reference lib="es2018.asynciterable" />
|
|
3
|
+
|
|
4
|
+
import type {
|
|
5
|
+
ReadableStreamAsyncIterator,
|
|
6
|
+
ReadableStreamBYOBReader,
|
|
7
|
+
ReadableStreamBYOBReadResult,
|
|
8
|
+
ReadableStreamIteratorOptions
|
|
9
|
+
} from './ponyfill';
|
|
10
|
+
|
|
11
|
+
export type {
|
|
12
|
+
ReadableStreamAsyncIterator,
|
|
13
|
+
ReadableStreamBYOBReader,
|
|
14
|
+
ReadableStreamBYOBReadResult,
|
|
15
|
+
ReadableStreamIteratorOptions
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
declare global {
|
|
19
|
+
interface ReadableStream<R = any> {
|
|
20
|
+
/**
|
|
21
|
+
* Creates a {@link ReadableStreamBYOBReader} and locks the stream to the new reader.
|
|
22
|
+
*
|
|
23
|
+
* This call behaves the same way as the no-argument variant, except that it only works on readable byte streams,
|
|
24
|
+
* i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading.
|
|
25
|
+
* The returned BYOB reader provides the ability to directly read individual chunks from the stream via its
|
|
26
|
+
* {@link ReadableStreamBYOBReader.read | read()} method, into developer-supplied buffers, allowing more precise
|
|
27
|
+
* control over allocation.
|
|
28
|
+
*/
|
|
29
|
+
getReader({ mode }: {
|
|
30
|
+
mode: 'byob';
|
|
31
|
+
}): ReadableStreamBYOBReader;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Creates a {@link ReadableStreamDefaultReader} and locks the stream to the new reader.
|
|
35
|
+
* While the stream is locked, no other reader can be acquired until this one is released.
|
|
36
|
+
*
|
|
37
|
+
* This functionality is especially useful for creating abstractions that desire the ability to consume a stream
|
|
38
|
+
* in its entirety. By getting a reader for the stream, you can ensure nobody else can interleave reads with yours
|
|
39
|
+
* or cancel the stream, which would interfere with your abstraction.
|
|
40
|
+
*/
|
|
41
|
+
getReader(): ReadableStreamDefaultReader<R>;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Asynchronously iterates over the chunks in the stream's internal queue.
|
|
45
|
+
*
|
|
46
|
+
* Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader.
|
|
47
|
+
* The lock will be released if the async iterator's {@link ReadableStreamAsyncIterator.return | return()} method
|
|
48
|
+
* is called, e.g. by breaking out of the loop.
|
|
49
|
+
*
|
|
50
|
+
* By default, calling the async iterator's {@link ReadableStreamAsyncIterator.return | return()} method will also
|
|
51
|
+
* cancel the stream. To prevent this, use the stream's {@link ReadableStream.values | values()} method, passing
|
|
52
|
+
* `true` for the `preventCancel` option.
|
|
53
|
+
*/
|
|
54
|
+
values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* {@inheritDoc ReadableStream.values}
|
|
58
|
+
*/
|
|
59
|
+
[Symbol.asyncIterator]: (options?: ReadableStreamIteratorOptions) => ReadableStreamAsyncIterator<R>;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
@@ -16,6 +16,10 @@ export declare interface AbortSignal {
|
|
|
16
16
|
* Whether the request is aborted.
|
|
17
17
|
*/
|
|
18
18
|
readonly aborted: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The abort reason.
|
|
21
|
+
*/
|
|
22
|
+
readonly reason?: any;
|
|
19
23
|
/**
|
|
20
24
|
* Add an event listener to be triggered when this signal becomes aborted.
|
|
21
25
|
*/
|
|
@@ -87,11 +91,11 @@ export declare interface QueuingStrategyInit {
|
|
|
87
91
|
highWaterMark: number;
|
|
88
92
|
}
|
|
89
93
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
94
|
+
/**
|
|
95
|
+
* {@inheritDoc QueuingStrategy.size}
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
export declare type QueuingStrategySizeCallback<T = any> = (chunk: T) => number;
|
|
95
99
|
|
|
96
100
|
/**
|
|
97
101
|
* Allows control of a {@link ReadableStream | readable byte stream}'s state and internal queue.
|
|
@@ -233,7 +237,7 @@ export declare interface ReadableStreamAsyncIterator<R> extends AsyncIterator<R>
|
|
|
233
237
|
* @public
|
|
234
238
|
*/
|
|
235
239
|
export declare class ReadableStreamBYOBReader {
|
|
236
|
-
constructor(stream:
|
|
240
|
+
constructor(stream: ReadableStream<Uint8Array>);
|
|
237
241
|
/**
|
|
238
242
|
* Returns a promise that will be fulfilled when the stream becomes closed, or rejected if the stream ever errors or
|
|
239
243
|
* the reader's lock is released before the stream finishes closing.
|
package/CHANGELOG.md
DELETED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
> **Tags:**
|
|
4
|
-
> - 💥 Breaking Change
|
|
5
|
-
> - 👓 Spec Compliance
|
|
6
|
-
> - 🚀 New Feature
|
|
7
|
-
> - 🐛 Bug Fix
|
|
8
|
-
> - 👎 Deprecation
|
|
9
|
-
> - 📝 Documentation
|
|
10
|
-
> - 🏠 Internal
|
|
11
|
-
> - 💅 Polish
|
|
12
|
-
|
|
13
|
-
## v3.2.0 (2021-11-06)
|
|
14
|
-
|
|
15
|
-
* 👎 Deprecate `WritableStreamDefaultController.abortReason` ([#102](https://github.com/MattiasBuelens/web-streams-polyfill/pull/102))
|
|
16
|
-
* Use `WritableStreamDefaultController.signal.reason` instead.
|
|
17
|
-
* 👓 Align with [spec version `4b6b93c`](https://github.com/whatwg/streams/tree/4b6b93c69e531e2fe45a6ed4cb1484a7ba4eb8bb/) ([#103](https://github.com/MattiasBuelens/web-streams-polyfill/pull/103))
|
|
18
|
-
|
|
19
|
-
## v3.1.1 (2021-09-06)
|
|
20
|
-
|
|
21
|
-
* 🐛 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))
|
|
22
|
-
|
|
23
|
-
## v3.1.0 (2021-07-21)
|
|
24
|
-
|
|
25
|
-
* 🚀 Calling `ReadableStream.tee()` on a readable byte stream now returns two readable byte streams. ([#81](https://github.com/MattiasBuelens/web-streams-polyfill/pull/81))
|
|
26
|
-
* 🚀 Add `WritableStreamDefaultController.signal` and `.abortReason`. ([#81](https://github.com/MattiasBuelens/web-streams-polyfill/pull/81))
|
|
27
|
-
* `.signal` requires a global `AbortController` constructor to be available. If necessary, use a polyfill.
|
|
28
|
-
* 🐛 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))
|
|
29
|
-
* 👓 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))
|
|
30
|
-
|
|
31
|
-
## v3.0.3 (2021-04-09)
|
|
32
|
-
|
|
33
|
-
* 💅 Change `Promise<void>` to `Promise<undefined>` in TypeScript type definitions ([#72](https://github.com/MattiasBuelens/web-streams-polyfill/pull/72))
|
|
34
|
-
* 🐛 Fix `ReadableStream.tee()` resolving its `cancel()` promise too early ([#73](https://github.com/MattiasBuelens/web-streams-polyfill/pull/73))
|
|
35
|
-
* 👓 Align with [spec version `6762cdb`](https://github.com/whatwg/streams/tree/6762cdb4c6421cfa0da1d834d5a14fdd7326aaa5/) ([#73](https://github.com/MattiasBuelens/web-streams-polyfill/pull/73))
|
|
36
|
-
|
|
37
|
-
## v3.0.2 (2021-02-10)
|
|
38
|
-
|
|
39
|
-
* 👓 Align with [spec version `200c971`](https://github.com/whatwg/streams/tree/200c971563b1a695fce3eebe6dab45c348ff0ac0/) ([#69](https://github.com/MattiasBuelens/web-streams-polyfill/pull/69))
|
|
40
|
-
|
|
41
|
-
## v3.0.1 (2020-11-12)
|
|
42
|
-
|
|
43
|
-
* 📝 Add documentation to type definitions ([#62](https://github.com/MattiasBuelens/web-streams-polyfill/pull/62))
|
|
44
|
-
* 👓 Align with [spec version `6cd5e81`](https://github.com/whatwg/streams/tree/6cd5e81f6191fed9e7d99ee73d4941e3060311ce/) ([#63](https://github.com/MattiasBuelens/web-streams-polyfill/pull/63))
|
|
45
|
-
* 🐛 Fix an issue where the polyfill could throw an error when resolving/rejecting `reader.closed` when it was already resolved/rejected ([#66](https://github.com/MattiasBuelens/web-streams-polyfill/issues/66), [#67](https://github.com/MattiasBuelens/web-streams-polyfill/pull/67))
|
|
46
|
-
|
|
47
|
-
## v3.0.0 (2020-07-20)
|
|
48
|
-
|
|
49
|
-
* 💥 Align with [spec version `62fe4c8`](https://github.com/whatwg/streams/tree/62fe4c8c0df34cec4ff28db9bfa69aec6c65e38d/) ([#52](https://github.com/MattiasBuelens/web-streams-polyfill/pull/52), [#57](https://github.com/MattiasBuelens/web-streams-polyfill/pull/57), [#59](https://github.com/MattiasBuelens/web-streams-polyfill/pull/59))
|
|
50
|
-
This includes the following **breaking changes**:
|
|
51
|
-
* All classes are now exposed globally. Concretely, this adds the following classes:
|
|
52
|
-
* `ReadableStreamDefaultController`
|
|
53
|
-
* `ReadableByteStreamController`
|
|
54
|
-
* `ReadableStreamBYOBRequest`
|
|
55
|
-
* `ReadableStreamDefaultReader`
|
|
56
|
-
* `ReadableStreamBYOBReader`
|
|
57
|
-
* `WritableStreamDefaultController`
|
|
58
|
-
* `WritableStreamDefaultWriter`
|
|
59
|
-
* `TransformStreamDefaultController`
|
|
60
|
-
* `ReadableStream.getIterator()` is renamed to `ReadableStream.values()`
|
|
61
|
-
* `ReadableByteStreamController.byobRequest` can be `null` (instead of `undefined`) if there is no current BYOB request.
|
|
62
|
-
* `ReadableStreamBYOBRequest.view` can be `null` (instead of `undefined`) if the BYOB request has already been responded to.
|
|
63
|
-
* Constructors and methods have stricter type checking for object arguments. For example, `new ReadableStream(null)` would previously behave like `new ReadableStream({})`, but now it throws a `TypeError` instead.
|
|
64
|
-
* Some constructors and methods may throw slightly different errors when given invalid arguments.
|
|
65
|
-
* Various byte-stream-related APIs now prohibit zero-length views or buffers.
|
|
66
|
-
* The async iterator of a `ReadableStream` now behaves more like an async generator, e.g. returning promises fulfilled with `{ value: undefined, done: true }` after `return()`ing the iterator, instead of returning a rejected promise.
|
|
67
|
-
* 💥 Updated TypeScript types to align with new specification ([#60](https://github.com/MattiasBuelens/web-streams-polyfill/pull/60))
|
|
68
|
-
While these are _technically_ breaking changes, you should only be affected if you manually reference these types from your code.
|
|
69
|
-
* `PipeOptions` is renamed to `StreamPipeOptions`
|
|
70
|
-
* `ReadResult` is replaced by `ReadableStreamDefaultReadResult` and `ReadableStreamBYOBReadResult`
|
|
71
|
-
* `ReadableStreamDefaultControllerCallback` is replaced by `UnderlyingSourceStartCallback` and `UnderlyingSourcePullCallback`
|
|
72
|
-
* `ReadableByteStreamControllerCallback` is replaced by `UnderlyingByteSourceStartCallback` and `UnderlyingByteSourcePullCallback`
|
|
73
|
-
* `ReadableStreamErrorCallback` is renamed to `UnderlyingSourceCancelCallback`
|
|
74
|
-
* `WritableStreamDefaultControllerStartCallback` is renamed to `UnderlyingSinkStartCallback`
|
|
75
|
-
* `WritableStreamDefaultControllerWriteCallback` is renamed to `UnderlyingSinkWriteCallback`
|
|
76
|
-
* `WritableStreamDefaultControllerCloseCallback` is renamed to `UnderlyingSinkCloseCallback`
|
|
77
|
-
* `WritableStreamErrorCallback` is renamed to `UnderlyingSinkAbortCallback`
|
|
78
|
-
* `TransformStreamDefaultControllerCallback` is replaced by `TransformerStartCallback` and `TransformerFlushCallback`
|
|
79
|
-
* `TransformStreamDefaultControllerTransformCallback` is renamed to `TransformerTransformCallback`
|
|
80
|
-
|
|
81
|
-
## v2.1.1 (2020-04-11)
|
|
82
|
-
|
|
83
|
-
* 💅 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))
|
|
84
|
-
|
|
85
|
-
## v2.1.0 (2020-02-23)
|
|
86
|
-
|
|
87
|
-
* 👓 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))
|
|
88
|
-
* 🏠 Down-level type definitions for older TypeScript versions. ([#41](https://github.com/MattiasBuelens/web-streams-polyfill/pull/41))
|
|
89
|
-
|
|
90
|
-
## v2.0.6 (2019-11-08)
|
|
91
|
-
|
|
92
|
-
* 🐛 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))
|
|
93
|
-
|
|
94
|
-
## v2.0.5 (2019-10-08)
|
|
95
|
-
|
|
96
|
-
* 👓 Align with [spec version `ae5e0cb`](https://github.com/whatwg/streams/tree/ae5e0cb41e9f72cdd97f3a6d47bc674c1f4049d1/) ([#33](https://github.com/MattiasBuelens/web-streams-polyfill/pull/33))
|
|
97
|
-
* 🐛 Fix support for non-browser environments, such as Node.
|
|
98
|
-
* Accept polyfilled `AbortSignal`s. ([#36](https://github.com/MattiasBuelens/web-streams-polyfill/pull/36))
|
|
99
|
-
* Polyfill `DOMException` if necessary. ([#37](https://github.com/MattiasBuelens/web-streams-polyfill/pull/37))
|
|
100
|
-
|
|
101
|
-
## v2.0.4 (2019-08-01)
|
|
102
|
-
|
|
103
|
-
* 🐛 Fix pipe not aborting when both `preventAbort` and `preventCancel` are set ([#31](https://github.com/MattiasBuelens/web-streams-polyfill/pull/31))
|
|
104
|
-
* 👓 Align with [spec version `e4d3b1a`](https://github.com/whatwg/streams/tree/e4d3b1a826e34d27a7cb5485a1cc4b078608c9ec/) ([#31](https://github.com/MattiasBuelens/web-streams-polyfill/pull/31))
|
|
105
|
-
|
|
106
|
-
## v2.0.3 (2019-04-04)
|
|
107
|
-
|
|
108
|
-
* 👓 Align with [spec version `6f94580`](https://github.com/whatwg/streams/tree/6f94580f6731d1e017c516af097d47c45aad1f56/) ([#21](https://github.com/MattiasBuelens/web-streams-polyfill/pull/21))
|
|
109
|
-
* 🏠 Run web platform tests on ES5 variant ([#19](https://github.com/MattiasBuelens/web-streams-polyfill/pull/19))
|
|
110
|
-
|
|
111
|
-
## v2.0.2 (2019-03-17)
|
|
112
|
-
|
|
113
|
-
* 💅 Improve performance of `reader.read()` and `writer.write()` ([#17](https://github.com/MattiasBuelens/web-streams-polyfill/pull/17), [#18](https://github.com/MattiasBuelens/web-streams-polyfill/pull/18))
|
|
114
|
-
|
|
115
|
-
## v2.0.1 (2019-03-16)
|
|
116
|
-
|
|
117
|
-
* 🐛 Fix performance issue with large queues ([#15](https://github.com/MattiasBuelens/web-streams-polyfill/pull/15), [#16](https://github.com/MattiasBuelens/web-streams-polyfill/pull/16))
|
|
118
|
-
|
|
119
|
-
## v2.0.0 (2019-03-10)
|
|
120
|
-
|
|
121
|
-
* 💥 Ownership change: [@mattiasbuelens/web-streams-polyfill](https://www.npmjs.com/package/@mattiasbuelens/web-streams-polyfill/v/0.3.2) has been republished as [web-streams-polyfill](https://www.npmjs.com/package/web-streams-polyfill).
|
|
122
|
-
For the full list of changes between web-streams-polyfill v1.3.2 and this version, [visit the fork's changelog](https://github.com/MattiasBuelens/web-streams-polyfill/blob/v0.3.2/CHANGELOG.md).
|
|
123
|
-
|
|
124
|
-
* 💥 CommonJS entry points have been moved to `dist/`:
|
|
125
|
-
* `index.js` ➡ `dist/polyfill.js`
|
|
126
|
-
* `index.es6.js` ➡ `dist/polyfill.es6.js`
|
|
127
|
-
|
|
128
|
-
However, we recommend migrating to a [variant sub-package](https://github.com/MattiasBuelens/web-streams-polyfill#usage) instead:
|
|
129
|
-
* `require('web-streams-polyfill/index.js')` ➡ `require('web-streams-polyfill')`
|
|
130
|
-
* `require('web-streams-polyfill/index.es6.js')` ➡ `require('web-streams-polyfill/es6')`
|
|
131
|
-
|
|
132
|
-
* 👓 Align with [spec version `2c8f35e`](https://github.com/whatwg/streams/tree/2c8f35ed23451ffc9b32ec37b56def4a5349abb1/)
|
|
133
|
-
|
|
134
|
-
* 🏠 Code moved from [creatorrr/web-streams-polyfill](https://github.com/creatorrr/web-streams-polyfill) to [MattiasBuelens/web-streams-polyfill](https://github.com/MattiasBuelens/web-streams-polyfill)
|