Releases: e2b-dev/E2B
e2b@2.24.0
Minor Changes
-
2680c89: Remove
Sandbox.betaCreate(JS) andSandbox.beta_create(Python). These methods were a beta of thelifecycleconfiguration that has since shipped onSandbox.create. Migrate by callingSandbox.createwith thelifecycleoption:// 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
Minor Changes
- d21b936: - Fix lifecycle and autopause precedence
- Deprecate
auto_pause/autoPause; uselifecycle={"on_timeout": "pause"}instead. ADeprecationWarning(Python) /console.warn(JS) is now emitted when the flag is set - Breaking validation change: passing
auto_resume=truewhile the resolvedon_timeoutis"kill"now raisesInvalidArgumentException(Python) /InvalidArgumentError(JS)
- Deprecate
e2b@2.22.0
Minor Changes
- e10958d: support for api h2
@e2b/python-sdk@2.23.1
Patch Changes
-
a9bb287: fix(python-sdk): close gRPC streams on
AsyncWatchHandle.stop()andAsyncCommandHandle.disconnect()stop()/disconnect()previously only cancelled the consumer task and left the underlying server-streaming RPC open (theawait self._events.aclose()was commented out as a Python 3.8 workaround). On long-lived sandboxes this leaked file descriptors and eventually producedCode.internal: error creating watcher: too many open files. Python 3.8 is no longer supported (pyproject.tomlpins^3.10), so the workaround is removed and the streams are now closed explicitly. -
8640378: Make
http2parameter optional
@e2b/python-sdk@2.23.0
Minor Changes
-
2680c89: Remove
Sandbox.betaCreate(JS) andSandbox.beta_create(Python). These methods were a beta of thelifecycleconfiguration that has since shipped onSandbox.create. Migrate by callingSandbox.createwith thelifecycleoption:// 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
Minor Changes
- d21b936: - Fix lifecycle and autopause precedence
- Deprecate
auto_pause/autoPause; uselifecycle={"on_timeout": "pause"}instead. ADeprecationWarning(Python) /console.warn(JS) is now emitted when the flag is set - Breaking validation change: passing
auto_resume=truewhile the resolvedon_timeoutis"kill"now raisesInvalidArgumentException(Python) /InvalidArgumentError(JS)
- Deprecate
@e2b/cli@2.10.2
Patch Changes
- 6d66d15: Fix
e2b auth logincrashing on headless machines wherexdg-openis unavailable. The CLI now spawns the browser opener directly so it can catch the spawnENOENTsynchronously, prints the login URL so the user can open it manually, and suggests settingE2B_API_KEYwhen interactive login is not possible.
e2b@2.21.0
Minor Changes
-
2ac5de2: Add
signal: AbortSignaloption to JS SDK methods to support cancelling in-flight requests. The signal can be passed toSandbox.create,Sandbox.connect,sandbox.commands.run,sandbox.files.*, volume methods, and other request options. When the signal is aborted, the underlyingfetchis aborted and the returned promise rejects with anAbortError.SandboxPaginator.nextItemsandSnapshotPaginator.nextItemsnow accept aSandboxApiOptsargument (includingsignal) — 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
Patch Changes
- eaf452a: add optional name parameter to createSnapshot and return snapshot names
@e2b/python-sdk@2.21.1
Patch Changes
- eaf452a: add optional name parameter to createSnapshot and return snapshot names