github cloudflare/workers-sdk miniflare@5.20261103.0-beta

Minor Changes

  • #16651 d2eda1c Thanks @petebacondarwin! - Remove deprecated shared tooling helper exports from Miniflare v5

    Breaking changes

    Miniflare v5 no longer exports getNodeCompat, NodeJSCompatMode, or getFreshSourceMapSupport. Add a dependency on @cloudflare/workers-utils and 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 2750917 Thanks @jeffa5! - Support weighted increments with delta in the emulated Ratelimit binding

    limit() now accepts an optional delta, 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,
    });

    delta defaults to 1. As in production, the decision is based on the count before the call, so a call is allowed while any headroom remains even if its delta takes the count past the limit, and a rejected call is not counted. Invalid values (zero, negative, non-numeric or larger than a uint32) throw the same errors as production. Previously local development rejected delta with bad rate limit options: [delta].

Patch Changes

  • #16670 b14b9dc Thanks @dependabot! - Update DEFAULT_COMPAT_DATE to 2026-11-03

    Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.

  • #16670 b14b9dc Thanks @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

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.