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