@@ -1486,6 +1486,21 @@ unless `emitClose` is set in false.
1486
1486
### ` stream.finished(stream[, options], callback) `
1487
1487
<!-- YAML
1488
1488
added: v10.0.0
1489
+ changes:
1490
+ - version: v14.0.0
1491
+ pr-url: https://github.com/nodejs/node/pull/32158
1492
+ description: The `finished(stream, cb)` will wait for the `'close'` event
1493
+ before invoking the callback. The implementation tries to
1494
+ detect legacy streams and only apply this behavior to streams
1495
+ which are expected to emit `'close'`.
1496
+ - version: v14.0.0
1497
+ pr-url: https://github.com/nodejs/node/pull/31545
1498
+ description: Emitting `'close'` before `'end'` on a `Readable` stream
1499
+ will cause an `ERR_STREAM_PREMATURE_CLOSE` error.
1500
+ - version: v14.0.0
1501
+ pr-url: https://github.com/nodejs/node/pull/31509
1502
+ description: Callback will be invoked on streams which have already
1503
+ finished before the call to `finished(stream, cb)`.
1489
1504
-->
1490
1505
1491
1506
* ` stream ` {Stream} A readable and/or writable stream.
@@ -1563,6 +1578,12 @@ changes:
1563
1578
- version: v13.10.0
1564
1579
pr-url: https://github.com/nodejs/node/pull/31223
1565
1580
description: Add support for async generators.
1581
+ - version: v14.0.0
1582
+ pr-url: https://github.com/nodejs/node/pull/32158
1583
+ description: The `pipeline(..., cb)` will wait for the `'close'` event
1584
+ before invoking the callback. The implementation tries to
1585
+ detect legacy streams and only apply this behavior to streams
1586
+ which are expected to emit `'close'`.
1566
1587
-->
1567
1588
1568
1589
* ` source ` {Stream|Iterable|AsyncIterable|Function}
0 commit comments