From 16bd3006f1d5a89eea7beb573efdb4fdcd5957ca 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 53e0994d10b720..adff01bb470bd3 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -1486,6 +1486,21 @@ unless `emitClose` is set in false. ### `stream.finished(stream[, options], callback)` * `stream` {Stream} A readable and/or writable stream. @@ -1563,6 +1578,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}