Skip to content

Releases: e2b-dev/E2B

e2b@2.24.0

22 May 15:53
2680c89

Choose a tag to compare

Minor Changes

  • 2680c89: Remove Sandbox.betaCreate (JS) and Sandbox.beta_create (Python). These methods were a beta of the lifecycle configuration that has since shipped on Sandbox.create. Migrate by calling Sandbox.create with the lifecycle option:

    // before
    await Sandbox.betaCreate({ autoPause: true })
    // after
    await Sandbox.create({ lifecycle: { onTimeout: 'pause' } })
    # before
    Sandbox.beta_create(auto_pause=True)
    # after
    Sandbox.create(lifecycle={"on_timeout": "pause"})

e2b@2.23.0

22 May 09:48
d21b936

Choose a tag to compare

Minor Changes

  • d21b936: - Fix lifecycle and autopause precedence
    • Deprecate auto_pause/autoPause; use lifecycle={"on_timeout": "pause"} instead. A DeprecationWarning (Python) / console.warn (JS) is now emitted when the flag is set
    • Breaking validation change: passing auto_resume=true while the resolved on_timeout is "kill" now raises InvalidArgumentException (Python) / InvalidArgumentError (JS)

e2b@2.22.0

22 May 00:18
e10958d

Choose a tag to compare

Minor Changes

@e2b/python-sdk@2.23.1

22 May 19:46
8640378

Choose a tag to compare

Patch Changes

  • a9bb287: fix(python-sdk): close gRPC streams on AsyncWatchHandle.stop() and AsyncCommandHandle.disconnect()

    stop() / disconnect() previously only cancelled the consumer task and left the underlying server-streaming RPC open (the await self._events.aclose() was commented out as a Python 3.8 workaround). On long-lived sandboxes this leaked file descriptors and eventually produced Code.internal: error creating watcher: too many open files. Python 3.8 is no longer supported (pyproject.toml pins ^3.10), so the workaround is removed and the streams are now closed explicitly.

  • 8640378: Make http2 parameter optional

@e2b/python-sdk@2.23.0

22 May 15:53
2680c89

Choose a tag to compare

Minor Changes

  • 2680c89: Remove Sandbox.betaCreate (JS) and Sandbox.beta_create (Python). These methods were a beta of the lifecycle configuration that has since shipped on Sandbox.create. Migrate by calling Sandbox.create with the lifecycle option:

    // before
    await Sandbox.betaCreate({ autoPause: true })
    // after
    await Sandbox.create({ lifecycle: { onTimeout: 'pause' } })
    # before
    Sandbox.beta_create(auto_pause=True)
    # after
    Sandbox.create(lifecycle={"on_timeout": "pause"})

@e2b/python-sdk@2.22.0

22 May 09:48
d21b936

Choose a tag to compare

Minor Changes

  • d21b936: - Fix lifecycle and autopause precedence
    • Deprecate auto_pause/autoPause; use lifecycle={"on_timeout": "pause"} instead. A DeprecationWarning (Python) / console.warn (JS) is now emitted when the flag is set
    • Breaking validation change: passing auto_resume=true while the resolved on_timeout is "kill" now raises InvalidArgumentException (Python) / InvalidArgumentError (JS)

@e2b/cli@2.10.2

22 May 19:46
8640378

Choose a tag to compare

Patch Changes

  • 6d66d15: Fix e2b auth login crashing on headless machines where xdg-open is unavailable. The CLI now spawns the browser opener directly so it can catch the spawn ENOENT synchronously, prints the login URL so the user can open it manually, and suggests setting E2B_API_KEY when interactive login is not possible.

e2b@2.21.0

18 May 12:30
2ac5de2

Choose a tag to compare

Minor Changes

  • 2ac5de2: Add signal: AbortSignal option to JS SDK methods to support cancelling in-flight requests. The signal can be passed to Sandbox.create, Sandbox.connect, sandbox.commands.run, sandbox.files.*, volume methods, and other request options. When the signal is aborted, the underlying fetch is aborted and the returned promise rejects with an AbortError.

    SandboxPaginator.nextItems and SnapshotPaginator.nextItems now accept a SandboxApiOpts argument (including signal) — when provided, the per-call options override the connection options the paginator was constructed with for that single request.

    Same change in the Python SDK: SandboxPaginator.next_items / SnapshotPaginator.next_items (sync and async) now accept **opts: ApiParams (e.g. api_key, domain, headers, request_timeout); when provided, the per-call options override the ones the paginator was constructed with.

e2b@2.20.1

14 May 17:36
eaf452a

Choose a tag to compare

Patch Changes

  • eaf452a: add optional name parameter to createSnapshot and return snapshot names

@e2b/python-sdk@2.21.1

14 May 17:36
eaf452a

Choose a tag to compare

Patch Changes

  • eaf452a: add optional name parameter to createSnapshot and return snapshot names