Packages

wrangler

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

Your version

4.54.0

11 Dec 2025Where it was published

4.167.0 is the newest release of 4.x.

In short

6 new2 fixed1 internal

Security

1 advisory affects 4.54.0; 4.59.1 fixes them

Release note

Minor Changes

  • Enable using ctx.exports with containers

    You can now use containers with Durable Objects that are accessed via ctx.exports.

    Now your config file can look something like this:

    {  
        "name": "container-app",  
        "main": "src/index.ts",  
        "compatibility_date": "2025-12-01",  
        "compatibility_flags": ["enable_ctx_exports"], // compat flag needed for now.  
        "containers": [  
            {  
                "image": "./Dockerfile",  
                "class_name": "MyDOClassname",  
                "name": "my-container"  
            },  
        ],  
        "migrations": [  
            {  
                "tag": "v1",  
                "new_sqlite_classes": ["MyDOClassname"],  
            },  
        ],  
        // no need to declare your durable object binding here  
    }

    Note that when using ctx.exports, where you previously accessed a Durable Object via something like env.DO, you should now access with ctx.exports.MyDOClassname.

    Refer to the docs for more information on using ctx.exports.

  • Wrangler will no longer try to add additional configuration to projects using @cloudflare/vite-plugin when deploying or running wrangler setup

  • When a Vite project is detected, install @cloudflare/vite-plugin

  • Support Analog projects in autoconfig

  • Add containers ssh command

Patch Changes

  • Prevent reporting SQLite error from wrangler d1 execute to Sentry

  • Add extra logging to user log-in flow for diagnosing failed login requests

  • Remove image validation for containers on wrangler deploy.

    Internal customers are able to use additional image registries and will run into failures with this validation. Image registry validation will now be handled by the API.

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.