@cloudflare/sandbox 0.4.15 → 0.4.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
 
2
- > @cloudflare/sandbox@0.4.15 build
2
+ > @cloudflare/sandbox@0.4.16 build
3
3
  > rm -rf dist && tsdown --config tsdown.config.ts
4
4
 
5
5
  ℹ tsdown v0.15.11 powered by rolldown v1.0.0-beta.45
@@ -7,9 +7,9 @@
7
7
  ℹ entry: src/index.ts
8
8
  ℹ tsconfig: tsconfig.json
9
9
  ℹ Build start
10
- ℹ dist/index.js  95.61 kB │ gzip: 21.55 kB
11
- ℹ dist/index.js.map 202.56 kB │ gzip: 44.33 kB
12
- ℹ dist/index.d.ts.map  72.31 kB │ gzip: 19.90 kB
13
- ℹ dist/index.d.ts  53.99 kB │ gzip: 11.70 kB
14
- ℹ 4 files, total: 424.47 kB
15
- ✔ Build complete in 1968ms
10
+ ℹ dist/index.js 100.14 kB │ gzip: 22.78 kB
11
+ ℹ dist/index.js.map 211.33 kB │ gzip: 46.59 kB
12
+ ℹ dist/index.d.ts.map  73.81 kB │ gzip: 20.47 kB
13
+ ℹ dist/index.d.ts  56.43 kB │ gzip: 12.24 kB
14
+ ℹ 4 files, total: 441.72 kB
15
+ ✔ Build complete in 2083ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @cloudflare/sandbox
2
2
 
3
+ ## 0.4.16
4
+
5
+ ### Patch Changes
6
+
7
+ - [#184](https://github.com/cloudflare/sandbox-sdk/pull/184) [`7989b61`](https://github.com/cloudflare/sandbox-sdk/commit/7989b6105cea8c381dd162be0bcb29db3e214fde) Thanks [@ghostwriternr](https://github.com/ghostwriternr)! - Redact credentials from Git URLs in logs
8
+
9
+ - [#186](https://github.com/cloudflare/sandbox-sdk/pull/186) [`c2e3384`](https://github.com/cloudflare/sandbox-sdk/commit/c2e3384b151ae3f430c2edc8c492921d0b6b8b1c) Thanks [@whoiskatrin](https://github.com/whoiskatrin)! - Expose deleteSession API with proper safeguards
10
+ - Add `deleteSession(sessionId)` method to public SDK API
11
+ - Prevent deletion of default session (throws error with guidance to use `sandbox.destroy()`)
12
+ - Session cleanup kills all running commands in parallel before destroying shell
13
+ - Return structured `SessionDeleteResult` with success status, sessionId, and timestamp
14
+
3
15
  ## 0.4.15
4
16
 
5
17
  ### Patch Changes
package/Dockerfile CHANGED
@@ -31,7 +31,7 @@ COPY --from=pruner /app/out/package-lock.json ./package-lock.json
31
31
 
32
32
  # Install ALL dependencies with cache mount for npm packages
33
33
  RUN --mount=type=cache,target=/root/.npm \
34
- npm ci
34
+ CI=true npm ci
35
35
 
36
36
  # Copy pruned source code
37
37
  COPY --from=pruner /app/out/full/ .
@@ -55,7 +55,7 @@ COPY --from=builder /app/tooling ./tooling
55
55
 
56
56
  # Install ONLY production dependencies (excludes typescript, @types/*, etc.)
57
57
  RUN --mount=type=cache,target=/root/.npm \
58
- npm ci --production
58
+ CI=true npm ci --production
59
59
 
60
60
  # ============================================================================
61
61
  # Stage 4: Download pre-built Python 3.11.14