Skip to content

Releases: cloudflare/workers-sdk

@cloudflare/workflows-shared@0.12.0

Choose a tag to compare

@workers-devprod workers-devprod released this 09 Jul 14:09
774c09e

Minor Changes

  • #14465 2fedb1f Thanks @vaishnav-mk! - Add rollback support when terminating Workflow instances

    WorkflowInstance.terminate({ rollback: true }) now runs registered rollback handlers before marking a local Workflow instance as terminated. Wrangler also supports this via wrangler workflows instances terminate --rollback, including local mode.

    The rollback option is only sent for terminate operations and is rejected by the Local Explorer API for pause, resume, and restart actions.

@cloudflare/workers-utils@0.26.0

Choose a tag to compare

@workers-devprod workers-devprod released this 09 Jul 18:25
eced610

Minor Changes

  • #14591 0283a1f Thanks @dario-piotrowicz! - Export getInstalledPackageVersion, getPackagePath, and isPackageInstalled utilities

    Package resolution helpers that were previously internal to @cloudflare/autoconfig are now exported from @cloudflare/workers-utils so they can be shared across packages without pulling in the full autoconfig dependency.

    getPackagePath now also consistently returns a directory path. Previously the fallback resolution strategy could return a file path (the package entry point) instead of its containing directory.

@cloudflare/workers-auth@0.4.2

Choose a tag to compare

@workers-devprod workers-devprod released this 09 Jul 18:25
eced610

Patch Changes

  • Updated dependencies [0283a1f]:
    • @cloudflare/workers-utils@0.26.0

@cloudflare/vitest-pool-workers@0.18.4

Choose a tag to compare

@workers-devprod workers-devprod released this 09 Jul 18:25
eced610

Patch Changes

  • #14535 1b965c5 Thanks @Naapperas! - Support dynamic retry delays for Workflow steps in local dev

    A step's retries.delay can now be a function that computes the delay per failed attempt, in addition to a static duration. The function receives { ctx, error } and returns a delay (a number of milliseconds or a duration string like "30 seconds"), and its result is fed into the configured backoff.

    await step.do(
      "call flaky API",
      {
        retries: {
          limit: 5,
          backoff: "constant",
          delay: ({ ctx }) => ctx.attempt * 1000,
        },
      },
      async () => {
        /* ... */
      }
    );

    The function is invoked once per failed attempt with a 5 second timeout. If it throws, times out, or returns an invalid value, the step fails without further retries.

  • Updated dependencies [0283a1f, 7b28392, 1b965c5]:

    • wrangler@4.110.0
    • miniflare@4.20260708.1

@cloudflare/vitest-pool-workers@0.18.3

Choose a tag to compare

@workers-devprod workers-devprod released this 09 Jul 14:09
774c09e

Patch Changes

  • #14489 e3f0cd6 Thanks @edmundhung! - Add listDurableObjectIds() to Miniflare

    Miniflare now exposes listDurableObjectIds() for listing persisted Durable Object instance IDs by binding name. The Vitest pool now uses this shared Miniflare API internally instead of duplicating Miniflare's storage listing logic.

  • Updated dependencies [e3f0cd6, 8511ddf, 9f74a5f, e3f0cd6, c782e2a, 2fedb1f, 17d2fc1]:

    • miniflare@4.20260708.0
    • wrangler@4.109.0

@cloudflare/vite-plugin@1.44.0

Choose a tag to compare

@workers-devprod workers-devprod released this 09 Jul 18:25
eced610

Minor Changes

  • #14535 1b965c5 Thanks @Naapperas! - Support dynamic retry delays for Workflow steps in local dev

    A step's retries.delay can now be a function that computes the delay per failed attempt, in addition to a static duration. The function receives { ctx, error } and returns a delay (a number of milliseconds or a duration string like "30 seconds"), and its result is fed into the configured backoff.

    await step.do(
      "call flaky API",
      {
        retries: {
          limit: 5,
          backoff: "constant",
          delay: ({ ctx }) => ctx.attempt * 1000,
        },
      },
      async () => {
        /* ... */
      }
    );

    The function is invoked once per failed attempt with a 5 second timeout. If it throws, times out, or returns an invalid value, the step fails without further retries.

Patch Changes

@cloudflare/vite-plugin@1.43.3

Choose a tag to compare

@workers-devprod workers-devprod released this 09 Jul 14:09
774c09e

Patch Changes

@cloudflare/runtime-types@0.0.1

Choose a tag to compare

@workers-devprod workers-devprod released this 09 Jul 18:25
eced610

Patch Changes

  • Updated dependencies [1b965c5]:
    • miniflare@4.20260709.0

@cloudflare/pages-shared@0.13.156

Choose a tag to compare

@workers-devprod workers-devprod released this 09 Jul 18:25
eced610

Patch Changes

  • Updated dependencies [1b965c5]:
    • miniflare@4.20260708.1

@cloudflare/pages-shared@0.13.155

Choose a tag to compare

@workers-devprod workers-devprod released this 09 Jul 14:09
774c09e

Patch Changes