Skip to content

Commit c5db840

Browse files
authored
Update @cloudflare/containers to 0.3.0 (#571)
Require the latest Containers release so sandbox apps pick up the current platform updates.
1 parent 1af9e00 commit c5db840

5 files changed

Lines changed: 10 additions & 8 deletions

File tree

.changeset/containers-030.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@cloudflare/sandbox': patch
3+
---
4+
5+
Require `@cloudflare/containers` 0.3.0 so sandbox apps pick up the latest Containers platform updates.

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/sandbox/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"description": "A sandboxed environment for running commands",
99
"type": "module",
1010
"dependencies": {
11-
"@cloudflare/containers": "^0.2.3",
11+
"@cloudflare/containers": "^0.3.0",
1212
"aws4fetch": "^1.0.20"
1313
},
1414
"devDependencies": {

packages/sandbox/src/sandbox.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,6 @@ export class Sandbox<Env = unknown> extends Container<Env> implements ISandbox {
647647
this.renewActivityTimeout();
648648
}
649649

650-
// @ts-expect-error - interceptHttps is supplied by the container primitive subclass shape
651650
if (this.interceptHttps) {
652651
this.envVars = { ...this.envVars, SANDBOX_INTERCEPT_HTTPS: '1' };
653652
}

packages/sandbox/tests/sandbox.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,6 @@ describe('Sandbox - Automatic Session Management', () => {
10731073
describe('constructor - interceptHttps env injection', () => {
10741074
it('injects SANDBOX_INTERCEPT_HTTPS into envVars when interceptHttps is true', async () => {
10751075
class SandboxWithHttps extends Sandbox<Record<string, unknown>> {
1076-
// @ts-expect-error - interceptHttps will be declared by the upstream primitives base type
10771076
override interceptHttps = true;
10781077
}
10791078

@@ -1112,7 +1111,6 @@ describe('Sandbox - Automatic Session Management', () => {
11121111

11131112
it('preserves existing envVars entries when injecting', async () => {
11141113
class SandboxWithHttps extends Sandbox<Record<string, unknown>> {
1115-
// @ts-expect-error - interceptHttps will be declared by the upstream primitives base type
11161114
override interceptHttps = true;
11171115
override envVars: Record<string, string> = { MY_KEY: 'my-value' };
11181116
}

0 commit comments

Comments
 (0)