github cloudflare/workers-sdk miniflare@4.20260410.0

latest releases: wrangler@4.82.1, @cloudflare/vite-plugin@1.32.1, @cloudflare/vitest-pool-workers@0.14.5...
5 hours ago

Minor Changes

  • #13139 79fd529 Thanks @roerohan! - feat: add Flagship feature flag binding support

    Adds end-to-end support for the Flagship feature flag binding, which allows Workers to evaluate feature flags from Cloudflare's Flagship service. Configure it in wrangler.json with a flagship array containing binding and app_id entries. In local dev, the binding returns default values for all flag evaluations; use "remote": true in the binding to evaluate flags against the live Flagship service.

  • #13392 2589395 Thanks @emily-shen! - Add telemetry to local REST API

    The local REST API (used by the local explorer) now collects anonymous usage telemetry. This respects any existing telemetry preferences, which can be disabled by running the command wrangler telemetry disable.

    This only applies when the dev session is started via Wrangler, and not via the Vite plugin or standalone Miniflare.

    No actual data values, keys, query contents, or resource IDs are collected.

    Event schema:

    {
      "event": "localapi.<route>.<method>", // e.g. localapi.kv.keys.get
      "deviceId": "<uuid>",
      "timestamp": 1234567890,
      "properties": {
        "userAgent": "Mozilla/5.0 ...",
        // Only for localapi.local.workers.get:
        "workerCount": 2,
        "kvCount": 3,
        "d1Count": 1,
        "r2Count": 0,
        "doCount": 1,
        "workflowsCount": 0
      }
    }

    Note: the Local Explorer and corresponding local REST API is still an experimental feature.

Patch Changes

  • #13393 c50cb5b Thanks @dependabot! - Update dependencies of "miniflare", "wrangler"

    The following dependency versions have been updated:

    Dependency From To
    workerd 1.20260409.1 1.20260410.1
  • #13335 5eff8c1 Thanks @KennethRuan! - Return metadata in queue broker response

    The queue broker's /message and /batch endpoints now return a JSON response body containing queue metrics (backlogCount, backlogBytes, oldestMessageTimestamp) instead of an empty response. A new GET /metrics endpoint is also added to support the metrics() API.

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.