@@ -2603,6 +2603,9 @@ further errors except from `_destroy()` may be emitted as `'error'`.
2603
2603
<!-- YAML
2604
2604
added: v10.0.0
2605
2605
changes:
2606
+ - version: v19.5.0
2607
+ pr-url: https://github.com/nodejs/node/pull/46205
2608
+ description: Added support for `ReadableStream` and `WritableStream`.
2606
2609
- version: v15.11.0
2607
2610
pr-url: https://github.com/nodejs/node/pull/37354
2608
2611
description: The `signal` option was added.
@@ -2622,7 +2625,9 @@ changes:
2622
2625
finished before the call to `finished(stream, cb)`.
2623
2626
-->
2624
2627
2625
- * ` stream ` {Stream} A readable and/or writable stream.
2628
+ * ` stream ` {Stream|ReadableStream|WritableStream}
2629
+
2630
+ A readable and/or writable stream/webstream.
2626
2631
2627
2632
* ` options ` {Object}
2628
2633
* ` error ` {boolean} If set to ` false ` , then a call to ` emit('error', err) ` is
@@ -3031,10 +3036,16 @@ added: v17.0.0
3031
3036
3032
3037
<!-- YAML
3033
3038
added: v16.8.0
3039
+ changes:
3040
+ - version: v19.5.0
3041
+ pr-url: https://github.com/nodejs/node/pull/46190
3042
+ description: The `src` argument can now be a `ReadableStream` or
3043
+ `WritableStream`.
3034
3044
-->
3035
3045
3036
3046
* ` src ` {Stream|Blob|ArrayBuffer|string|Iterable|AsyncIterable|
3037
- AsyncGeneratorFunction|AsyncFunction|Promise|Object}
3047
+ AsyncGeneratorFunction|AsyncFunction|Promise|Object|
3048
+ ReadableStream|WritableStream}
3038
3049
3039
3050
A utility method for creating duplex streams.
3040
3051
@@ -3054,6 +3065,8 @@ A utility method for creating duplex streams.
3054
3065
` writable ` into ` Stream ` and then combines them into ` Duplex ` where the
3055
3066
` Duplex ` will write to the ` writable ` and read from the ` readable ` .
3056
3067
* ` Promise ` converts into readable ` Duplex ` . Value ` null ` is ignored.
3068
+ * ` ReadableStream ` converts into readable ` Duplex ` .
3069
+ * ` WritableStream ` converts into writable ` Duplex ` .
3057
3070
* Returns: {stream.Duplex}
3058
3071
3059
3072
If an ` Iterable ` object containing promises is passed as an argument,
0 commit comments