Skip to content

feat: add node 26 support - #655

Closed
uhooi wants to merge 2 commits into
cloudevents:mainfrom
uhooi:add-node-26
Closed

uhooi wants to merge 2 commits into
cloudevents:mainfrom
uhooi:add-node-26

Conversation

@uhooi

@uhooi uhooi commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

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>
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

This pull request is stale because it has been open 30 days with no activity.

@shiva

shiva commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Let's hold on this. We need to get LTS support first (22, then 24). Let's make a launch with the improvements before we go further

@cemusta cemusta left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@uhooi

uhooi commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

Resolved conflicts and run npm install .

@cemusta cemusta mentioned this pull request Nov 11, 2026
@cemusta

cemusta commented Nov 11, 2026

Copy link
Copy Markdown

This will close issue #660 660

Node 26 LTS is here, I'm not sure what's the reason of waiting for LTS, adding node support earlier when node version becames current would be nice to have if its not breaking the build.

@shiva

shiva commented Nov 11, 2026 via email •

Copy link
Copy Markdown
Contributor

@shiva

shiva commented Nov 11, 2026 via email •

Copy link
Copy Markdown
Contributor

shiva added a commit that referenced this pull request Nov 30, 2026
Node.js 26 is now LTS. Widen engines to >=22 <=26, add 26.x to the CI matrix, and run the coverage and npm publish jobs on Node.js 26.

Supersedes #655. Closes #660.

Signed-off-by: Shiva <shiv@shiv.me>
Co-authored-by: uhooi <21194714+uhooi@users.noreply.github.com>
@shiva

shiva commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

#684 Brings your changes in. Once we have a few other key fixes completed, we can launch the v11 version. Thanks for the patience.

@shiva shiva closed this Nov 30, 2026
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.

3 participants