Skip to content

@cloudflare/computer@0.6.0

Choose a tag to compare

@github-actions github-actions released this 20 Oct 21:16
· 14 commits to main since this release
5879ddc

Minor Changes

  • #255 getWorkspace() now returns a lazy client immediately which resolves on the first call. useThink and the Think compatibility methods are removed; @cloudflare/think 0.21 and later take a Workspace as it is. (9cc3119) - Thanks @mattzcarey

  • #237 WorkerJavaScriptBackend keeps its Durable Object alive while executions run, and adds a maxCpuMs option. (7415a44) - Thanks @scuffi

  • #239 just-bash is now an optional peer dependency and should be installed manually when using @cloudflare/computer/backends/worker-shell. (5980264) - Thanks @mattzcarey

Patch Changes

  • #257 getWorkspace() accepts any Durable Object stub whose class has __getWorkspaceStub(), without a cast. (777097a) - Thanks @mattzcarey

  • #244 WorkspaceProxy and WorkspaceServiceProxy wake their host Durable Object by name, so ctx.id.name survives a wake caused by a container or Dynamic Worker callback. WorkspaceRef, WorkspaceProxyProps and WorkspaceServiceProxyProps accept an optional name, filled in from ctx.id.name when the backend runs in the host object itself. (b629117) - Thanks @aron-cf

  • #241 Workspace, its filesystem, the worker-javascript backend, mounts, agent tools, Git, Assets, and Artifacts are now stable; LegacyContainerBackend is deprecated in favor of ContainerBackend; the container and worker-shell backends, ws:container, sync, and computerd stay experimental. (d950ffe) - Thanks @aron-cf