Minor Changes
-
#10349
d54d8b7
Thanks @edmundhung! - feat: addunsafeHandleDevRegistryUpdate
callback option to MiniflareAdds a new option to Miniflare that allows users to register a callback function that gets invoked whenever the dev registry is updated with changes to external services that the current Worker depends on.
This callback is useful for scenarios where you need to react to changes in bound services, such as updating bindings tables or reloading configurations when dependent Workers are added, removed, or modified in the dev registry.
const mf = new Miniflare({ // ... other options unsafeHandleDevRegistryUpdate(registry) { console.log("Dev registry updated:", registry); // Handle registry updates (e.g., reprint bindings, reload config) }, });
Patch Changes
- #10306
ae0c806
Thanks @ruifigueira! - Browser Rendering for local development now uses @puppeteer/browsers package instead of puppeteer