Change8

miniflare@4.20260714.0

📦 cloudflare-workersView on GitHub →
2 features🐛 5 fixes🔧 2 symbols

Summary

This release introduces a new `handleUncaughtError` option for observing uncaught Worker exceptions and adds Durable Object storage access to `createTestHarness()` for easier testing. Several performance improvements and bug fixes are also included, particularly around asset serving, routing, and local development teardown.

✨ New Features

  • Add a `handleUncaughtError` shared option that receives uncaught Worker exceptions. Embedders can now pass `handleUncaughtError: (error: Error) => void` to observe that revived error programmatically.
  • Add Durable Object storage access to `createTestHarness()`. You can now execute SQL against a SQLite-backed Durable Object to seed or assert the storage state.

🐛 Bug Fixes

  • Improve asset serving performance by removing an unnecessary internal dispatch hop. Asset requests and RPC calls now avoid an extra internal forwarding layer, reducing latency.
  • Keep reporting uncaught Worker errors when a stack frame's file URL has no local path. Source mapping now degrades to the unmapped stack and the pretty page falls back to a plain stack response instead.
  • Improve routing performance for Workers with assets. Reduce request handling latency by streamlining the router Worker's request path.
  • Prevent local Browser Rendering teardown from hanging when Chrome does not exit. Miniflare now bounds graceful Chrome shutdown and forcefully terminates the browser process tree when needed, preventing disposal from waiting indefinitely.
  • Prevent concurrent Miniflare instances from deleting each other's temporary email sessions. Email session cleanup now removes only the current instance's session directory and leaves the shared parent intact, avoiding startup failures when multiple local runtimes use the same project.

Affected Symbols