Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

fix(ci): recover release 30006966441 and retry lockfile update with backoff (#1589)

Mish Ushakove00503b090cc
diff --git a/.changeset/bun-suite-fetch-fixes.md b/.changeset/bun-suite-fetch-fixes.md
deleted file mode 100644
index 171b836a6..000000000
--- a/.changeset/bun-suite-fetch-fixes.md
+++ /dev/null
@@ -1,8 +0,0 @@
----
-'e2b': patch
----
-
-Fix fetch handling on non-Node runtimes (Bun, Deno, browsers, edge):
-
-- The SDK now late-binds `globalThis.fetch` instead of capturing the reference at client creation, so a fetch replaced afterwards (msw, instrumentation) is picked up, and per-proxy fetcher cache entries stay distinct.
-- Request/idle timeout abort reasons are pinned to their `AbortController` to work around Bun dropping weakly-held `AbortSignal.reason` values, so timeouts on Bun surface as `TimeoutError` instead of an `undefined` reason.
diff --git a/.changeset/cf-workers-runtime-detection.md b/.changeset/cf-workers-runtime-detection.md
deleted file mode 100644
index 7f1d36d19..000000000
--- a/.changeset/cf-workers-runtime-detection.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'e2b': patch
----
-
-Detect the Cloudflare Workers runtime before the generic Node check so Node compatibility shims (workerd's `nodejs_compat`, `@cloudflare/vitest-pool-workers`) no longer make the SDK load `undici` inside Workers
diff --git a/.changeset/minor-config-project.md b/.changeset/minor-config-project.md
deleted file mode 100644
index 9f59bee99..000000000
--- a/.changeset/minor-config-project.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@e2b/cli': minor
----
-
-Rename the `team` fields in `~/.e2b/config.json` to `project`: the config format version is bumped to 2 and `teamName`, `teamId`, and `teamApiKey` become `projectName`, `projectId`, and `projectApiKey`. Existing v1 configs keep working — they are converted to the new format in memory on read, and the file on disk is only rewritten in the new format when the config is persisted anyway (login, `e2b auth configure`, token refresh), so older CLI versions can still read it in the meantime. Unrecognized configs are no longer deleted; the CLI treats them as signed out and `e2b auth login` overwrites them. Tools that read the config file directly must handle the new field names. CLI output and flags are unchanged and still say "team".
diff --git a/.github/workflows/publish_packages.yml b/.github/workflows/publish_packages.yml
index 7f5b584ec..4229291aa 100644
--- a/.github/workflows/publish_packages.yml
+++ b/.github/workflows/publish_packages.yml
@@ -82,7 +82,15 @@ jobs:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
- name: Update lock file
- run: pnpm i --no-link --no-frozen-lockfile
+ # The npm registry is eventually consistent: versions published
+ # seconds earlier may not resolve yet, so retry with backoff.
+ run: |
+ for delay in 10 20 40 80 160; do
+ pnpm i --no-link --no-frozen-lockfile && exit 0
+ echo "Registry has not propagated the new versions yet, retrying in ${delay}s..."
+ sleep "$delay"
+ done
+ pnpm i --no-link --no-frozen-lockfile
- name: Commit new versions
run: |
diff --git a/packages/cli/package.json b/packages/cli/package.json
index 715855872..18bf74bd2 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -1,6 +1,6 @@
{
"name": "@e2b/cli",
- "version": "2.14.0",
+ "version": "2.15.0",
"description": "CLI for managing e2b sandbox templates",
"homepage": "https://e2b.dev",
"license": "MIT",
@@ -81,7 +81,7 @@
"cli-highlight": "^2.1.11",
"commander": "^11.1.0",
"console-table-printer": "^2.11.2",
- "e2b": "^2.35.2",
+ "e2b": "^2.35.3",
"handlebars": "^4.7.9",
"inquirer": "^12.10.0",
"simple-update-notifier": "^2.0.0",
diff --git a/packages/js-sdk/package.json b/packages/js-sdk/package.json
index e5e3db6e3..1bdfac000 100644
--- a/packages/js-sdk/package.json
+++ b/packages/js-sdk/package.json
@@ -1,6 +1,6 @@
{
"name": "e2b",
- "version": "2.35.2",
+ "version": "2.35.3",
"description": "E2B SDK that give agents cloud environments",
"homepage": "https://e2b.dev",
"license": "MIT",
@@ -36,7 +36,6 @@
"generate:mcp": "json2ts -i ./../../spec/mcp-server.json -o src/sandbox/mcp.d.ts --unreachableDefinitions --style.singleQuote --no-style.semi",
"check-deps": "knip",
"pretest": "npx playwright install --with-deps chromium",
- "postPublish": "./scripts/post-publish.sh || true",
"test:bun": "bunx --bun vitest run --project unit --project connectionConfig",
"test:cf": "vitest run --config tests/runtimes/cloudflare/vitest.config.mts",
"test:cf:deploy": "vitest run --config tests/runtimes/cloudflare-deploy/vitest.config.mts",
diff --git a/packages/js-sdk/scripts/post-publish.sh b/packages/js-sdk/scripts/post-publish.sh
deleted file mode 100755
index 3c863ed77..000000000
--- a/packages/js-sdk/scripts/post-publish.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/usr/bin/env bash
-
-npm pkg set 'name'='@e2b/sdk'
-npm publish --no-git-checks
-npm pkg set 'name'='e2b'
-npm deprecate "@e2b/sdk@$(npm pkg get version | tr -d \")" "The package @e2b/sdk has been renamed to e2b. Please uninstall the old one and install the new by running following command: npm uninstall @e2b/sdk && npm install e2b"
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 4b4c433de..8e3abf828 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -71,8 +71,8 @@ importers:
specifier: ^2.11.2
version: 2.11.2
e2b:
- specifier: ^2.35.2
- version: 2.35.2
+ specifier: ^2.35.3
+ version: 2.35.3
handlebars:
specifier: ^4.7.9
version: 4.7.9
@@ -2277,8 +2277,8 @@ packages:
resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}
engines: {node: '>= 0.4'}
- resolution: {integrity: sha512-NNctUSm7BjyJLqR9v2snclzPaJIMyJhQnT4WE7kxeeaQqWSwLYuMSxkHdUQmJmo2XlL9wLAr8Vp7S4fDaPp9Hw==}
+ resolution: {integrity: sha512-T1vJcIrwzl+cuI7D3e7ZYI1ljTbESNif/YNYUkCOW/RqoIb4VostjEfZzqA2rs8suBhplrTHIlHL3+v3JoJU0w==}
engines: {node: '>=20.18.1 <21 || >=22'}
@@ -5714,7 +5714,7 @@ snapshots:
es-errors: 1.3.0
gopd: 1.2.0
dependencies:
'@bufbuild/protobuf': 2.12.1
'@connectrpc/connect': 2.1.2(@bufbuild/[email protected])