Skip to content

Update e2b SDK (js → 2.27.1, python → 2.25.1)#204

Merged
mishushakov merged 4 commits into
mainfrom
mishushakov/update-e2b-sdks
Jun 3, 2026
Merged

Update e2b SDK (js → 2.27.1, python → 2.25.1)#204
mishushakov merged 4 commits into
mainfrom
mishushakov/update-e2b-sdks

Conversation

@mishushakov
Copy link
Copy Markdown
Member

Replaces the closed Renovate PR #199. Bumps the e2b dependency for both SDKs to the requested versions:

Package From To
e2b (js-sdk) 2.19.4 2.27.1
e2b (python-sdk) 2.20.3 2.25.1

Breaking change handled

e2b 2.24.0 removed the beta create API:

  • JS: Sandbox.betaCreate and SandboxBetaCreateOpts
  • Python: Sandbox.beta_create

The lifecycle config those methods gated now ships on Sandbox.create, so the desktop overrides are dead/broken and have been removed:

  • js-sdk — dropped the betaCreate override + SandboxBetaCreateOpts interface and its import. Without this, tsc --noEmit fails (TS2614/TS2339) — this was the failure on Update dependency e2b #199.
  • python-sdk — dropped the beta_create override; super().beta_create() no longer exists, leaving it broken at runtime.

Verification

  • pnpm build (tsc + tsup) passes against e2b 2.27.1
  • pnpm run lint and pnpm run format clean (no formatting diffs)
  • Python from e2b_desktop import Sandbox imports cleanly against e2b 2.25.1
  • Lockfiles regenerated (pnpm-lock.yaml, poetry.lock)

Note: the integration test suites create real sandboxes against the E2B API. #199's python check failed with a transient 500: Failed to place sandbox (infra, unrelated to code) — not reproduced here.

🤖 Generated with Claude Code

Bumps the e2b dependency for both SDKs and adapts to the breaking
change in e2b 2.24.0, which removed Sandbox.betaCreate /
SandboxBetaCreateOpts (JS) and Sandbox.beta_create (Python). The
lifecycle config those methods gated now ships on Sandbox.create, so
the desktop overrides are dropped:

- js-sdk: removed the betaCreate override and SandboxBetaCreateOpts
  interface (tsc failed against the new types)
- python-sdk: removed the beta_create override (super().beta_create
  no longer exists, leaving it broken at runtime)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mishushakov mishushakov requested a review from mlejva as a code owner June 3, 2026 11:50
@cla-bot cla-bot Bot added the cla-signed label Jun 3, 2026
@cursor
Copy link
Copy Markdown

cursor Bot commented Jun 3, 2026

PR Summary

Medium Risk
Dependency major-line bump plus a breaking public API removal (beta create); callers must migrate to lifecycle on create, but core desktop create behavior is unchanged.

Overview
Bumps the underlying e2b dependency for both desktop packages (JS ^2.27.1, Python ^2.25.1) and tightens the JS package engines.node to >=20.18.1 to match upstream. Lockfiles (pnpm-lock.yaml, poetry.lock) are regenerated; Python picks up new transitive HTTP/2 deps from core e2b.

Because e2b 2.24.0 removed the beta sandbox create API, this PR removes the desktop-only wrappers that called it: Sandbox.betaCreate / SandboxBetaCreateOpts (JS) and Sandbox.beta_create (Python). Auto-pause / lifecycle behavior should move to Sandbox.create with lifecycle (documented in the changeset).

Sandbox.create and the desktop startup path (display, Xvfb, xfce) are unchanged aside from dropping the dead beta entry points.

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

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

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: fa699d9dd3

ℹ️ 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 packages/js-sdk/package.json
mishushakov and others added 3 commits June 3, 2026 13:53
e2b 2.27.1 declares engines.node >=20.18.1. Bump @e2b/desktop's range
to match so consumers on Node 20.0–20.17 get a clear engine mismatch at
install time rather than runtime failures from the upgraded SDK.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mishushakov mishushakov enabled auto-merge (squash) June 3, 2026 11:57
@mishushakov mishushakov mentioned this pull request Jun 3, 2026
1 task
@mishushakov mishushakov merged commit 122a1f0 into main Jun 3, 2026
11 checks passed
@mishushakov mishushakov deleted the mishushakov/update-e2b-sdks branch June 3, 2026 12:36
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