Skip to content

Commit 3ef0f35

Browse files
Version Packages (#155)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 2d4af9f commit 3ef0f35

File tree

10 files changed

+28
-26
lines changed

10 files changed

+28
-26
lines changed

.changeset/add-exists-method.md

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

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ npm run docker:rebuild # Rebuild container image locally (includes clean bui
9696
- Stable images when "Version Packages" PR is merged
9797
- Multi-arch builds (amd64, arm64) handled by CI
9898

99-
**Critical:** Docker image version MUST match npm package version (`@cloudflare/[email protected]``cloudflare/sandbox:0.4.8`). This is enforced via `ARG SANDBOX_VERSION` in Dockerfile.
99+
**Critical:** Docker image version MUST match npm package version (`@cloudflare/[email protected]``cloudflare/sandbox:0.4.9`). This is enforced via `ARG SANDBOX_VERSION` in Dockerfile.
100100

101101
### Development Server
102102

examples/basic/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
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.8
5-
FROM cloudflare/sandbox-test:0.4.8
4+
# FROM docker.io/cloudflare/sandbox:0.4.9
5+
FROM cloudflare/sandbox-test:0.4.9
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.8
9+
# FROM --platform=linux/arm64 cloudflare/sandbox-test:0.4.9
1010

1111
# Expose the ports you want to expose
1212
EXPOSE 8080
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.8
5-
FROM cloudflare/sandbox-test:0.4.8
4+
# FROM docker.io/cloudflare/sandbox:0.4.9
5+
FROM cloudflare/sandbox-test:0.4.9
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.8
9+
# FROM --platform=linux/arm64 cloudflare/sandbox-test:0.4.9

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.8
1+
FROM docker.io/cloudflare/sandbox:0.4.9
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.8
4+
# FROM --platform=linux/arm64 docker.io/cloudflare/sandbox:0.4.9
55

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

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: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# @cloudflare/sandbox
22

3+
## 0.4.9
4+
5+
### Patch Changes
6+
7+
- [#152](https://github.com/cloudflare/sandbox-sdk/pull/152) [`8e7773e`](https://github.com/cloudflare/sandbox-sdk/commit/8e7773ec9571a5f968cbbc5f48e38e01d7d13b77) Thanks [@ghostwriternr](https://github.com/ghostwriternr)! - Add exists() method to check if a file or directory exists
8+
9+
This adds a new `exists()` method to the SDK that checks whether a file or directory exists at a given path. The method returns a boolean indicating existence, similar to Python's `os.path.exists()` and JavaScript's `fs.existsSync()`.
10+
11+
The implementation is end-to-end:
12+
13+
- New `FileExistsResult` and `FileExistsRequest` types in shared package
14+
- Handler endpoint at `/api/exists` in container layer
15+
- Client method in `FileClient` and `Sandbox` classes
16+
- Full test coverage (unit tests and E2E tests)
17+
318
## 0.4.8
419

520
### 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.8",
3+
"version": "0.4.9",
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.8';
6+
export const SDK_VERSION = '0.4.9';

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.8
2+
FROM docker.io/cloudflare/sandbox-test:0.4.9
33

44
# Expose ports used for testing
55
EXPOSE 8080

0 commit comments

Comments
 (0)