Skip to content

Commit

Permalink
doc: add changelogs for stream
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
addaleax committed Feb 24, 2017
1 parent c373e07 commit fc53547
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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-->
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fc53547

Please sign in to comment.