diff --git a/doc/api/stream.md b/doc/api/stream.md index 4f155512ac4750..0f89b77bc35782 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -1503,6 +1503,21 @@ further errors except from `_destroy` may be emitted as `'error'`. ### `stream.finished(stream[, options], callback)` * `stream` {Stream} A readable and/or writable stream. @@ -1580,6 +1595,12 @@ changes: - version: v13.10.0 pr-url: https://github.com/nodejs/node/pull/31223 description: Add support for async generators. + - version: v14.0.0 + pr-url: https://github.com/nodejs/node/pull/32158 + description: The `pipeline(..., cb)` will wait for the `'close'` event + before invoking the callback. The implementation tries to + detect legacy streams and only apply this behavior to streams + which are expected to emit `'close'`. --> * `source` {Stream|Iterable|AsyncIterable|Function}