Packages

wrangler

4.164.0 · 17 Nov 2026MIT OR Apache-2.049.3M / weekRepositoryHomepagenpmAtom feed

Your version

3.0.0

major17 May 2023Where it was published

3.114.17 is the newest release of 3.x.

In short

5 breaking8 new6 fixed1 internal

  • Breaking

    Rename wrangler publish to wrangler deploy

  • Breaking

    Enable local development with Miniflare 3 and workerd by default

  • Breaking

    Enable persistent storage in local mode by default

  • Breaking

    Remove delegation to locally installed versions

  • Breaking

    Remove unused files from published package

Security

2 advisories affect 3.0.0; 3.114.17 fixes them

Release note

Major Changes

  • Breaking

    Rename wrangler publish to wrangler deploy

    This ensures consistency with other messaging, documentation and our dashboard,
    which all refer to deployments. This also avoids confusion with the similar but
    very different npm publish command. wrangler publish will remain a
    deprecated alias for now, but will be removed in the next major version of Wrangler.

  • Breaking

    Enable local development with Miniflare 3 and workerd by default

    wrangler dev now runs fully-locally by default, using the open-source Cloudflare Workers runtime workerd.
    To restore the previous behaviour of running on a remote machine with access to production data, use the new --remote flag.
    The --local and --experimental-local flags have been deprecated, as this behaviour is now the default, and will be removed in the next major version.

  • Breaking

    Enable persistent storage in local mode by default

    Wrangler will now persist local KV, R2, D1, Cache and Durable Object data
    in the .wrangler folder, by default, between reloads. This persistence
    directory can be customised with the --persist-to flag. The --persist flag
    has been removed, as this is now the default behaviour.

  • Breaking

    Remove delegation to locally installed versions

    Previously, if Wrangler was installed globally and locally within a project,
    running the global Wrangler would instead invoke the local version.
    This behaviour was contrary to most other JavaScript CLI tools and has now been
    removed. We recommend you use npx wrangler instead, which will invoke the
    local version if installed, or install globally if not.

  • Breaking

    Remove unused files from published package

    Specifically, the src and miniflare-config-stubs directories have been removed.

Minor Changes

  • Support outbounds for dispatch_namespace bindings

  • Warn when a new major version is available

  • Add warning when trying to use wrangler dev inside a WebContainer

  • Support tail_consumers in script upload

  • Support for Constellation bindings

    Added support for a new type of safe bindings called "Constellation"
    that allows interacting with uploaded models in the context of these
    projects.

    [[constellation]]
    binding = 'AI'
    project_id = '9d478427-dea6-4988-9b16-f6f8888d974c'
  • Support for Browser Workers

    These bindings allow one to use puppeteer to control a browser
    in a worker script.

Patch Changes

  • _worker.js/ directory support for dynamically imported chunks in wrangler pages dev

  • Ensure pages _routes.json emulation in dev command handles .s and *s

    Fixes #3184

  • Fix local registry server closed

    Closes #1920. Sometimes start the local dev server will kill
    the devRegistry server so that the devRegistry server can't be used. We can listen the devRegistry server close event
    and reset server to null. When registerWorker is called, we can check if the server is null and start a new server.

  • Make it possible to create a D1 database backed by the experimental backend, and make d1 execute's batch size configurable

    With this PR, users will be able to run wrangler d1 create <NAME> --experimental-backend to create new D1 dbs that use an experimental backend. You can also run wrangler d1 migrations apply <NAME> experimental-backend to run migrations against an experimental database.

    On top of that, both wrangler d1 migrations apply <NAME> and wrangler d1 execute <NAME> now have a configurable batch-size flag, as the experimental backend can handle more than 10000 statements at a time.

  • Constellation command help

    Changed name to projectName in some Constellation commands that interacted with projects. Also added the possibility to specify a model description when uploading it.

  • Add message for when wrangler tail exits sampling mode

  • (alpha) - make it possible to give D1 a hint on where it should create the database

  • _worker.js/ directory support for D1 bindings

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.