File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1678,6 +1678,13 @@ of a stream that are intended for use by consumers (as described in the
1678
1678
[ API for Stream Consumers] [ ] section). Doing so may lead to adverse side effects
1679
1679
in application code consuming the stream.
1680
1680
1681
+ Avoid overriding public methods such as ` write() ` , ` end() ` , ` cork() ` ,
1682
+ ` uncork() ` , ` read() ` and ` destroy() ` , or emitting internal events such
1683
+ as ` 'error' ` , ` 'data' ` , ` 'end' ` , ` 'finish' ` and ` 'close' ` through ` .emit() ` .
1684
+ Doing so can break current and future stream invariants leading to behavior
1685
+ and/or compatibility issues with other streams, stream utilities, and user
1686
+ expectations.
1687
+
1681
1688
### Simplified Construction
1682
1689
<!-- YAML
1683
1690
added: v1.2.0
You can’t perform that action at this time.
0 commit comments