miniflare@4.20260730.0
📦 cloudflare-workersView on GitHub →
✨ 1 features🐛 3 fixes🔧 2 symbols
Summary
This release introduces JSON output for the `/cdn-cgi/handler/email` endpoint and fixes several bugs related to local development, including image transformations and loopback server timeouts. It also enhances local observability for Workflows invocations.
✨ New Features
- The `/cdn-cgi/handler/email` endpoint now accepts `?format=json` to return the email handler result as JSON, including its outcome, rejection reason, forwarded messages, and replies. Requests without `format=json` still return the existing text outcome for backward compatibility.
🐛 Bug Fixes
- The local Images binding transform (`env.IMAGES.input(...).transform(...)`) now correctly respects the `fit`, `gravity`, and `background` options, resolving an issue where local dev always letterboxed transformed images with black bars regardless of the options passed in. Local dev now matches production Images binding behavior.
- The loopback server's keep-alive timeout has been disabled to prevent connection races between workerd and Node. This resolves an issue where idle pooled sockets were closed by Node, causing subsequent requests to fail with `Network connection lost`, particularly under `@cloudflare/vite-plugin` with large SSR module graphs and cold optimizer caches.
- Workflows invocations are now captured in local observability when enabled. The Workflows engine service is attached to the trace collector, ensuring workflow runs appear in the Local Explorer's Observability view attributed to the workflow. Previously, workflow invocations left no traces, spans, or logs in the local store.