Minor Changes
-
#16494
0968b08Thanks @petebacondarwin! - Enable Miniflare's development registry by default and centralize path resolutionIn Miniflare v5 beta, resolve the registry from
CLOUDFLARE_DEV_REGISTRY_PATH, then theunsafeDevRegistryPathconstructor option, then<Cloudflare config directory>/dev-registry/v5. The default is independent of legacy Wrangler directories and is scoped to the Miniflare major version. The Vite v2 beta plugin follows this new default, while current Wrangler andgetPlatformProxy()retain Wrangler's legacy default for compatibility with existing Wrangler sessions. Vite v2 and Wrangler therefore require the sameCLOUDFLARE_DEV_REGISTRY_PATHto discover each other; set it for both processes when mixing these tools.Add
enableDevRegistry: falseto disable registration and discovery explicitly. Shared storage now uses the resolved default without requiring an explicit path. As before, shared storage requires an enabled registry to elect a storage owner, so combiningunsafeEnableSharedStorage: truewithenableDevRegistry: falseis rejected. Miniflare no longer readsMINIFLARE_REGISTRY_PATH; useCLOUDFLARE_DEV_REGISTRY_PATHinstead. ExposeresolveDevRegistryPath()for integrations that also read registry files. Wrangler uses the effective path for its runtime configuration, initial bindings display, and Flagship active-session check, so the canonical override cannot bypass that check. An explicitly disabled Wrangler registry remains disabled.
Patch Changes
-
#16499
f3c13b3Thanks @dinasaur404! - Preserve binding error codes and names in local developmentErrors from remote bindings and from Node.js binding proxies (
getPlatformProxy()andMiniflare#getBindings()) now keep their machine-readable properties, such as Artifacts'codeandnumericCode. Previously these properties were dropped and the error name was folded into the message (for example"ArtifactsError: Repository not found"), so code could only branch on error text during local development.Node.js callers also keep custom error names such as
ArtifactsError. Errors from remote bindings received inside a Worker keep their properties but are still namedError.