diff --git a/.changeset/wet-falcons-hang.md b/.changeset/wet-falcons-hang.md deleted file mode 100644 index 2c520a50..00000000 --- a/.changeset/wet-falcons-hang.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@cloudflare/sandbox": patch ---- - -add keepAlive flag to prevent containers from shutting down diff --git a/CLAUDE.md b/CLAUDE.md index aecfcd35..4344aa10 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -96,7 +96,7 @@ npm run docker:rebuild # Rebuild container image locally (includes clean bui - Stable images when "Version Packages" PR is merged - Multi-arch builds (amd64, arm64) handled by CI -**Critical:** Docker image version MUST match npm package version (`@cloudflare/sandbox@0.4.7` → `cloudflare/sandbox:0.4.11`). This is enforced via `ARG SANDBOX_VERSION` in Dockerfile. +**Critical:** Docker image version MUST match npm package version (`@cloudflare/sandbox@0.4.7` → `cloudflare/sandbox:0.4.12`). This is enforced via `ARG SANDBOX_VERSION` in Dockerfile. ### Development Server diff --git a/examples/basic/Dockerfile b/examples/basic/Dockerfile index 1ee52dbb..24d05826 100644 --- a/examples/basic/Dockerfile +++ b/examples/basic/Dockerfile @@ -1,12 +1,12 @@ # This image is unique to this repo, and you'll never need it. # Whenever you're integrating with sandbox SDK in your own project, # you should use the official image instead: -# FROM docker.io/cloudflare/sandbox:0.4.11 -FROM cloudflare/sandbox-test:0.4.11 +# FROM docker.io/cloudflare/sandbox:0.4.12 +FROM cloudflare/sandbox-test:0.4.12 # On a mac, you might need to actively pick up the # arm64 build of the image. -# FROM --platform=linux/arm64 cloudflare/sandbox-test:0.4.11 +# FROM --platform=linux/arm64 cloudflare/sandbox-test:0.4.12 # Expose the ports you want to expose EXPOSE 8080 diff --git a/examples/claude-code/Dockerfile b/examples/claude-code/Dockerfile index 6455bf0a..155268a6 100644 --- a/examples/claude-code/Dockerfile +++ b/examples/claude-code/Dockerfile @@ -1,7 +1,7 @@ -FROM docker.io/cloudflare/sandbox:0.4.11 +FROM docker.io/cloudflare/sandbox:0.4.12 RUN npm install -g @anthropic-ai/claude-code ENV COMMAND_TIMEOUT_MS=300000 EXPOSE 3000 # On a Mac with Apple Silicon, you might need to specify the platform: -# FROM --platform=linux/arm64 docker.io/cloudflare/sandbox:0.4.11 +# FROM --platform=linux/arm64 docker.io/cloudflare/sandbox:0.4.12 diff --git a/examples/code-interpreter/Dockerfile b/examples/code-interpreter/Dockerfile index d4a03db4..79c9e02f 100644 --- a/examples/code-interpreter/Dockerfile +++ b/examples/code-interpreter/Dockerfile @@ -1,9 +1,9 @@ # This image is unique to this repo, and you'll never need it. # Whenever you're integrating with sandbox SDK in your own project, # you should use the official image instead: -# FROM docker.io/cloudflare/sandbox:0.4.11 -FROM cloudflare/sandbox-test:0.4.11 +# FROM docker.io/cloudflare/sandbox:0.4.12 +FROM cloudflare/sandbox-test:0.4.12 # On a mac, you might need to actively pick up the # arm64 build of the image. -# FROM --platform=linux/arm64 cloudflare/sandbox-test:0.4.11 +# FROM --platform=linux/arm64 cloudflare/sandbox-test:0.4.12 diff --git a/examples/code-interpreter/package.json b/examples/code-interpreter/package.json index 6ddf80d6..67aa0400 100644 --- a/examples/code-interpreter/package.json +++ b/examples/code-interpreter/package.json @@ -13,7 +13,7 @@ "author": "", "license": "MIT", "dependencies": { - "@cloudflare/sandbox": "^0.4.11", + "@cloudflare/sandbox": "^0.4.12", "openai": "^5.12.0" }, "devDependencies": { diff --git a/examples/minimal/Dockerfile b/examples/minimal/Dockerfile index 0b030af5..a80d12c4 100644 --- a/examples/minimal/Dockerfile +++ b/examples/minimal/Dockerfile @@ -1,7 +1,7 @@ -FROM docker.io/cloudflare/sandbox:0.4.11 +FROM docker.io/cloudflare/sandbox:0.4.12 # On a Mac with Apple Silicon, you might need to specify the platform: -# FROM --platform=linux/arm64 docker.io/cloudflare/sandbox:0.4.11 +# FROM --platform=linux/arm64 docker.io/cloudflare/sandbox:0.4.12 # Required during local development to access exposed ports EXPOSE 8080 diff --git a/package-lock.json b/package-lock.json index 24a77af7..597cb49e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -577,7 +577,7 @@ "version": "1.0.0", "license": "MIT", "dependencies": { - "@cloudflare/sandbox": "^0.4.11", + "@cloudflare/sandbox": "^0.4.12", "openai": "^5.12.0" }, "devDependencies": { @@ -10000,7 +10000,7 @@ }, "packages/sandbox": { "name": "@cloudflare/sandbox", - "version": "0.4.11", + "version": "0.4.12", "license": "ISC", "dependencies": { "@cloudflare/containers": "^0.0.29" diff --git a/packages/sandbox/CHANGELOG.md b/packages/sandbox/CHANGELOG.md index bccee7b1..66ffaac9 100644 --- a/packages/sandbox/CHANGELOG.md +++ b/packages/sandbox/CHANGELOG.md @@ -1,5 +1,11 @@ # @cloudflare/sandbox +## 0.4.12 + +### Patch Changes + +- [#137](https://github.com/cloudflare/sandbox-sdk/pull/137) [`7f4442b`](https://github.com/cloudflare/sandbox-sdk/commit/7f4442b7a097587d8f8e8f9ff2f887df6943a3db) Thanks [@whoiskatrin](https://github.com/whoiskatrin)! - add keepAlive flag to prevent containers from shutting down + ## 0.4.11 ### Patch Changes diff --git a/packages/sandbox/package.json b/packages/sandbox/package.json index d4cb55f8..a7c5dcbd 100644 --- a/packages/sandbox/package.json +++ b/packages/sandbox/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflare/sandbox", - "version": "0.4.11", + "version": "0.4.12", "repository": { "type": "git", "url": "https://github.com/cloudflare/sandbox-sdk" diff --git a/packages/sandbox/src/version.ts b/packages/sandbox/src/version.ts index 236378b6..f4f3570d 100644 --- a/packages/sandbox/src/version.ts +++ b/packages/sandbox/src/version.ts @@ -3,4 +3,4 @@ * This file is auto-updated by .github/changeset-version.ts during releases * DO NOT EDIT MANUALLY - Changes will be overwritten on the next version bump */ -export const SDK_VERSION = '0.4.11'; +export const SDK_VERSION = '0.4.12'; diff --git a/tests/e2e/test-worker/Dockerfile b/tests/e2e/test-worker/Dockerfile index 2203e0d4..0f00c095 100644 --- a/tests/e2e/test-worker/Dockerfile +++ b/tests/e2e/test-worker/Dockerfile @@ -1,5 +1,5 @@ # Integration test Dockerfile -FROM docker.io/cloudflare/sandbox-test:0.4.11 +FROM docker.io/cloudflare/sandbox-test:0.4.12 # Expose ports used for testing EXPOSE 8080