miniflare
4.20260730.0 · 30 Jul 2026MIT57.5M / weekRepositoryHomepagenpmAtom feed
4.20260730.0 is the newest release of 4.x.
In short
2 new1 fixed2 internal
Release note
Minor Changes
Add Workflows test handlers in vitest-pool-workers to get the Workflow instance output and error:
getOutput(): Returns the output of the successfully completed Workflow instance.getError(): Returns the error information of the errored Workflow instance.
Example:
// First wait for the workflow instance to complete: await expect( instance.waitForStatus({ status: "complete" }) ).resolves.not.toThrow(); // Then, get its output const output = await instance.getOutput(); // Or for errored workflow instances, get their error: await expect( instance.waitForStatus({ status: "errored" }) ).resolves.not.toThrow(); const error = await instance.getError();
Patch Changes
Fix intermittent "Fetch failed" errors in Miniflare tests on Windows
Miniflare tests would occasionally fail with "Fetch failed" errors (particularly on Windows CI runners) due to race conditions between undici's Keep-Alive mechanism and the Miniflare server closing idle connections. Miniflare now configures the Dispatcher to prevent connection reuse and eliminate these race condition errors.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.