Repository navigation
wrangler@2.2.0
Minor Changes
-
#2107
511943e9Thanks @celso! - fix: D1 execute and backup commands improvements- Better and faster handling when importing big SQL files using execute --file
- Increased visibility during imports, sends output with each batch API call
- Backups are now downloaded to the directory where wrangler was initiated from
-
#2130
68f4fa6fThanks @matthewdavidrodgers! - feature: Add warnings around bundle sizes for large scriptsPrints a warning for scripts > 1MB compressed, encouraging smaller
script sizes. This warning can be silenced by setting the
NO_SCRIPT_SIZE_WARNING env variableIf a publish fails with either a script size error or a validator error
on script startup (CPU or memory), we print out the largest 5
dependencies in your bundle. This is accomplished by using the esbuild
generated metafile. -
#2064
49b6a484Thanks @jbw1991! - Adds support for Cloudflare Queues. Adds new CLI commands to configure Queues. Queue producers and consumers can be defined in wrangler.toml. -
#1982
5640fe88Thanks @penalosa! - Enable support forwrangler devon Workers behind Cloudflare Access, utilisingcloudflared. If you don't havecloudflaredinstalled, Wrangler will prompt you to install it. If you do, then the first time you start developing usingwrangler devyour default browser will open with a Cloudflare Access prompt.
Patch Changes
-
#2134
b164e2d6Thanks @jspspike! - Added current version to publish output -
#2127
0e561e83Thanks @JacobMGEvans! - Fix: Missing Worker name using--from-dash
Added the--from-dashname as a fallback when no name is provided in thewrangler initcommand.
Additionally added a checks to thestd.outto ensure that the name is provided.resolves #1853
-
#2073
1987a79dThanks @mrbbot! - If--env <env>is specified, we'll now check.env.<env>/.dev.vars.<env>first.
If they don't exist, we'll fallback to.env/.dev.vars. -
#2072
06aa6121Thanks @mrbbot! - Fixed importing installed npm packages with the same name as Node built-in
modules ifnode_compatis disabled. -
#2124
02ca556cThanks @JacobMGEvans! - Computing the name from binding response
Now thevarswill be computed, example:
[var.binding.name]: var.binding.textthis will resolve the issue that was occurring with
generating a TOML with incorrect fields for thevarskey/value pair.resolves #2048