Skip to content

e2b@2.30.3

Choose a tag to compare

@github-actions github-actions released this 19 Jun 19:03
· 5 commits to main since this release
e03d1b8

Patch Changes

  • f3e7f33: Tidy up SDK authentication and deprecate the access token in ConnectionConfig.

    • Deprecated the accessToken (JS) / access_token (Python) option on ConnectionConfig. It still works exactly as before — when set (or via E2B_ACCESS_TOKEN), the Authorization: Bearer header is still sent — but you should pass custom auth through apiHeaders instead, e.g. new ConnectionConfig({ apiHeaders: { Authorization: 'Bearer <token>' } }).
    • The SDK now raises a clear error when no API key is supplied, pointing to the API Keys tab (https://e2b.dev/dashboard?tab=keys). In JS this is controlled by a requireApiKey option (default true) so callers that authenticate differently — like the CLI hitting /teams with an access token — can opt out; in Python the API key is always required.
    • Removed the unused access-token toggle from the API clients: requireAccessToken (JS) and require_access_token (Python). No caller ever set it to a non-default value, so behavior is unchanged.
    • The CLI now passes the access token to the /teams endpoint through apiHeaders instead of the deprecated option.
    • Decoupled the sandbox-scoped envd access token from ConnectionConfig: EnvdApiClient now owns its own accessToken field and sets the X-Access-Token header itself.
  • 0a5d524: Update package logos with theme-aware dark/light variants for GitHub.