Packages

wrangler

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

Your version

4.61.1

29 Jan 2026Where it was published

4.167.0 is the newest release of 4.x.

In short

4 fixed3 internal

Release note

Patch Changes

  • Fixed Durable Object missing migrations warning message.

    If a Workers project includes some durable_objects in it but no migrations we show a warning to the user to add migrations to their config. However, this warning recommended new_classes for their migrations, but we instead now recommend all users use new_sqlite_classes instead.

  • Allow d1 execute, d1 export, and d1 migrations to work locally without database_id in config.

  • Prevent wrangler logout from failing when the Wrangler configuration file is invalid

    Previously, if your wrangler.toml or wrangler.json file contained syntax errors or invalid values, the wrangler logout command would fail. Now, configuration parsing errors are caught and logged at debug level, allowing you to log out regardless of the state of your configuration file.

  • Sanitize commands and arguments in telemetry to prevent accidentally capturing sensitive information.

    Changes:

    • Renamed telemetry fields from command/args to sanitizedCommand/sanitizedArgs to distinguish from historical fields that may have contained sensitive data in older versions

    • Command names now come from command definitions rather than user input, preventing accidental capture of sensitive data pasted as positional arguments

    • Sentry breadcrumbs now use the safe command name from definitions

    • Argument values are only included if explicitly allowed via COMMAND_ARG_ALLOW_LIST

    • Argument keys (names) are always included since they come from command definitions, not user input

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.