What's New
✨ Features
- Added platform-aware sandbox creation for the JavaScript SDK.
Sandbox.create()now accepts aplatformconstraint so callers can request runtime OS/architecture explicitly, while existing image-based creation remains compatible by default. This is useful for deployments that schedule across mixed Docker/Kubernetes platforms. #645 - Added richer storage and Windows sandbox creation options. The JS models now include PVC auto-provisioning fields such as
createIfNotExists,storageClass,storage, andaccessModes; this pairs with server-side auto-create support for Kubernetes PVCs and Docker named volumes. The SDK also accepts Windows-aware platform values for sandbox provisioning. #661 #749 #785 - Added secure endpoint access support.
Sandbox.create()acceptssecureAccess, and endpoint responses preserve required access headers so SDK traffic can continue to reach secured Kubernetes gateway endpoints without callers manually wiring transport headers. #745 - Added signed endpoint support for time-limited route access. JavaScript consumers can call
sandbox.getSignedEndpoint(port, expires)to obtain an endpoint whose URL/headers carry the signed route token instead of relying on a long-lived static endpoint secret. #787 - Added pause and resume lifecycle support.
SandboxandSandboxManagerexpose pause/resume methods, andSandbox.resume(...)reconnects after resume so callers receive a fresh instance when the execd endpoint changes. #668 - Added snapshot lifecycle support. The JS SDK can create, get, list, and delete snapshots through
SandboxManager, andSandbox.create()can restore fromsnapshotId; callers must provide exactly one startup source, eitherimageorsnapshotId. The API is runtime-neutral: Docker snapshot support landed with the SDK surface, and Kubernetes public snapshot support followed in the server/controller runtime. #764 #837 #840 - Added metadata patch support.
Sandbox.patchMetadata(...)andSandboxManager.patchSandboxMetadata(...)expose JSON merge-patch semantics for updating or deleting sandbox metadata without replacing the whole sandbox record. #863
🐛 Bug Fixes
- Updated JavaScript package dependencies to address npm audit findings including high/moderate vulnerabilities in minimatch, rollup, flatted, vite, esbuild, postcss, picomatch, and brace-expansion. #789
- Addressed CodeQL/static-analysis findings in the JavaScript SDK connection layer, including safer string handling and regression coverage in
connection.test.mjs. #795
📦 Misc
- JavaScript package publishing now packs the npm tarball before publish and emits GitHub artifact attestations, so consumers can verify the published SDK artifact provenance. #827
👥 Contributors
Thanks to these contributors ❤️