@@ -1503,6 +1503,21 @@ further errors except from `_destroy` may be emitted as `'error'`.
1503
1503
### ` stream.finished(stream[, options], callback) `
1504
1504
<!-- YAML
1505
1505
added: v10.0.0
1506
+ changes:
1507
+ - version: v14.0.0
1508
+ pr-url: https://github.com/nodejs/node/pull/32158
1509
+ description: The `finished(stream, cb)` will wait for the `'close'` event
1510
+ before invoking the callback. The implementation tries to
1511
+ detect legacy streams and only apply this behavior to streams
1512
+ which are expected to emit `'close'`.
1513
+ - version: v14.0.0
1514
+ pr-url: https://github.com/nodejs/node/pull/31545
1515
+ description: Emitting `'close'` before `'end'` on a `Readable` stream
1516
+ will cause an `ERR_STREAM_PREMATURE_CLOSE` error.
1517
+ - version: v14.0.0
1518
+ pr-url: https://github.com/nodejs/node/pull/31509
1519
+ description: Callback will be invoked on streams which have already
1520
+ finished before the call to `finished(stream, cb)`.
1506
1521
-->
1507
1522
1508
1523
* ` stream ` {Stream} A readable and/or writable stream.
@@ -1580,6 +1595,12 @@ changes:
1580
1595
- version: v13.10.0
1581
1596
pr-url: https://github.com/nodejs/node/pull/31223
1582
1597
description: Add support for async generators.
1598
+ - version: v14.0.0
1599
+ pr-url: https://github.com/nodejs/node/pull/32158
1600
+ description: The `pipeline(..., cb)` will wait for the `'close'` event
1601
+ before invoking the callback. The implementation tries to
1602
+ detect legacy streams and only apply this behavior to streams
1603
+ which are expected to emit `'close'`.
1583
1604
-->
1584
1605
1585
1606
* ` source ` {Stream|Iterable|AsyncIterable|Function}
0 commit comments