Repository navigation
wrangler@3.29.0
Minor Changes
-
#5042
5693d076Thanks @dario-piotrowicz! - feat: add new--env-interfacetowrangler typesAllow users to specify the name of the interface that they want
wrangler typesto generate for theenvparameter, via the new CLI flag--env-interfaceExample:
wrangler types --env-interface CloudflareEnv
generates
interface CloudflareEnv {}
instead of
interface Env {}
-
#5042
5693d076Thanks @dario-piotrowicz! - feat: add newpathpositional argument towrangler typesAllow users to specify the path to the typings (.d.ts) file they want
wrangler typesto generateExample:
wrangler types ./my-env.d.ts
generates a
my-env.d.tsfile in the current directory
instead of creating aworker-configuration.d.tsfile
Patch Changes
-
#5042
5693d076Thanks @dario-piotrowicz! - feat: include command run in thewrangler typescommentIn the comment added to the
.d.tsfile generated bywrangler types
include the command run to generated the file -
#4303
1c460287Thanks @richardscarrott! - fix: allow Pages Functions to import built-in node:* modules, even when not bundling with wrangler -
#4957
50f93bd2Thanks @garrettgu10! - fix: don't strip.pyextensions from Python modules -
#5042
5693d076Thanks @dario-piotrowicz! - fix: makewrangler typeshonor top level config argumentThe
wrangler typescommand currently ignores the-c|--configargument
(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
5693d076Thanks @dario-piotrowicz! - fix: make thewrangler typescommand pick up local secret keys from.dev.varsMake sure that the
wrangler typescommand correctly picks up
secret keys defined in.dev.varsand includes them in the generated
file (marking them as genericstringtypes of course) -
Updated dependencies [
b03db864]:- miniflare@3.20240208.0