From e5512acfa737b86dac0906414d2b34ab1ca6c6d0 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Sat, 25 Apr 2020 21:16:51 +0200 Subject: [PATCH] doc: document major finished changes in v14 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added description of semver-major changes to finished in v14. PR-URL: https://github.com/nodejs/node/pull/33065 Reviewed-By: James M Snell Reviewed-By: Matteo Collina Reviewed-By: Luigi Pinca Reviewed-By: Juan José Arboleda Reviewed-By: Trivikram Kamat Reviewed-By: Anna Henningsen --- doc/api/stream.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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}