github cloudflare/workers-sdk miniflare@4.20260507.0

latest releases: miniflare@4.20260507.1, @cloudflare/pages-shared@0.13.133, @cloudflare/vitest-pool-workers@0.16.2...
4 hours ago

Minor Changes

  • #13836 039bada Thanks @Skye-31! - Support named recipients in the Email Sending API MessageBuilder

    The send_email binding's MessageBuilder now accepts EmailAddress objects for to, cc, and bcc in addition to plain strings. You can mix named and plain addresses in the same array:

    await env.SEND_EMAIL.send({
      from: "sender@example.com",
      to: [
        "plain@example.com",
        '"Name" <address@example.com>',
        { name: "Jane Doe", email: "jane@example.com" },
      ],
      cc: [{ name: "CC Person", email: "cc@example.com" }],
      subject: "Hello",
      text: "...",
    });

    Additionally, addresses in "Name" <address> format are now correctly parsed when checking allowed_destination_addresses and allowed_sender_addresses restrictions.

  • #13776 1a54ac5 Thanks @petebacondarwin! - Default the workerd runtime subprocess to TZ=UTC to match the production Cloudflare runtime

    Previously, Miniflare inherited the host machine's timezone, so Date and Intl APIs inside a Worker observed the developer's local timezone during local development but UTC in production. This caused dev/prod drift that was hard to debug.

    Miniflare now sets TZ=UTC on the spawned workerd subprocess by default. A new unsafeRuntimeEnv option (a Record<string, string>) is available on the Miniflare constructor for advanced cases that need to override the default — for example, to test timezone-dependent behaviour:

    new Miniflare({
      modules: true,
      script: "...",
      unsafeRuntimeEnv: { TZ: "Europe/London" },
    });

Patch Changes

  • #13829 2284f20 Thanks @dependabot! - Update dependencies of "miniflare", "wrangler"

    The following dependency versions have been updated:

    Dependency From To
    workerd 1.20260504.1 1.20260506.1
  • #13841 332f527 Thanks @dependabot! - Update dependencies of "miniflare", "wrangler"

    The following dependency versions have been updated:

    Dependency From To
    workerd 1.20260506.1 1.20260507.1

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.