Repository navigation
miniflare@5.20261201.0-beta
Pre-releasePatch Changes
-
#17346
8a8df5cThanks @DEY-code-007! - Bumpwsfrom 8.21.0 to 8.23.1 to address GHSA-37g9-w4hg-h9qrGHSA-37g9-w4hg-h9qr (high severity) reports a memory-exhaustion DoS in
ws@>=8.0.0 <8.23.0: a malicious peer can flood the other side with ping frames while not reading, forcing it to buffer the automatic pong replies until the process runs out of memory. The fix shipped in ws@8.23.0 (commitace7248f, which also adds themaxPendingAutoPongsoption); this bumps the workspace catalog entry to the latest patch release, 8.23.1, so thatminiflare,wrangler,@cloudflare/vite-pluginand@cloudflare/deploy-helpersall pick up the patched version. Becauseminiflarepinswsexactly, downstream projects cannot clear thenpm auditfinding with a lockfile update alone. -
#17334
265616bThanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-12-01Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
-
#17334
265616bThanks @dependabot! - Update dependencies of "miniflare", "wrangler"The following dependency versions have been updated:
Dependency From To @cloudflare/workers-types ^5.20261129.1 ^5.20261201.1 workerd 1.20261129.1 1.20261201.1 -
#17242
77a77a1Thanks @petebacondarwin! - Apply the headers of every_headersblock for a repeated Workers Static Assets pathWorkers Static Assets local development now merges repeated path blocks like production: repeated header names are combined in file order, and
!unsets are applied before all assignments for that path, even when the unset appears in a later block. Pages still uses only the last valid block for a repeated path, matching hosted Pages.For Workers Static Assets, when multiple distinct paths match a request, local development now applies those rules in sorted path-key order rather than file order, matching the production deploy pipeline. This also applies to the experimental
_headerssupport in Vite dev, so it agrees with Vite preview. Pages retains its existing ordering for distinct paths. -
#17213
1f95502Thanks @hyfdev! - Keep theContent-Encodingheader on compressed responses to rejected WebSocket upgradesMiniflare doesn't decompress these responses, but
dispatchFetch()still removed the header, so clients couldn't decode the body. -
#17213
1f95502Thanks @hyfdev! - Fix an uncaughtECONNRESETwhen Miniflare shuts down or restarts after reading a rejected WebSocket upgrade responseReading the body of a non-101 response to a WebSocket upgrade left Miniflare's connection to the local runtime open with no
errorlistener, so a reset from the runtime, for example ondispose()or a dev server restart, threw. The connection is now closed once the body has been read. -
#17086
9df88dcThanks @iglesiasbrandon! - Make local Workflowcreate()andcreateBatch()errors match productionIn local development,
create()andcreateBatch()now reject invalid options, IDs and params as production does, with the same error codes. They reject with a plainErrorwhose message starts with the code, such as(body)or(instance.invalid_id). Previously they threw aWorkflowError, which arrived as anErrorwhose message began withWorkflowError:unless the Worker listed theenhanced_error_serializationcompatibility flag explicitly.- Invalid options, such as a non-string
id, an unparseableretentionduration or an unknownlocationHint, reject with(body)followed by each problem.createBatch()checks every entry's options before any ID, and accepts zero and negativeretentiondurations, ascreate()and production do. - IDs that are too long, use unsupported characters, or are reserved (
batch,terminate,terminateAll, orcf_followed by 64 lowercase hexadecimal characters) reject with(instance.invalid_id). - Params that Durable Object storage cannot clone, such as functions, RPC targets and streams, no longer create an instance that stays queued forever.
create()rejects with(body) Provided instance parameters are not serializable.createBatch()reports the entry inerrorswith code10002and the ID the instance would have had. An entry whose ID already exists or repeats in the batch is still reported with10405or10415. create(null)creates an instance with a generated ID instead of throwing aTypeError, andcreate({ params: null })gives the Workflow{}as its payload.- The deprecated array form of
createBatch()gets the same checks as the object form. It leaves out entries whose params cannot be stored, as it does entries with an existing or repeated ID.
- Invalid options, such as a non-string