Major Changes
-
#14994
2194f88Thanks @emily-shen! - Replace Miniflare's options API with Cloudflare config-based worker optionsnew Miniflare()andsetOptions()now require aworkersarray of worker entries. Binding, service, tail, remote, asset, workflow, unsafe binding, and other worker configuration now follows the schemas inpackages/miniflare/src/config/schema.ts.The previous flat options shape is no longer accepted directly. Existing v4-shaped options can be migrated with
convertV4MiniflareOptions(). -
#14994
2194f88Thanks @emily-shen! - Change the Miniflare plugin APIPlugins now receive parsed Miniflare worker and instance config instead of per-plugin option slices. Per-plugin option schema exports have been removed; unsafe plugin authors should read bindings, exports, and triggers from the parsed config passed to plugin hooks.
-
#14994
2194f88Thanks @emily-shen! - Remove automatic module graph discoveryMiniflare no longer discovers Worker modules from
modules: trueandmodulesRules. Module workers must provide their module graph through the config manifest. Existing v4-shaped options can be migrated withconvertV4MiniflareOptions(), butmodulesRulescannot be converted without losing behavior. -
#14994
2194f88Thanks @emily-shen! - Remove internal or redundant options from Miniflare's configMiniflare no longer accepts service designator objects such as
{ network },{ external }, and{ disk }onoutboundService,tails, orstreamingTails.Miniflare also no longer supports
unsafeExcludeFromObservability, which has been dropped in favour ofunsafeRegisterWorker. -
#14994
2194f88Thanks @emily-shen! - Remove support for legacy alpha D1 (__D1_BETA__) bindingsMiniflare no longer supports deprecated beta D1 instances created before
wrangler@3.3.0.
Minor Changes
-
#14994
2194f88Thanks @emily-shen! - AddconvertV4MiniflareOptionsfor migrating Miniflare v4 optionsYou can now convert v4-shaped Miniflare options to the config-based
workersshape before creating or updating a Miniflare instance. Some v4 options cannot be converted without losing behavior and will throw an error instead.
Patch Changes
-
#15072
6dbd192Thanks @dependabot! - Update dependencies of "miniflare", "wrangler"The following dependency versions have been updated:
Dependency From To @cloudflare/workers-types ^5.20260801.1 ^5.20260804.1 workerd 1.20260801.1 1.20260804.1