Commit 6753c8f
committed
stream: deprecate piping to emitters without prependListener
The prependListener method has been available on EventEmitter since
Node.js v6.0.0 (April 2016). The internal fallback code that manually
manipulates the _events object was intended for pre-v6 compatibility.
This adds a runtime deprecation warning (DEP0205) when piping to an
EventEmitter that lacks the prependListener method. The fallback
behavior is preserved for now but will be removed in a future version.
PR-URL: https://github.com/nodejs/node/pull/XXXXX
Refs: https://github.com/nodejs/node/issues/XXXXX1 parent ff91fea commit 6753c8f
File tree
4 files changed
+19
-3
lines changed- doc/api
- lib/internal/streams
- test/parallel
4 files changed
+19
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4563 | 4563 | | |
4564 | 4564 | | |
4565 | 4565 | | |
| 4566 | + | |
| 4567 | + | |
| 4568 | + | |
| 4569 | + | |
| 4570 | + | |
| 4571 | + | |
| 4572 | + | |
| 4573 | + | |
| 4574 | + | |
| 4575 | + | |
| 4576 | + | |
| 4577 | + | |
| 4578 | + | |
| 4579 | + | |
| 4580 | + | |
| 4581 | + | |
4566 | 4582 | | |
4567 | 4583 | | |
4568 | 4584 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments