Skip to content

Update dependency e2b to v2.31.0#305

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/e2b-2.x
Open

Update dependency e2b to v2.31.0#305
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/e2b-2.x

Conversation

@renovate

@renovate renovate Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
e2b (source) ==2.30.0==2.31.0 age confidence

Release Notes

e2b-dev/e2b (e2b)

v2.31.0

Compare Source

Minor Changes
  • 7e7e951: Add an object form to the sandbox lifecycle.onTimeout (on_timeout in Python)
    that controls the snapshot kind taken when a sandbox auto-pauses on timeout, via
    keepMemory (keep_memory).

    onTimeout now accepts either the existing bare action ('pause' / 'kill') or
    the object form. The object form is a discriminated union on action:
    keepMemory is only accepted alongside action: 'pause' — pairing it with
    action: 'kill' is a compile-time type error (and is rejected at runtime for
    untyped callers). When keepMemory is false, a timeout auto-pause drops the
    in-memory state and persists only the filesystem (a filesystem-only snapshot);
    resuming such a sandbox cold-boots (reboots) it from disk, losing running
    processes and open connections. Defaults to true (full memory snapshot). It
    cannot be combined with auto-resume: auto-resume wakes a paused sandbox on
    inbound traffic by restoring its memory snapshot in place, and a filesystem-only
    snapshot has no memory to restore (resuming cold-boots it), so it must be resumed
    explicitly. The bare string form is unchanged.

    # Python
    sbx = Sandbox.create(
        lifecycle={"on_timeout": {"action": "pause", "keep_memory": False}}
    )
    // JS/TS
    const sbx = await Sandbox.create({
      lifecycle: { onTimeout: { action: 'pause', keepMemory: false } },
    })
  • cb5a387: Add a keepMemory (keep_memory in Python) option to pause for
    filesystem-only snapshots.

    When keepMemory is false, pausing drops the in-memory state and captures
    only the filesystem (no memory snapshot); resuming such a snapshot cold-boots
    (reboots) the sandbox from disk, losing running processes and open connections.
    Defaults to true (full memory snapshot), so existing callers are unaffected.

    # Python
    sbx.pause(keep_memory=False)          # filesystem-only snapshot
    // JS/TS
    await sandbox.pause({ keepMemory: false }) // filesystem-only snapshot
Patch Changes
  • de0c401: Fix three filesystem watch handle bugs:
    • JS: WatchHandle now awaits async onEvent/onExit callbacks. A rejecting async onEvent is routed to onExit and stops the watch instead of becoming an unhandled promise rejection that can crash Node, and async callbacks get backpressure/ordering — matching CommandHandle.
    • Python (sync): WatchHandle.get_new_events() and stop() now send a request timeout (default 60s, overridable via request_timeout) so a stalled call can't hang the thread forever, and include the authentication header so the polling/stop calls aren't sent unauthenticated on older envd.
    • Python (async): AsyncWatchHandle now invokes on_exit when the stream ends cleanly (with None) and when stop() is called, in addition to on error — matching the JS SDK.

Configuration

📅 Schedule: (in timezone UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@claude claude 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.

LGTM — Renovate dev-dependency minor bump (e2b 2.30.0 → 2.31.0), single line change in template/requirements-dev.txt.

Extended reasoning...

Overview

Single-line Renovate bot bump of the e2b dev dependency from 2.30.0 to 2.31.0 in template/requirements-dev.txt. No other files touched.

Security risks

None. This is a dev-only requirement (used to build/test the template image) and a minor version bump of a first-party e2b SDK package. Release notes describe additive API surface (keep_memory option) and internal watch-handle bug fixes — nothing that changes trust boundaries.

Level of scrutiny

Low. Dependency-file-only change, additive minor release from the same org (e2b-dev), no code changes required in this repo, no CODEOWNER-sensitive paths touched.

Other factors

No bugs surfaced by the bug hunting system; no prior reviewer comments outstanding. Consistent with previously merged Renovate bumps of the same package (e.g. 6a43aeb, 9249b64).

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.

0 participants