github cloudflare/workers-sdk @cloudflare/workflows-shared@0.6.0

latest releases: wrangler@4.71.0, @cloudflare/vite-plugin@1.26.1, @cloudflare/unenv-preset@2.15.0...
12 hours ago

Minor Changes

  • #11970 f235827 Thanks @pombosilva! - Adds step context with attempt count to step.do() callbacks.

    Workflow step callbacks now receive a context object containing the current attempt number (1-indexed).
    This allows developers to access which retry attempt is currently executing.

    Example:

    await step.do("my-step", async (ctx) => {
    	// ctx.attempt is 1 on first try, 2 on first retry, etc.
    	console.log(`Attempt ${ctx.attempt}`);
    });

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.