Minor Changes
-
#16651
d2eda1cThanks @petebacondarwin! - Remove deprecated shared tooling helper exports from Miniflare v5Breaking changes
Miniflare v5 no longer exports
getNodeCompat,NodeJSCompatMode, orgetFreshSourceMapSupport. Add a dependency on@cloudflare/workers-utilsand replace the Miniflare imports with:import { getNodeCompat, type NodeJSCompatMode, } from "@cloudflare/workers-utils/node-compat"; import { getFreshSourceMapSupport } from "@cloudflare/workers-utils/sourcemap";
These focused entry points support compatibility checks and isolated source-map handling without loading Miniflare or resolving the workerd binary. The helpers retain their behavior, and Miniflare continues to use the shared source-map helper internally.
-
#16650
2750917Thanks @jeffa5! - Support weighted increments withdeltain the emulated Ratelimit bindinglimit()now accepts an optionaldelta, matching production, so a single call can count for more than one request:const { success } = await env.MY_RATE_LIMITER.limit({ key: userId, delta: tokens, });
deltadefaults to1. As in production, the decision is based on the count before the call, so a call is allowed while any headroom remains even if itsdeltatakes the count past the limit, and a rejected call is not counted. Invalid values (zero, negative, non-numeric or larger than auint32) throw the same errors as production. Previously local development rejecteddeltawithbad rate limit options: [delta].
Patch Changes
-
#16670
b14b9dcThanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-03Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
-
#16670
b14b9dcThanks @dependabot! - Update dependencies of "miniflare", "wrangler"The following dependency versions have been updated:
Dependency From To @cloudflare/workers-types ^5.20261102.1 ^5.20261103.1 workerd 1.20261102.1 1.20261103.1