summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2017-02-21 23:38:48 +0100
committerAnna Henningsen <anna@addaleax.net>2017-02-24 02:06:31 +0100
commita70aa589faec204cc61f19406976fa3ffe1e3bbf (patch)
tree88c6a9b9fa3f599036b7ec77da1aca47db11060c /doc
parent3115904595249b0e308498698fe0fae7bf972346 (diff)
downloadnode-new-a70aa589faec204cc61f19406976fa3ffe1e3bbf.tar.gz
doc: add changelogs for stream
PR-URL: https://github.com/nodejs/node/pull/11489 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Italo A. Casas <me@italoacasas.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/stream.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/api/stream.md b/doc/api/stream.md
index ba1c56398d..0e12e76c81 100644
--- a/doc/api/stream.md
+++ b/doc/api/stream.md
@@ -380,6 +380,10 @@ file.end('world!');
##### writable.setDefaultEncoding(encoding)
<!-- YAML
added: v0.11.15
+changes:
+ - version: v6.1.0
+ pr-url: https://github.com/nodejs/node/pull/5040
+ description: This method now returns a reference to `writable`.
-->
* `encoding` {String} The new default encoding
@@ -429,6 +433,11 @@ See also: [`writable.cork()`][].
##### writable.write(chunk[, encoding][, callback])
<!-- YAML
added: v0.9.4
+changes:
+ - version: v6.0.0
+ pr-url: https://github.com/nodejs/node/pull/6170
+ description: Passing `null` as the `chunk` parameter will always be
+ considered invalid now, even in object mode.
-->
* `chunk` {String|Buffer} The data to write
@@ -1069,6 +1078,11 @@ myReader.on('readable', () => {
#### Class: stream.Duplex
<!-- YAML
added: v0.9.4
+changes:
+ - version: v6.8.0
+ pr-url: https://github.com/nodejs/node/pull/8834
+ description: Instances of `Duplex` now return `true` when
+ checking `instanceof stream.Writable`.
-->
<!--type=class-->
@@ -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
+<!-- YAML
+added: v1.2.0
+-->
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