Releases: cloudflare/workers-sdk
wrangler@3.15.0
Minor Changes
-
#4201
0cac2c46
Thanks @penalosa! - Callout--minify
when script size is too large -
#4209
24d1c5cf
Thanks @mrbbot! - fix: suppress compatibility date fallback warnings if nowrangler
update is availableIf a compatibility date greater than the installed version of
workerd
was
configured, a warning would be logged. This warning was only actionable if a new
version ofwrangler
was available. The intent here was to warn if a user set
a new compatibility date, but forgot to updatewrangler
meaning changes
enabled by the new date wouldn't take effect. This change hides the warning if
no update is available.It also changes the default compatibility date for
wrangler dev
sessions
without a configured compatibility date to the installed version ofworkerd
.
This previously defaulted to the current date, which may have been unsupported
by the installed runtime. -
#4135
53218261
Thanks @Cherry! - feat: resolve npm exports for file importsPreviously, when using wasm (or other static files) from an npm package, you would have to import the file like so:
import wasm from "../../node_modules/svg2png-wasm/svg2png_wasm_bg.wasm";
This update now allows you to import the file like so, assuming it's exposed and available in the package's
exports
field:import wasm from "svg2png-wasm/svg2png_wasm_bg.wasm";
This will look at the package's
exports
field inpackage.json
and resolve the file usingresolve.exports
. -
#4232
69b43030
Thanks @romeupalos! - fix: usezone_name
to determine a zone when the pattern is a custom hostnameIn Cloudflare for SaaS, custom hostnames of third party domain owners can be used in Cloudflare.
Workers are allowed to intercept these requests based on the routes configuration.
Before this change, the same logic used bywrangler dev
was used inwrangler deploy
, which caused wrangler to fail with:✘ [ERROR] Could not find zone for [partner-saas-domain.com]
-
#4198
b404ab70
Thanks @penalosa! - When uploading additional modules with your worker, Wrangler will now report the (uncompressed) size of each individual module, as well as the aggregate size of your Worker
Patch Changes
-
#4215
950bc401
Thanks @RamIdeas! - fix various logging of shell commands to correctly quote args when needed -
#4274
be0c6283
Thanks @jspspike! - chore: bumpminiflare
to3.20231025.0
This change enables Node-like
console.log()
ing in local mode. Objects with
lots of properties, and instances of internal classes likeRequest
,Headers
,
ReadableStream
, etc will now be logged with much more detail. -
#4127
3d55f965
Thanks @mrbbot! - fix: store temporary files in.wrangler
As Wrangler builds your code, it writes intermediate files to a temporary
directory that gets cleaned up on exit. Previously, Wrangler used the OS's
default temporary directory. On Windows, this is usually on theC:
drive.
If your source code was on a different drive, our bundling tool would generate
invalid source maps, breaking breakpoint debugging. This change ensures
intermediate files are always written to the same drive as sources. It also
ensures unused build outputs are cleaned up when runningwrangler pages dev
.This change also means you no longer need to set
cwd
and
resolveSourceMapLocations
in.vscode/launch.json
when creating anattach
configuration for breakpoint debugging. Your.vscode/launch.json
should now
look something like...{ "configurations": [ { "name": "Wrangler", "type": "node", "request": "attach", "port": 9229, // These can be omitted, but doing so causes silent errors in the runtime "attachExistingChildren": false, "autoAttachChildProcesses": false } ] }
-
#4189
05798038
Thanks @gabivlj! - Move helper cli files of C3 into @cloudflare/cli and make Wrangler and C3 depend on it -
#4235
46cd2df5
Thanks @mrbbot! - fix: ensureconsole.log()
s during startup are displayedPreviously,
console.log()
calls before the Workers runtime was ready to
receive requests wouldn't be shown. This meant any logs in the global scope
likely weren't visible. This change ensures startup logs are shown. In particular,
this should fix Remix's HMR,
which relies on startup logs to know when the Worker is ready.
create-cloudflare@2.6.2
Patch Changes
-
#4243
bfb66aa0
Thanks @dependabot! - C3: Bumpedcreate-vue
from3.7.5
to3.8.0
-
#4244
5c81d34d
Thanks @dependabot! - C3: Bumpedcreate-qwik
from1.2.13
to1.2.14
-
#4246
67c4c2c0
Thanks @dependabot! - C3: Bumpedgatsby
from5.12.7
to5.12.8
-
#4259
b5e62b93
Thanks @dependabot! - C3: Bumpedcreate-hono
from0.3.1
to0.3.2
-
#4268
77820a22
Thanks @dependabot! - C3: Bumpedcreate-solid
from0.3.7
to0.3.8
-
#4215
950bc401
Thanks @RamIdeas! - fix various logging of shell commands to correctly quote args when needed -
#4189
05798038
Thanks @gabivlj! - Move helper cli files of C3 into @cloudflare/cli and make Wrangler and C3 depend on it -
#4200
773e2a8c
Thanks @dario-piotrowicz! - fix the generation of invalid/incorrect scripts for Next.js applications
wrangler@3.14.0
Minor Changes
-
#4204
38fdbe9b
Thanks @matthewdavidrodgers! - Support user limits for CPU timeUser limits provided via script metadata on upload
Example configuration:
[limits] cpu_ms = 20000
-
#2162
a1f212e6
Thanks @WalshyDev! - add support for service bindings inwrangler pages dev
by providing the
new--service
|-s
flag which accepts an array ofBINDING_NAME=SCRIPT_NAME
whereBINDING_NAME
is the name of the binding andSCRIPT_NAME
is the name
of the worker (as defined in itswrangler.toml
), such workers need to be
running locally with withwrangler dev
.For example if a user has a worker named
worker-a
, in order to locally bind
to that they'll need to open two different terminals, in each navigate to the
respective worker/pages application and then run respectivelywrangler dev
and
wrangler pages ./publicDir --service MY_SERVICE=worker-a
this will add the
MY_SERVICE
binding to pages' workerenv
object.Note: additionally after the
SCRIPT_NAME
the name of an environment can be specified,
prefixed by an@
(as in:MY_SERVICE=SCRIPT_NAME@PRODUCTION
), this behavior is however
experimental and not fully properly defined.
create-cloudflare@2.6.1
Patch Changes
-
#4213
039acfd4
Thanks @dependabot! - C3: Bumpedcreate-solid
from0.3.6
to0.3.7
-
#4217
b9687231
Thanks @dependabot! - C3: Bumpedcreate-astro
from4.2.1
to4.3.0
-
#4190
c2457cb4
Thanks @dario-piotrowicz! - Set the proper compatibility date for web applications (instead of using the current date) -
#4216
17c59f29
Thanks @dario-piotrowicz! - amend summary showing incorrect cd instruction for projects in nested paths -
#4220
2b4d9def
Thanks @dario-piotrowicz! - don't retry the project creation multiple times when it fails because the project's name is already used
wrangler@3.13.2
Patch Changes
-
#4206
8e927170
Thanks @1000hz! - chore: bumpminiflare
to3.20231016.0
-
#4144
54800f6f
Thanks @a-robinson! - Log a warning when using a Hyperdrive binding in local wrangler dev
create-cloudflare@2.6.0
Minor Changes
- #4116
5ff0ca02
Thanks @jculvey! - Replaces the "prestart" and "predeploy" scripts when using Angular to better support pnpm
Patch Changes
-
#4099
4deda525
Thanks @dependabot! - C3: Bumpedgatsby
from5.12.4
to5.12.5
-
#4141
9b2578aa
Thanks @dependabot! - C3: Bumpedcreate-svelte
from5.1.0
to5.1.1
-
#4184
616b6610
Thanks @dependabot! - C3: Bumpedcreate-hono
from0.2.6
to0.3.1
-
#4191
4b70c88c
Thanks @dependabot! - C3: Bumpedcreate-remix
from2.0.1
to2.1.0
-
#4197
9095c6ac
Thanks @dependabot! - C3: Bumpedgatsby
from5.12.5
to5.12.7
-
#4177
2162501a
Thanks @jculvey! - Relax name validation for projects created with--existing-script
flag
@cloudflare/pages-shared@0.10.1
Patch Changes
- #4206
8e927170
Thanks @1000hz! - chore: bumpminiflare
to3.20231016.0
wrangler@3.13.1
wrangler@3.13.0
Minor Changes
-
#4161
403bc25c
Thanks @RamIdeas! - Fix wrangler generated types to match runtime exports -
#3960
c36b78b4
Thanks @RamIdeas! - Refactoring the internals of wrangler dev servers (includingwrangler dev
,wrangler dev --remote
andunstable_dev()
).There are no changes required for developers to opt-in. Improvements include:
- fewer 'address in use' errors upon reloads
- upon config/source file changes, requests are buffered to guarantee the response is from the new version of the Worker