Skip to content

feat: add node 26 support - #655

Open
uhooi wants to merge 1 commit into
cloudevents:mainfrom
uhooi:add-node-26
Open

feat: add node 26 support#655
uhooi wants to merge 1 commit into
cloudevents:mainfrom
uhooi:add-node-26

Conversation

@uhooi

@uhooi uhooi commented Sep 4, 2026

Copy link
Copy Markdown

Proposed Changes

Adds Node.js 26 support.

Attention

The Mocha bump is required for the test suite to run on Node.js 26. Mocha 10
depends on yargs 16, whose extensionless yargs/yargs entry point is loaded as
ESM on Node.js 26 and fails with:

ReferenceError: require is not defined in ES module scope, you can use import instead
    at file:///.../node_modules/yargs/yargs:3:69

Mocha 11 depends on yargs 17, which resolves correctly.

References

Add Node.js 26.x to the CI matrix and widen the supported engine range.

Mocha is bumped from 10.x to 11.x because Mocha 10 depends on yargs 16,
whose extensionless `yargs/yargs` entry point is loaded as ESM on Node 26
and fails with "require is not defined in ES module scope". Mocha 11 uses
yargs 17, which resolves correctly.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: uhooi <the_uhooi@yahoo.co.jp>
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