github cloudflare/workers-sdk @cloudflare/vitest-pool-workers@0.18.4

latest releases: @cloudflare/workers-utils@0.26.0, @cloudflare/workers-auth@0.4.2, @cloudflare/vite-plugin@1.44.0...
4 hours ago

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

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.