unstale

npm / @cloudflare/computer

@cloudflare/computer

What changed in @cloudflare/computer 0.9 to 0.10, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-11.

10 breaking7 new APIs and options4 behavior and defaults1 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.12 on npm

@cloudflare/computer 0.1020 changes

Breaking changes 9

  • A backend without an explicit id now registers as codemode; saved runs under the old default id are not resumed or returned by pending or getExec.

    0.10.0release notes

  • Replaces WorkerJavaScriptBackend and is imported from @cloudflare/computer/backends/codemode.

    0.10.0release notes

  • Replaces the WorkerJavaScriptBackendOptions type.

    0.10.0release notes

  • Tool-set exec options now use an object containing backends, output, and metadata; the old backend map and execOutput shape is replaced.

    0.10.0release notes

  • To disable the exec tool, configure exec: { backends: {} }; an empty exec object now throws.

    0.10.0release notes

  • The old backend name has no alias; update imports and construction to CodemodeBackend.

    0.10.0release notes

  • Traces now record the backend type as codemode, regardless of its id.

    0.10.0release notes

  • Now requires execution: { id, metadata }, so code constructing host call contexts by hand must provide it.

    0.10.0release notes

  • Now requires metadata, so code constructing pending calls by hand must provide it.

    0.10.0release notes

New APIs and options 7

  • Adds values to ctx once per connection or run scope, and disposes them when that scope ends.

    0.10.0release notes

  • Host module calls receive the run's id and metadata in context.execution.

    0.10.0release notes

  • Creates the experimental codemode:browser host module, letting isolate JavaScript drive an agents' Browser through the same browser functions as browserTool.

    0.10.0release notes

  • Creates experimental host modules whose functions return objects with journaled methods and run-scoped context that can persist across pauses and restarts.

    0.10.0release notes

  • The exec tool can set metadata for each run through its exec options.

    0.10.0release notes

  • Accepts string-record metadata for a run; host modules can read it through context.execution while the run's code cannot.

    0.10.0release notes

  • Lists run metadata with each waiting call.

    0.10.0release notes

Behavior and default changes 3

  • A host module call can return more than 4,096 values if the response fits the backend's byte limits.

    0.10.0release notes

  • Codemode modules can also take callbacks and return streams and live stubs in runs that do not replay.

    0.10.0release notes

  • Codemode modules can take and return Date, bigint, byte and typed arrays, Headers, and errors with their names and properties.

    0.10.0release notes

Fixes and other changes 1

  • Stops double-encoding non-ASCII bytes written by redirected byte-oriented commands.

    0.10.0release notes

@cloudflare/computer 0.92 changes

Breaking changes 1

  • Host and source modules for WorkerJavaScriptBackend that used the ws: prefix now use codemode: instead.

    0.9.0release notes

Behavior and default changes 1

  • Custom modules now support exporting objects as well as functions.

    0.9.0release notes