github cloudflare/workers-sdk @cloudflare/vitest-plugin@1.4.6

latest releases: create-cloudflare@2.74.2, @cloudflare/cli-shared-helpers@0.2.7, @cloudflare/workers-auth@0.14.1...
4 hours ago

Patch Changes

  • #15708 3464abc Thanks @samstarling! - Dispose Workflow step results and introspection modifiers after use

    Release RPC resources deterministically during local Workflow execution and introspection. This prevents undisposed RPC warnings and requests being cancelled after their execution context has ended. Live step results retain their original data shape, including typed-array offsets and backing buffers. Callbacks that finish after a step times out also release their results, cancelling unused streams without delaying retries.

    Disposing an introspector still aborts the instance if modifier acquisition failed, without introducing a teardown error. Non-stream results containing function-valued array properties are rejected according to the serialisable-output contract, instead of silently discarding those properties during storage normalisation.

  • #15846 a88cac4 Thanks @oddharsh! - Fail with an error instead of hanging when local dev requests can't work under Bun

    Bun's fetch() ignores the undici dispatcher that Miniflare routes requests through (oven-sh/bun#39247). Under Bun, createTestHarness()'s server.fetch() and server.getWorker()'s fetch(), email() and scheduled() now throw a UserError, requests to the dev server URL get a 503 naming the cause, and starting remote bindings throws a UserError. Each of these used to hang with no error. server.getWorker().getEnv() and getExport() keep working under Bun.

  • Updated dependencies [4508172, 61fc739, 3464abc, a88cac4, 262021d]:

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.