github cloudflare/workers-sdk wrangler@3.29.0

latest releases: create-cloudflare@2.32.1, wrangler@3.86.1, @cloudflare/vitest-pool-workers@0.5.27...
8 months ago

Minor Changes

  • #5042 5693d076 Thanks @dario-piotrowicz! - feat: 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 {}
  • #5042 5693d076 Thanks @dario-piotrowicz! - feat: 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

  • #5042 5693d076 Thanks @dario-piotrowicz! - feat: 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

  • #4303 1c460287 Thanks @richardscarrott! - fix: allow Pages Functions to import built-in node:* modules, even when not bundling with wrangler

  • #4957 50f93bd2 Thanks @garrettgu10! - fix: don't strip .py extensions from Python modules

  • #5042 5693d076 Thanks @dario-piotrowicz! - fix: 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

  • #5042 5693d076 Thanks @dario-piotrowicz! - fix: 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)

  • Updated dependencies [b03db864]:

    • miniflare@3.20240208.0

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.