Skip to content

fix: support Node.js 24 and 26 - #560

Merged
mcollina merged 3 commits into
mainfrom
fix/node-24-26-compatibility
Oct 7, 2026
Merged

mcollina merged 3 commits into
mainfrom
fix/node-24-26-compatibility

Conversation

@mcollina

@mcollina mcollina commented Oct 6, 2026

Copy link
Copy Markdown
Member

Node.js 24.14 changes events.listenerCount() to reject emitters without a listenerCount method, which breaks the copied legacy pipe implementation. Use the instance-method optional check instead, with regression coverage. Node.js 26 also exposes sessionStorage, so allow it in the test harness's global leak check. Make the core net.Socket error assertion accept both the existing and newer error forms. This addresses nodejs/citgm#1168.

Signed-off-by: Matteo Collina <hello@matteocollina.com>
Signed-off-by: Matteo Collina <hello@matteocollina.com>
Signed-off-by: Matteo Collina <hello@matteocollina.com>
@mcollina
mcollina merged commit 0767adb into main Oct 7, 2026
198 checks passed
@mcollina
mcollina deleted the fix/node-24-26-compatibility branch October 7, 2026 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant