Skip to content

chore(js): modernize networking deps and raise Node floor to 22#1512

Open
mishushakov wants to merge 3 commits into
mainfrom
mishushakov/modernize-js-dependencies
Open

chore(js): modernize networking deps and raise Node floor to 22#1512
mishushakov wants to merge 3 commits into
mainfrom
mishushakov/modernize-js-dependencies

Conversation

@mishushakov

Copy link
Copy Markdown
Member

Moves the JS SDK's Connect/Protobuf stack off the 2.0.0-rc.3 pre-release pin to stable (@connectrpc/connect/connect-web^2.1.2, @bufbuild/protobuf^2.12.1) and upgrades undici 7 → ^8.5.0. Because undici 8 requires Node >=22.19.0, the minimum supported Node for both e2b and @e2b/cli is raised from 20 (EOL 2026-04-30) to 22.19.0, with @types/node bumped to ^22. Also bumps the React test dependencies to v19 (adding react-dom/@types/react-dom), updates CI's .tool-versions Node to 22.23.1, and standardizes actions/setup-node to v6 across all workflows. No public SDK API changes — verified via typecheck, build, lint, the mocked Connect/undici transport tests, and 106 live filesystem/command tests over the new stack.

🤖 Generated with Claude Code

Move @connectrpc/connect and @connectrpc/connect-web off the 2.0.0-rc.3
pre-release pin to the stable ^2.1.2 line, bump @bufbuild/protobuf to
^2.12.1, and upgrade undici 7 -> ^8.5.0. undici 8 requires Node >=22.19.0,
so raise the minimum supported Node version for both the e2b SDK and
@e2b/cli from 20 (EOL 2026-04-30) to 22.19.0, and bump @types/node to ^22.

Also bump the React test dependencies to v19 (adding react-dom and
@types/react-dom), update CI's .tool-versions Node to 22.23.1, and
standardize actions/setup-node to v6 across all workflows.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Jun 30, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7e94409

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@e2b/cli Minor
e2b Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cursor

cursor Bot commented Jun 30, 2026

Copy link
Copy Markdown

PR Summary

Medium Risk
Breaking Node 20 support and upgrading undici plus Connect off a release candidate affect all HTTP/RPC traffic even without API surface changes.

Overview
The e2b and @e2b/cli packages now require Node >=22.19.0 (was 20.x), with @types/node on ^22 and repo tooling pinned to 22.23.1 in .tool-versions, codegen.Dockerfile, and CI.

The JS SDK moves Connect and connect-web from 2.0.0-rc.3 to ^2.1.2, @bufbuild/protobuf to ^2.12.1, and undici from 7 to ^8.5.0; browser tests bump React dev deps to 19. GitHub Actions standardizes actions/setup-node@v6, and the Stripe skill doc updates the CLI Node requirement. There are no public API or SDK source changes in the diff—only lockfile and package metadata.

Reviewed by Cursor Bugbot for commit 7e94409. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Package Artifacts

Built from a0c5492. Download artifacts from this workflow run.

JS SDK (e2b@2.31.1-mishushakov-modernize-js-dependencies.0):

npm install ./e2b-2.31.1-mishushakov-modernize-js-dependencies.0.tgz

CLI (@e2b/cli@2.13.1-mishushakov-modernize-js-dependencies.0):

npm install ./e2b-cli-2.13.1-mishushakov-modernize-js-dependencies.0.tgz

Python SDK (e2b==2.30.0+mishushakov-modernize-js-dependencies):

pip install ./e2b-2.30.0+mishushakov.modernize.js.dependencies-py3-none-any.whl

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b31ef9549f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread .changeset/js-connectrpc-stable.md
Comment thread .changeset/cli-node-floor.md
Comment thread .tool-versions
Comment thread packages/cli/package.json
… floor

Address Claude review findings on #1512:
- codegen.Dockerfile pinned NODE_VERSION to 20.19.5 while .tool-versions
  moved to 22.23.1; since generated_files.yml triggers on .tool-versions
  and engine-strict=true, the codegen container would run Node 20 against
  packages now requiring >=22.19.0. Bump the pin to 22.23.1.
- skills/stripe-projects/SKILL.md still claimed Node 20; update to 22.19.0.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…-js-dependencies

# Conflicts:
#	packages/js-sdk/package.json
#	pnpm-lock.yaml
@mishushakov mishushakov requested a review from huv1k June 30, 2026 14:15

@huv1k huv1k left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I am approving it even though I think we should more respect semver versioning 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants