Skip to content

Target Node.js 26 - #9

Merged
thisnick merged 1 commit into
mainfrom
chore/node-26-baseline
Nov 10, 2026
Merged

thisnick merged 1 commit into
mainfrom
chore/node-26-baseline

Conversation

@thisnick

Copy link
Copy Markdown
Collaborator

Moves Puppet Neo to the baseline Huan set for Wechaty 2.0: Node.js 26, TypeScript 7, native ESM only, and TypeScript that runs directly. Wechaty 2.0.0-alpha.13 requires Node.js 26 and still depends on wechaty-puppet ^1.20.1, so the wechaty-puppet 1.20.2 peer dependency stays.

  • engines.node changes from >=22.18.0 to >=26.
  • CI runs on Node.js 26.
  • @types/node moves from 24.19.2 to 26.6.6. The README build note now says Node.js 26. The dev container already used 26.
  • @types/node 26 no longer accepts the Puppet's typed emitter in events.once(). The Puppet test now waits for the message event with a small helper.

TypeScript 7.0.2, ESM-only exports and node examples/ding-dong-bot.ts were already in place. The package still ships compiled dist/ because Node.js doesn't strip types from files under node_modules.

Validation in node:26-trixie (Node 26.13, glibc 2.41) with the Linux x64 addon: npm ci, npm test (build, typecheck, 3 tests) and npm run test:package pass.

🤖 Generated with Claude Code

Wechaty 2.0 requires Node.js 26, the current LTS. Puppet Neo now
requires it too: engines, CI, @types/node and the README build note move
from 24 to 26. The dev container was already on 26.

@types/node 26 no longer accepts the Puppet's typed emitter in
events.once(), so the Puppet test waits for the message event with a
small helper instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@thisnick
thisnick merged commit 493066a into main Nov 10, 2026
11 checks passed
@thisnick
thisnick deleted the chore/node-26-baseline branch November 10, 2026 22:25
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