Change8

wrangler@4.118.0

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

Summary

This release enhances local development with default observability capture and introduces declarative Workflow triggers. It also includes several bug fixes for `wrangler dev`, custom builds, and account ID validation.

Migration Steps

  1. To opt out of local observability capture by default in `wrangler dev`, set `X_LOCAL_OBSERVABILITY=false`.

✨ New Features

  • Add `--json` flag to `wrangler containers info` for consistent JSON output.
  • Enable local observability capture by default in `wrangler dev` and the Vite plugin, capturing request traces and console logs into the Local Explorer's Observability tab.
  • Add additional triggers to Workflows, allowing Workers to declaratively start locally defined Workflows. Configure event subscriptions under `triggers.events`.

🐛 Bug Fixes

  • Fix `jsx_fragment` being ignored when `wrangler dev` runs a custom build. Your `jsx_fragment` value is now used instead of `jsx_factory` for JSX fragments.
  • Stop `wrangler dev` from starting new work after you stop it or it reloads. Custom build commands will no longer run after dev has stopped, changes to assets will not be reported against replaced configuration, and the process will now exit cleanly.
  • Stop `wrangler dev` from running custom builds concurrently. A burst of file changes now results in a single build, and a build only starts once the previous one has finished.
  • Report a clear error for account IDs that can't be used in a Cloudflare API request. Account IDs are now validated up front, and invalid values will fail with a message naming the offending value and its source.

Affected Symbols