Commit e217733
committed
chore: upgrade bufout to v1.0.0 and drop defaultMaxListeners bumps
bufout v1.0.0 keeps the number of listeners on the process and on the
output streams constant regardless of how many children are spawned
concurrently: a single shared exit/SIGINT listener is attached only while
children are running, and every child pipes into one shared pass-through
per destination stream.
That removes the reason the CLIs raised EventEmitter.defaultMaxListeners
to 100, so those assignments (and the now-unused node:events /
node:stream imports) are gone and Node's default limit applies again,
restoring the leak warning it exists to give.
Verified with 80 concurrent children in both "inherit" and "buffered"
mode, plus the SpawnFailure flush path, at the default limit of 10: no
MaxListenersExceededWarning, and process listener counts return to zero.
The public API is unchanged from 0.3.x — the major bump reflects the
1.0.0 milestone, not a breaking change to spawn/SpawnFailure.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BAjP89a9VA9EtQsVBxGcto1 parent d9ab417 commit e217733
6 files changed
Lines changed: 22 additions & 19 deletions
File tree
- .changeset
- packages
- cli-utils
- cmake-rn/src
- ferric/src
- host/src/node/cli
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 24 | | |
29 | 25 | | |
30 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | 3 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | 30 | | |
35 | 31 | | |
36 | 32 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments