Change8

@cloudflare/workflows-shared@0.11.2

📦 cloudflare-workersView on GitHub →
1 features🐛 1 fixes🔧 1 symbols

Summary

This patch updates the bundled esbuild version and enhances Workflows rollback handlers by providing the full step context in the handler function.

Migration Steps

  1. If relying on the legacy `stepName` field in rollback handlers, note that it is equivalent to `${ctx.step.name}-${ctx.step.count}`.
  2. Note that `rollbackConfig` is now limited to retry and timeout settings when used with rollback handlers.

✨ New Features

  • Rollback handlers in Workflows now receive the original step context under the `ctx` property, providing access to `ctx.step.name`, `ctx.step.count`, `ctx.attempt`, and the resolved step `config`.

🐛 Bug Fixes

  • Bug fixes included in esbuild versions 0.27.3 through 0.28.1 have been incorporated via dependency bump.

Affected Symbols