Packages

wrangler

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

Your version

3.57.0

17 May 2024Where it was published

3.114.17 is the newest release of 3.x.

In short

1 security1 deprecated1 new3 fixed

  • Security

    Update undici to the latest version to avoid a potential vulnerability

  • Deprecated

    Deprecate usage of the deployment object on the unsafe metadata binding in favor of the new version_metadata binding.

Security

1 advisory affects 3.57.0; 3.114.17 fixes them

Release note

Minor Changes

  • Improved d1 execute --file --remote performance & added support for much larger SQL files within a single transaction.

  • Show feedback on Pages project deployment failure

    Today, if uploading a Pages Function, or deploying a Pages project fails for whatever reason, there’s no feedback shown to the user. Worse yet, the shown message is misleading, saying the deployment was successful, when in fact it was not:

    ✨ Deployment complete!

    This commit ensures that we provide users with:

    • the correct feedback with respect to their Pages deployment

    • the appropriate messaging depending on the status of their project's deployment status

    • the appropriate logs in case of a deployment failure

  • Display correct global flags in wrangler pages --help

    Running wrangler pages --help will list, amongst others, the following global flags:

    -j, --experimental-json-config  
    -c, --config  
    -e, --env  
    -h, --help  
    -v, --version

    This is not accurate, since flags such as --config, --experimental-json-config, or env are not supported by Pages.

    This commit ensures we display the correct global flags that apply to Pages.

  • Deprecated

    Deprecate usage of the deployment object on the unsafe metadata binding in favor of the new version_metadata binding.

    If you're currently using the old binding, please move over to the new version_metadata binding by adding:

    [version_metadata]
    binding = "CF_VERSION_METADATA"

    and updating your usage accordingly. You can find the docs for the new binding here: developers.cloudflare.com/workers/runtime-apis/…

Patch Changes

  • Security

    Update undici to the latest version to avoid a potential vulnerability

  • Do not allow non-string values in bulk secret uploads

    Prior to Wrangler 3.4.0 we displayed an error if the user tried to upload a
    JSON file that contained non-string secrets, since these are not supported
    by the Cloudflare backend.

    This change reintroduces that check to give the user a helpful error message
    rather than a cryptic workers.api.error.invalid_script_config error code.

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.