Skip to content

Commit 9e0940e

Browse files
Version Packages (#217)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 8503265 commit 9e0940e

File tree

11 files changed

+31
-30
lines changed

11 files changed

+31
-30
lines changed

.changeset/fix-sandbox-id-case-sensitivity.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

examples/claude-code/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM docker.io/cloudflare/sandbox:0.4.21
1+
FROM docker.io/cloudflare/sandbox:0.5.0
22
RUN npm install -g @anthropic-ai/claude-code
33
ENV COMMAND_TIMEOUT_MS=300000
44
EXPOSE 3000
55

66
# On a Mac with Apple Silicon, you might need to specify the platform:
7-
# FROM --platform=linux/arm64 docker.io/cloudflare/sandbox:0.4.21
7+
# FROM --platform=linux/arm64 docker.io/cloudflare/sandbox:0.5.0
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# This image is unique to this repo, and you'll never need it.
22
# Whenever you're integrating with sandbox SDK in your own project,
33
# you should use the official image instead:
4-
# FROM docker.io/cloudflare/sandbox:0.4.21
5-
FROM cloudflare/sandbox-test:0.4.21
4+
# FROM docker.io/cloudflare/sandbox:0.5.0
5+
FROM cloudflare/sandbox-test:0.5.0
66

77
# On a mac, you might need to actively pick up the
88
# arm64 build of the image.
9-
# FROM --platform=linux/arm64 cloudflare/sandbox-test:0.4.21
9+
# FROM --platform=linux/arm64 cloudflare/sandbox-test:0.5.0

examples/minimal/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM docker.io/cloudflare/sandbox:0.4.21
1+
FROM docker.io/cloudflare/sandbox:0.5.0
22

33
# On a Mac with Apple Silicon, you might need to specify the platform:
4-
# FROM --platform=linux/arm64 docker.io/cloudflare/sandbox:0.4.21
4+
# FROM --platform=linux/arm64 docker.io/cloudflare/sandbox:0.5.0
55

66
# Required during local development to access exposed ports
77
EXPOSE 8080

examples/typescript-validator/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use Cloudflare sandbox as base
2-
FROM docker.io/cloudflare/sandbox:0.4.21
2+
FROM docker.io/cloudflare/sandbox:0.5.0
33

44
# Install esbuild for TypeScript bundling
55
RUN npm install -g esbuild

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/sandbox/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# @cloudflare/sandbox
22

3+
## 0.5.0
4+
5+
### Minor Changes
6+
7+
- [#213](https://github.com/cloudflare/sandbox-sdk/pull/213) [`8503265`](https://github.com/cloudflare/sandbox-sdk/commit/8503265d2491a1f8e1fc1ab2f9cf7f9f0baef34b) Thanks [@ghostwriternr](https://github.com/ghostwriternr)! - Add opt-in `normalizeId` option to `getSandbox()` for preview URL compatibility.
8+
9+
Sandbox IDs with uppercase letters cause preview URL requests to route to different Durable Object instances (hostnames are case-insensitive). Use `{ normalizeId: true }` to lowercase IDs for preview URL support:
10+
11+
```typescript
12+
getSandbox(ns, 'MyProject-123', { normalizeId: true }); // Creates DO with key "myproject-123"
13+
```
14+
15+
**Important:** Different `normalizeId` values create different DO instances. If you have an existing sandbox with uppercase letters, create a new one with `normalizeId: true`.
16+
17+
**Deprecation warning:** IDs with uppercase letters will trigger a warning. In a future version, `normalizeId` will default to `true`.
18+
319
## 0.4.21
420

521
### Patch Changes

packages/sandbox/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cloudflare/sandbox",
3-
"version": "0.4.21",
3+
"version": "0.5.0",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/cloudflare/sandbox-sdk"

packages/sandbox/src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
* This file is auto-updated by .github/changeset-version.ts during releases
44
* DO NOT EDIT MANUALLY - Changes will be overwritten on the next version bump
55
*/
6-
export const SDK_VERSION = '0.4.21';
6+
export const SDK_VERSION = '0.5.0';

tests/e2e/test-worker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Integration test Dockerfile
2-
FROM docker.io/cloudflare/sandbox-test:0.4.21
2+
FROM docker.io/cloudflare/sandbox-test:0.5.0
33

44
# Expose ports used for testing
55
EXPOSE 8080

0 commit comments

Comments
 (0)