From fc53547ed4975ab83d98b97997594e2720507ba8 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 21 Feb 2017 23:38:48 +0100 Subject: [PATCH] doc: add changelogs for stream PR-URL: https://github.com/nodejs/node/pull/11489 Reviewed-By: Ben Noordhuis Reviewed-By: Sam Roberts Reviewed-By: Roman Reiss Reviewed-By: James M Snell Reviewed-By: Italo A. Casas --- doc/api/stream.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/doc/api/stream.md b/doc/api/stream.md index ba1c56398d544c..0e12e76c810c17 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -380,6 +380,10 @@ file.end('world!'); ##### writable.setDefaultEncoding(encoding) * `encoding` {String} The new default encoding @@ -429,6 +433,11 @@ See also: [`writable.cork()`][]. ##### writable.write(chunk[, encoding][, callback]) * `chunk` {String|Buffer} The data to write @@ -1069,6 +1078,11 @@ myReader.on('readable', () => { #### Class: stream.Duplex @@ -1190,6 +1204,9 @@ the [API for Stream Consumers][] section). Doing so may lead to adverse side effects in application code consuming the stream. ### Simplified Construction + For many simple cases, it is possible to construct a stream without relying on inheritance. This can be accomplished by directly creating instances of the