Packages

wrangler

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

Your version

3.29.0

22 Feb 2024Where it was published

3.114.17 is the newest release of 3.x.

In short

3 new4 fixed1 internal

Security

1 advisory affects 3.29.0; 3.114.17 fixes them

Release note

Minor Changes

  • Add new --env-interface to wrangler types

    Allow users to specify the name of the interface that they want wrangler types to generate for the env parameter, via the new CLI flag --env-interface

    Example:

    wrangler types --env-interface CloudflareEnv

    generates

    interface CloudflareEnv {}

    instead of

    interface Env {}
  • Add new path positional argument to wrangler types

    Allow users to specify the path to the typings (.d.ts) file they want
    wrangler types to generate

    Example:

    wrangler types ./my-env.d.ts

    generates a my-env.d.ts file in the current directory
    instead of creating a worker-configuration.d.ts file

Patch Changes

  • Include command run in the wrangler types comment

    In the comment added to the .d.ts file generated by wrangler types
    include the command run to generated the file

  • Allow Pages Functions to import built-in node:* modules, even when not bundling with wrangler

  • Don't strip .py extensions from Python modules

  • Make wrangler types honor top level config argument

    The wrangler types command currently ignores the -c|--config argument
    (although it is still getting shown in the command's help message). Make
    sure that the command honors the flag.
    Also, if no config file is detected
    present a warning to the user

  • Make the wrangler types command pick up local secret keys from .dev.vars

    Make sure that the wrangler types command correctly picks up
    secret keys defined in .dev.vars and includes them in the generated
    file (marking them as generic string types of course)

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.