releases.shpreview
Cloudflare/Workers SDK/@cloudflare/workflows-shared@0.6.0

@cloudflare/workflows-shared@0.6.0

$npx -y @buildinternet/releases show rel__ganHrJPjI0TltMzHywhJ

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}`);
    });

Fetched March 26, 2026