@@ -380,6 +380,10 @@ file.end('world!');
380
380
##### writable.setDefaultEncoding(encoding)
381
381
<!-- YAML
382
382
added: v0.11.15
383
+ changes:
384
+ - version: v6.1.0
385
+ pr-url: https://github.com/nodejs/node/pull/5040
386
+ description: This method now returns a reference to `writable`.
383
387
-->
384
388
385
389
* ` encoding ` {String} The new default encoding
@@ -429,6 +433,11 @@ See also: [`writable.cork()`][].
429
433
##### writable.write(chunk[ , encoding] [ , callback ] )
430
434
<!-- YAML
431
435
added: v0.9.4
436
+ changes:
437
+ - version: v6.0.0
438
+ pr-url: https://github.com/nodejs/node/pull/6170
439
+ description: Passing `null` as the `chunk` parameter will always be
440
+ considered invalid now, even in object mode.
432
441
-->
433
442
434
443
* ` chunk ` {String|Buffer} The data to write
@@ -1069,6 +1078,11 @@ myReader.on('readable', () => {
1069
1078
#### Class: stream.Duplex
1070
1079
<!-- YAML
1071
1080
added: v0.9.4
1081
+ changes:
1082
+ - version: v6.8.0
1083
+ pr-url: https://github.com/nodejs/node/pull/8834
1084
+ description: Instances of `Duplex` now return `true` when
1085
+ checking `instanceof stream.Writable`.
1072
1086
-->
1073
1087
1074
1088
<!-- type=class-->
@@ -1190,6 +1204,9 @@ the [API for Stream Consumers][] section). Doing so may lead to adverse
1190
1204
side effects in application code consuming the stream.
1191
1205
1192
1206
### Simplified Construction
1207
+ <!-- YAML
1208
+ added: v1.2.0
1209
+ -->
1193
1210
1194
1211
For many simple cases, it is possible to construct a stream without relying on
1195
1212
inheritance. This can be accomplished by directly creating instances of the
0 commit comments