Packages

wrangler

4.151.3 · 20 Oct 2026MIT OR Apache-2.018.1M / weekRepositoryHomepagenpmAtom feed

Latest releases

All 541 releases
  1. 4.151.3

    20 Oct 2026
    • Allow wrangler dev to start module Workers without a default export

      Previously, wrangler dev failed to start module Workers that exported only named entrypoints, such as RPC services, unless an unused default export was added. These Workers now start normally in local development without that workaround.

    • Fetch the remote config diff from the configured compliance region

      When a Worker was last deployed from the dashboard, wrangler deploy and wrangler versions upload download its remote configuration to compare with the local one. These requests ignored the compliance_region field in the Wrangler configuration file and only honoured the CLOUDFLARE_COMPLIANCE_REGION environment variable. A FedRAMP High Worker configured through the config file would send them to api.cloudflare.com instead of api.fed.cloudflare.com, and the deploy would fail with authentication errors. They now use the same compliance region as the rest of the deploy.

    • Fail with an error instead of hanging when local dev requests can't work under Bun

      Bun's fetch() ignores the undici dispatcher that Miniflare routes requests through (oven-sh/bun#39247). Under Bun, createTestHarness()'s server.fetch() and server.getWorker()'s fetch(), email() and scheduled() now throw a UserError, requests to the dev server URL get a 503 naming the cause, and starting remote bindings throws a UserError. Each of these used to hang with no error. server.getWorker().getEnv() and getExport() keep working under Bun.

  2. 4.151.2

    19 Oct 2026

    Only updates a dependency:miniflare 5.20261019.0-beta

  3. 4.151.1

    16 Oct 2026
    • Keep remote dev sessions alive through transient network failures

      wrangler dev --remote and getPlatformProxy() refresh their preview token before it expires, but a single failed refresh — for example while the network was briefly down — stopped refreshing for good, leaving the session broken until restart. A failed refresh now retries every minute until it succeeds. Rebuilds also no longer push the refresh past the session's expiry.

    • Fix wrangler rollback reporting success after the changed secrets confirmation is declined

      Previously, declining the "The following secrets have changed…" confirmation printed "Aborting rollback..." and then also printed a success message and the target version as the "Current Version ID", even though no deployment was made and the original version was still live. Wrangler now stops after aborting, so the output matches what is actually deployed.

    • Hide the wrangler dev hotkey bar when Turborepo does not forward input

  4. 4.151.0

    14 Oct 2026
    • Include source maps by default in wrangler build --experimental-cf-build-output

      Build Output now matches wrangler deploy and wrangler versions upload, which upload source maps by default, so Workers built for tools like cf get stack traces that point at the original source. Source maps that can't be resolved are skipped rather than failing the build. Set upload_source_maps = false to opt out.

    • Support local D1 queries through the experimental d1_binding_jsrpc compatibility flag

      Local D1 bindings now implement the RPC query backend used by D1Database.query() and prepared-statement methods when the flag is enabled. Queries reuse local SQLite execution, including transactional batches, execution metadata, and session bookmarks, while bindings without the flag continue to use HTTP. Update the bundled workerd runtime to 1.20261012.1 and align the default compatibility date with that release.

  5. 4.150.0

    13 Oct 2026
    • Upload source maps by default for wrangler deploy, wrangler versions upload and wrangler preview

      When upload_source_maps isn't set in config or via --upload-source-maps, Wrangler now generates and uploads source maps so stack traces in logs and wrangler tail point at your original source without extra setup. In this default mode, source maps that can't be resolved (for example inline data: maps or missing .map files from a custom build) are skipped rather than failing the upload. Setting upload_source_maps = true keeps the existing strict behaviour, and upload_source_maps = false (or --no-upload-source-maps for deploy and versions upload) opts out.

      wrangler build --experimental-cf-build-output is unchanged and still only includes source maps when upload_source_maps = true.

    • Stop wrangler deploy, wrangler versions upload and wrangler preview in projects that build for the Cloudflare CLI (cf)

      If your project builds through cf, deploying it with Wrangler reads a different configuration, so it could update the wrong Worker or fail without explaining why. These commands now stop before uploading anything, name the .cloudflare/output directory they found, and tell you to run cf deploy instead. If that directory is just left over from an earlier build, deleting it restores the Wrangler workflow.

      Ordinary Wrangler projects are unaffected, and --dry-run still works on deploy and versions upload. This is a new guard for the experimental Build Output Specification rather than a fix, and it gives three stable commands a failure mode they did not have before, so it is a minor.

    • Clarify the Worker not found error during CI deploy validation

      Wrangler now reports that the configured Worker could not be found in the account instead of incorrectly describing the failure as a name mismatch.

Dependency tracking · free for 3 projects

Know when your own dependencies move

wrangler had 1 security advisory in the last 12 months. Inlinr emails you the day one touches a project of yours, with the version that fixes it.

  • Advisories reach you

    An email when a critical or high advisory affects a project, before the next install.

  • Upgrades checked first

    Peer ranges, Node, ESM-only and types changes read before you bump.

  • Only what matters

    Majors and breaking notes stay; patches and sibling bumps fold into one line.

How dependency tracking works

Registry facts last checked 21 Oct 2026. Releases and advisories last read 21 Oct 2026.