Skip to content

Remove deprecated Sandbox.betaPause / beta_pause#1410

Open
mishushakov wants to merge 1 commit into
mainfrom
mishushakov/delete-betapause-resume
Open

Remove deprecated Sandbox.betaPause / beta_pause#1410
mishushakov wants to merge 1 commit into
mainfrom
mishushakov/delete-betapause-resume

Conversation

@mishushakov

Copy link
Copy Markdown
Member

Removes the deprecated Sandbox.betaPause (JS) and Sandbox.beta_pause (Python sync + async) methods, which were just aliases of pause. The CLI pause command, SDK tests, and doc examples now call pause directly, and a minor changeset is included for e2b and @e2b/python-sdk. There was no betaResume method — resume is handled via Sandbox.connect, which is unchanged.

Migration

// before
await sandbox.betaPause()
// after
await sandbox.pause()
# before
sandbox.beta_pause()
# after
sandbox.pause()

🤖 Generated with Claude Code

Remove the deprecated `betaPause` (JS) and `beta_pause` (Python sync +
async) aliases of `pause`, update the CLI pause command, tests and docs
to call `pause`, and add a changeset.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@cursor

cursor Bot commented Jun 9, 2026

Copy link
Copy Markdown

PR Summary

Medium Risk
Minor semver bump removes public API symbols; any external code still calling the beta names will break at upgrade.

Overview
Removes deprecated Sandbox.betaPause / SandboxApi.betaPause (JS), beta_pause on sync and async Python sandboxes, and switches the CLI pause command, doc examples, and list tests to pause / Sandbox.pause. Adds a minor changeset for e2b and @e2b/python-sdk with migration notes. Pause behavior is unchanged; only the old names are dropped.

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

@changeset-bot

changeset-bot Bot commented Jun 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4369906

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

This PR includes changesets to release 2 packages
Name Type
e2b Minor
@e2b/python-sdk 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

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Package Artifacts

Built from 70c1b04. Download artifacts from this workflow run.

JS SDK (e2b@2.28.2-mishushakov-delete-betapause-resume.0):

npm install ./e2b-2.28.2-mishushakov-delete-betapause-resume.0.tgz

CLI (@e2b/cli@2.11.1-mishushakov-delete-betapause-resume.0):

npm install ./e2b-cli-2.11.1-mishushakov-delete-betapause-resume.0.tgz

Python SDK (e2b==2.27.0+mishushakov-delete-betapause-resume):

pip install ./e2b-2.27.0+mishushakov.delete.betapause.resume-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: 43699069f7

ℹ️ 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 on lines +2 to +3
'e2b': minor
'@e2b/python-sdk': minor

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Publish removed SDK methods as a major release

This changeset publishes the SDK removals as minor, but the diff deletes public methods Sandbox.betaPause and Sandbox.beta_pause; consumers using normal ^2.x ranges would receive this update and hit runtime/type errors when existing code still calls the deprecated aliases. Since the change deliberately removes public API, it needs a major bump (or the aliases need to remain until a major release) to avoid breaking minor-version installs.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

they were deprecated for some time now

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.

still a breaking change; should be major release (shouldn't be breaking changes from a minor release)

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