Packages

wrangler

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

Your version

4.44.0

21 Oct 2025Where it was published

4.167.0 is the newest release of 4.x.

In short

4 new8 fixed2 internal

Security

1 advisory affects 4.44.0; 4.59.1 fixes them

Release note

Minor Changes

  • Config preview_urls defaults to workers_dev value.

    Originally, we were defaulting config.preview_urls to true, but we
    were accidentally enabling Preview URLs for users that only had
    config.workers_dev=false.

    Then, we set the default value of config.preview_urls to false, but we
    were accidentally disabling Preview URLs for users that only had
    config.workers_dev=true.

    Rather than defaulting config.preview_urls to true or false, we
    default to the resolved value of config.workers_dev. Should result in a
    clearer user experience.

  • Statically replace the value of process.env.NODE_ENV with development for development builds and production for production builds if it is not set. Else, use the given value. This ensures that libraries, such as React, that branch code based on process.env.NODE_ENV can be properly tree shaken.

  • Add params type to Workflow type generation. E.g.

    interface Env {
        MY_WORKFLOW: Workflow<
            Parameters<import("./src/index").MyWorkflow["run"]>[0]["payload"]
        >;
    }
  • Add media binding support

Patch Changes

  • Improve potential errors thrown by startRemoteProxySession by including more information

  • Fix observability.logs.persist being flagged as an unexpected field during the wrangler config file validation

  • Update logs handling to use the new handleStructuredLogs miniflare option

  • When either WRANGLER_OUTPUT_FILE_PATH or WRANGLER_OUTPUT_FILE_DIRECTORY are set
    in the environment, then command failures will append a line to the output file
    encoding the error code and message, if present.

  • Cleanup any running containers again on wrangler dev exit

  • Always load container image into local store during build

    BuildKit supports different build drivers. When using the more modern docker-container driver (which is now the default on some systems, e.g. a standard Docker installation on Fedora Linux), it will not automatically load the built image into the local image store. Since wrangler expects the image to be there (e.g. when calling getImageRepoTags), it will thus fail, e.g.:

    ⎔ Preparing container image(s)...
    [+] Building 0.3s (8/8) FINISHED                                                                                                                                                                                                     docker-container:default
    
    [...]
    
    WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load
    
    ✘ [ERROR] failed inspecting image locally: Error response from daemon: failed to find image cloudflare-dev/sandbox:f86e40e4: docker.io/cloudflare-dev/sandbox:f86e40e4: No such image
    
    

    Explicitly setting the --load flag (equivalent to -o type=docker) during the build fixes this and should make the build a bit more portable without requiring users to change their default build driver configuration.

  • Make Workflows instances list command cursor based

  • Improve the diffing representation for wrangler deploy (run under --x-remote-diff-check)

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.