miniflare@4.20260507.0
📦 cloudflare-workersView on GitHub →
✨ 3 features🐛 1 fixes🔧 2 symbols
Summary
This release enhances the Email Sending API with support for named recipients in the MessageBuilder and aligns Miniflare's local development environment timezone with production by defaulting workerd to UTC.
Migration Steps
- If you relied on Miniflare using the host machine's local timezone for the workerd subprocess during local development, be aware that it now defaults to UTC. If you need to restore specific timezone behavior for testing, use the new 'unsafeRuntimeEnv' option in the Miniflare constructor.
✨ New Features
- Email Sending API MessageBuilder now supports named recipients using EmailAddress objects for 'to', 'cc', and 'bcc' fields, allowing mixing with plain strings.
- Miniflare now defaults the workerd runtime subprocess to use TZ=UTC to align with the production Cloudflare runtime, preventing local timezone drift for Date and Intl APIs.
- Introduced 'unsafeRuntimeEnv' option on the Miniflare constructor (a Record<string, string>) to override the default environment variables for the spawned workerd subprocess, such as setting a specific TZ.
🐛 Bug Fixes
- Addresses an issue where addresses in "Name" <address> format were not correctly parsed when checking 'allowed_destination_addresses' and 'allowed_sender_addresses' restrictions.