Skip to content

e2b@2.34.0

Choose a tag to compare

@github-actions github-actions released this 16 Jul 09:24
· 194 commits to main since this release
2c77fc0

Minor Changes

  • 2c77fc0: Add a name filter to Sandbox.listSnapshots() / Sandbox.list_snapshots().

    The filter accepts a snapshot name or ID, optionally tag-qualified (e.g.
    "my-snapshot", "my-team/my-snapshot" or "my-snapshot:v1"). Unknown names
    return an empty list rather than an error. It can be combined with the existing
    sandboxId / sandbox_id filter (results must match both).

    // JS/TS
    const paginator = Sandbox.listSnapshots({ name: 'my-snapshot' })
    const snapshots = await paginator.nextItems()
    # Python (sync)
    paginator = Sandbox.list_snapshots(name="my-snapshot")
    snapshots = paginator.next_items()
    
    # Python (async)
    paginator = AsyncSandbox.list_snapshots(name="my-snapshot")
    snapshots = await paginator.next_items()