Repository navigation
chore(deps): update cloudflare worker toolchain - #548
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
Code reviewFound 1 issue:
Checked for bugs and CLAUDE.md compliance. I did not run CI or the tests myself. 🤖 Generated with Claude Code |
33242ec to
4ed9bd6
Compare
71d79f9 to
15db498
Compare
15db498 to
0888517
Compare
The toolchain bump moves workerd from 1.20261104.1 to 1.20261123.1, and `wrangler types --check` compares that stamp, so `types:check` fails inside preview:test without a regen. Made with `pnpm run types:sync` (wrangler types + vp check --fix). The config hash is unchanged; the rest of the diff is the new workerd's runtime types, mostly reordered declarations, not formatter noise. Checked on this branch: one wrangler (4.167.0), one miniflare and one workerd in the lockfile; `pnpm preview:test` green; `pnpm run verify:lint` green; `pnpm peers check` clean; and `wrangler deploy --dry-run --strict` of the app Worker succeeds with 4.167.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
The lockfile conflicted with #550 (pnpm 12.23.0 writes different peer suffixes). Resolved by regenerating it on main with pnpm 12.23.0: a targeted `pnpm --filter @fmw/preview-worker update wrangler@4.167.0 @cloudflare/vitest-plugin@1.9.1`, then restoring the package.json specifiers so the change stays lockfile-only, then `pnpm install`. The added and removed package entries are exactly the set Renovate's own lockfile diff had. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ
The worker types conflicted with #548's workerd stamp. Resolved by taking main's file and re-running `pnpm run types:sync`, which leaves only the config hash and FACTORIO_VERSION 2.1.25 differing from main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ
* Docs: the vitest plugin no longer pins wrangler (since 1.9.1, #548) @cloudflare/vitest-plugin 1.9.1 depends on miniflare directly and declares vitest 5.1.1 exactly as a peer; through 1.6.0 it pinned an exact wrangler. CLAUDE.md and the renovate.json5 group comment still gave the old reason. The pair still moves together, because both pull in miniflare and workerd, and the one-copy check now greps all three. renovate.json5 validated with renovate-config-validator. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ * Docs: also list full lockfile keys to catch a second peer context (CodeRabbit on #572) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
1.6.0→1.9.14.158.0→4.167.0Regenerate the worker types on this branch BEFORE merging - this PR cannot go green without it. A wrangler bump moves
workerd, andwrangler types --checkcompares that version as well as the config hash, sotypes:checkfails insidepreview:testinside the requiredverifycheck. Runpnpm run types:syncand commit the result. That script iswrangler types && vp check --fixtogether, and the formatter half is not optional - a rawwrangler typesburies the real one-line change in a whole-file whitespace diff (25,411 lines vs 1, measured on #169).Release Notes
cloudflare/workers-sdk (@cloudflare/vitest-plugin)
v1.9.1Compare Source
Patch Changes
#17070
657179dThanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-23Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
#16879
5970e6aThanks @edmundhung! - Throw fromreadD1Migrations()when the migrations directory doesn't existPassing options with a missing
migrationsDirused to return no migrations, so a typo silently applied nothing. It now throws "No migrations present at …", as Wrangler does. Passing a directory path that doesn't exist throws the same error. A migrations directory that can't be read now also throws when you pass options, and both forms name the directory in the error.#17108
65f6f33Thanks @Hebilicious! - Resolve the runner'svitest/workerimport from the plugin, not from the project rootThe runner is a virtual module,
/index.mjs, so Vite resolved itsvitest/workerimport from the project root. When the root could not resolvevitest, as in a pnpm workspace whose root package does not depend on it, no test file ran and Workers threwNo such module "vitest/worker". When a parent directory had anothervitestversion, the runner loaded that version and Vitest failed to find the runner. The plugin now resolvesvitest/workerfrom its own package, so the runner uses the same Vitest as the pool.Updated dependencies [
657179d,657179d,7afc49c,086706d,5b45f32,00413bb,5bc7dba,086706d]:v1.9.0Compare Source
Minor Changes
#16174
629f135Thanks @james-elicx! - Remove the dependency onwranglerThe Vitest plugin no longer depends on
wrangler. Reading the Wrangler configuration file, generating Miniflare options, loading local variables and serving the PagesASSETSbinding now use shared workers-sdk packages that are bundled into the plugin. Installing the plugin no longer installswrangleras well. If your project runs thewranglerCLI (for examplewrangler types), addwranglerto your owndevDependencies.Patch Changes
#17031
95fd4c2Thanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-19Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
#17043
4f5b118Thanks @petebacondarwin! - Update Undici to 7.30.2 to include upstream security fixesThis patch includes six upstream security fixes covering caching, redirects, and Subresource Integrity verification. Update the shared Undici dependency and matching types together so affected packages ship the patched version.
#17035
1b563dbThanks @petebacondarwin! - Fix remote bindings authentication with API tokens scoped to an individual WorkerRemote bindings now create preview sessions through the Worker-scoped endpoint. When the response includes a usable exchange URL, its hostname is used without account-wide Workers subdomain access; otherwise, the existing account subdomain lookup or registration is used. This applies to
getPlatformProxyand remote bindings in Wrangler, the Cloudflare Vite plugin, and the Vitest integration. Tokens still need permission to update the named Worker.Updated dependencies [
8712fc5,95fd4c2,95fd4c2,8f45554,4f5b118,8f45554]:v1.8.5Compare Source
Patch Changes
#17003
3595295Thanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-18Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
#16949
110c162Thanks @edmundhung! - Fail remote RPC binding requests on network errors instead of hangingRemote bindings that connect over RPC treated every network failure, such as being offline, a DNS or TLS error, as a preview reload. The request then waited silently for a reload that never came. These requests now fail with the error, while GET and HEAD requests interrupted by an actual reload are still retried.
#14578
6750663Thanks @penalosa! - FixDynamic requireerrors when importing packages from ES modulesImporting these packages in a Node.js ES module could fail with
Dynamic require of "..." is not supportedwhen a dependency loaded a Node.js built-in. These imports now work without requiring a CommonJS wrapper.Updated dependencies [
24bd3c3,0a4315f,8f26e90,3595295,3595295,f833c8a,6750663,67d7c0a,6750663,110c162,5a6e450,6750663]:v1.8.4Compare Source
Patch Changes
#16974
77b5ca7Thanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-17Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
Updated dependencies [
77b5ca7,77b5ca7,51064e6,5f05841]:v1.8.3Compare Source
Patch Changes
#16946
e97c9f8Thanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-16Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
Updated dependencies [
b219078,d36b39d,db3c071,81e56dd,e97c9f8,e97c9f8,349fc4e,0bf81ac,4335eac,d36b39d]:v1.8.2Compare Source
Patch Changes
#16849
3cea40bThanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-12Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
#16886
63eb6daThanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-13Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
Updated dependencies [
f005593,61eacca,856842e,856842e,3cea40b,63eb6da,3cea40b,63eb6da,3b1b408,c889551,032f8c2,032f8c2]:v1.8.1Compare Source
Patch Changes
#16833
5f539b5Thanks @jamesopstad! - Namecfcommands and settings in remote bindings errorsWhen remote bindings could not authenticate, the error told you to run
wrangler whoami,wrangler logoutandwrangler login. It now namescf auth whoami,cf auth logoutandcf auth login. When a Flagship binding without anidneeded to run remotely, the error named Wrangler'sapp_idsetting and suggestedwrangler flagship apps create. It now namesidand suggestscf flagship apps create.For the Vitest plugin, this applies to projects that load
cloudflare.config.ts. Projects that use a Wrangler configuration file still see the Wrangler commands.#16834
8e57331Thanks @edmundhung! - Fix test files never finishing when a socket read rejects after a Worker handler has answeredPreviously, if a handler finished while a socket was still being read, for example a database client's connection, the read's rejection could leave
vitest runwaiting forever after the tests passed. Vitest now reports the unhandled error and the run ends.Updated dependencies [
8b2a363,5f539b5,dc47e6d,575d136,3626ee8]:v1.8.0Compare Source
Minor Changes
#16682
5966749Thanks @ghostwriternr! - Run the Containers thatcloudflare.config.tsattaches to Durable ObjectsPreviously, projects that load
cloudflare.config.tsthrough theconfigoption ran those Durable Objects without their Containers. The plugin now prepares the Containers' images and runs them, as it does for Wrangler configuration files. Dockerfile and build context paths are relative to the directory that containscloudflare.config.ts.cloudflare.config.tshas no setting that disables local Containers, so, as with the Vite plugin, projects with Container-backed Durable Objects need Docker to run their tests.Patch Changes
#16824
877b249Thanks @jamesopstad! - Move streaming tail consumers toexperimental.streamingTailConsumersincloudflare.config.tsStreaming Tail Workers are now declared in a separate, experimental list instead of with
streaming: trueon atailConsumersentry.tailConsumersnow only lists Tail Workers with atail()handler. This is a breaking change to the experimental config API: move each entry that setstreaming: truetoexperimental.streamingTailConsumers, without thestreamingfield.Fields under
experimentalmay change or be removed without a major version bump. Thewrangler-to-cfcodemod now convertsstreaming_tail_consumerstoexperimental.streamingTailConsumers.#16734
c47cca7Thanks @matingathani! - Fix CommonJS dependencies being loaded as ES modules under Vitest 5 inline projectsA dependency with its own
"type": "commonjs"package.jsonwas treated as an ES module when an earlier.jsfile elsewhere in the project had been classified by the project's"type": "module"package.json. The dependency then failed at import with errors such asCannot set properties of undefinedorexports is not defined. The nearestpackage.jsonnow always decides how a.jsfile is loaded.Updated dependencies [
877b249,69e650c]:v1.7.0Compare Source
Minor Changes
#15695
d437be3Thanks @ghostwriternr! - Run the Containers that the Wrangler configuration attaches to Durable ObjectsPreviously, the plugin disabled Containers, so those Durable Objects ran without
ctx.container. The plugin now builds or pulls the Containers' images before each project's tests run and gives the Durable Objects a realctx.container, so these projects now need Docker. To keep running their tests without Docker, setdev.enable_containerstofalsein the Wrangler configuration, which disables the Containers. Cloudflare-managed registry images are not supported yet.Patch Changes
#16810
cdc970bThanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-10Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
Updated dependencies [
cb9534f,6af492e,cdc970b,cdc970b,4e7e9f1,267dadb,022ee9d,44b39b0,325dc69]:v1.6.1Compare Source
Patch Changes
#16793
fea323aThanks @vicb! - Bumpcapnp-esto 0.0.17This release fixes 3 issues. See the release notes for details.
#16683
6f29f97Thanks @jamesopstad! - Stop persisting account selections made bycfand the Cloudflare Vite and Vitest pluginsProfiles continue to select credentials rather than accounts. If the active credentials can access one account, it is selected automatically. If they can access multiple accounts,
cfand the Vite and Vitest plugins reuse the selection while running but ask again the next time they start. ConfigureaccountIdincloudflare.config.tsor set theCLOUDFLARE_ACCOUNT_IDenvironment variable to avoid repeated prompts.Wrangler's existing persistent account selection remains unchanged.
#16648
56459a5Thanks @dario-piotrowicz! - Update bundled third-party dependencies with known security fixesLocal development and Workers Vitest tests now include security fixes for their bundled dependencies. Local browser rendering also includes security fixes for browser downloads, archive extraction, and proxy support.
Miniflare and Wrangler now require Node.js 22.12.0 or later, matching the supported runtime range of the new browser installer.
#16746
abf924eThanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-06Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
#16792
de10016Thanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-09Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
#15693
307a69aThanks @ghostwriternr! - Dispose Miniflare when a Vitest runtime fails to startPreviously, a Miniflare instance whose startup failed was never disposed, so anything it had already started kept running. If disposal also fails, the original startup error is still reported.
#16699
cd24b27Thanks @matingathani! - Fixvi.mock()factories failing under Vitest 5.1Mock factories in
vi.mock()now work when running tests with Vitest 5.1 and later. Previously, any test file that used a mock factory failed during import withasyncLocalStorage.disable() is not implemented.Updated dependencies [
fea323a,a589d23,56459a5,fe69809,abf924e,de10016,abf924e,de10016,2fb01e7,dee7a1d,dc4e093,cff83d0,3ef2afd,4112820,66bc0d6,cff83d0,9b6582c,c64fdfb,4112820]:cloudflare/workers-sdk (wrangler)
v4.167.0Compare Source
Minor Changes
#17060
fa50abaThanks @petebacondarwin! - Support--env-filein the experimentalcf-wrangler devdelegateWrangler-bundled projects can now use
cf dev -- --env-file ../../.envto load a shared development file outside the project directory without enablingCLOUDFLARE_INCLUDE_PROCESS_ENV. Repeat--env-fileto load multiple files, with later files overriding earlier values.#17093
310633dThanks @for-the-kidz! - Remove thewrangler dispatch-namespace renamecommandRenaming a Workers for Platforms dispatch namespace left the namespace name stored in dispatcher bindings out of date, which could make Workers in the namespace impossible to read or delete by name. The Cloudflare API now rejects requests that change a dispatch namespace's name, so the command has been removed. To use a different name, create a new dispatch namespace and redeploy your Workers to it.
Patch Changes
#17102
1e65920Thanks @samarthyadavv! - Exit with a nonzero status when the Basin SQL service rejects a querywrangler basin sql queryreports the service error and exits with status 1 so shell scripts and CI can detect a rejected query.#17099
fc3d770Thanks @mayanthacreates! - Show that--localis the default in D1 command helpwrangler d1 execute,wrangler d1 export,wrangler d1 migrations applyandwrangler d1 migrations listrun against the local database unless--remoteis passed, but their--helpoutput did not say so. The--localflag description now ends with "(default)".#17070
657179dThanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-23Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
#17070
657179dThanks @dependabot! - Update dependencies of "miniflare", "wrangler"The following dependency versions have been updated:
#17078
b007991Thanks @petebacondarwin! - Recover from missing Worker scripts after an interrupted first deployWhen the Workers API returns a service without a script,
wrangler deployuses the first-deploy flow instead of crashing.wrangler versions uploadtells you to runwrangler deployfirst.#17123
1edd2f4Thanks @petebacondarwin! - Fix intermittent subdomain lookup failures on a Worker's first deployAfter a successful first upload,
wrangler deploycan now read the subdomain settings from the script API if the Worker API does not yet see the new Worker. The normal deploy continues without waiting for the Worker API to catch up.Updated dependencies [
657179d,657179d,b007991,7afc49c,086706d,5b45f32,00413bb,5bc7dba,086706d,5970e6a]:v4.166.0Compare Source
Minor Changes
#16961
bf7568aThanks @dario-piotrowicz! - Show configured trigger targets during experimentalwrangler triggers deploy --dry-runDry runs now print a "Would deploy" summary of routes, custom domains, cron schedules, Queue producers and consumers, Workflows, event triggers, and Email Routing addresses instead of exiting without a summary. Explicitly empty cron schedules and Email Routing addresses are shown as removals. The preview makes no API requests or authentication checks; when workers.dev is enabled, it reports that setting without looking up the account's subdomain.
#16679
be6aa81Thanks @mglewis! - Addimages.url_transformationsto the Wrangler configurationThe
imagesblock now accepts aurl_transformationsobject for controlling/cdn-cgi/image/transformations on requests served by a Worker.enabledis required, andallowed_originsoptionally lists the origins images may be fetched from (use["*"]to allow any origin).bindingis now optional, sourl_transformationscan be configured without an Images binding:{ "images": { "url_transformations": { "enabled": true, "allowed_origins": ["images.example.com"] } } }Like the rest of the
imagesblock,url_transformationsis not inherited by named environments, and must be specified in each environment that needs it.cloudflare.config.tsgains the equivalent setting as a top-levelimagesfield on the Worker, with the Images binding remaining inenv:cf migratecarriesimages.url_transformationsover to this field.This change adds configuration and validation only.
url_transformationsis not supported inpreviews.#14114
dce615cThanks @dario-piotrowicz! - Add--show-diffflag towrangler triggers deployWhen
--show-diffis passed, the command fetches the currently deployed trigger configuration from the remote worker and displays a colored diff against the local configuration before deploying. This covers routes, custom domains, cron schedules, and theworkers_dev/preview_urlssubdomain settings. Route and custom-domain lists are fetched only when that category has local entries to deploy, avoiding unnecessary permission requirements. Queue consumers and event triggers are not compared.The flag also works with
--dry-runto preview these changes without actually deploying. Displaying a diff requires authentication, including during a dry run.Patch Changes
#17031
95fd4c2Thanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-19Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
#17031
95fd4c2Thanks @dependabot! - Update dependencies of "miniflare", "wrangler"The following dependency versions have been updated:
#16961
bf7568aThanks @dario-piotrowicz! - Validate external Workflow settings before updating Worker triggersReject
limits,concurrency,schedules,default_retention, andjurisdictionconfigured on external Workflows before making trigger API calls. This prevents failed deployments from partially updating workers.dev or routes; dry runs reject the same invalid configurations.#17044
56974d4Thanks @petebacondarwin! - Warn when invocation logs are enabled while logs are disabledConfiguration validation now warns when
observability.logs.invocation_logsistrueandobservability.logs.enabledisfalse. Invocation logging remains disabled untilobservability.logs.enabledis set totrue.#17072
3c91a13Thanks @mykcs! - Recover when concurrentwrangler previewbuilds try to create the same Preview name.If another build creates a Preview after the initial lookup, Wrangler now reads the existing Preview and applies the requested Preview settings instead of failing with Cloudflare API error 100338. Other creation errors still fail, and existing Previews are never deleted.
#17081
08eeaf4Thanks @Naapperas! - Wait for a just-uploaded Worker version to become readable during deploysFor a few seconds after a version is uploaded, the Workers API can alternate between returning it and reporting it as not found.
wrangler versions deployfailed on the first not-found read, andwrangler deployfor Durable Object-managed containers gave up after about 2 seconds and reported that the container settings were not fully applied.Both now keep retrying a not-found version for up to about 12 seconds and log a message while they wait. These reads also retry transient API failures, such as server errors, rate limiting, timeouts and network errors, which can wait longer when the API asks for it. Other errors still fail immediately.
#17030
f3f7bbcThanks @cpojer! - Stop running Docker at the end of builds for projects with no ContainersBuilds that write the Build Output Specification ran
docker image lson every build to find image tags left by a previous build, even when the project configured no Containers. On a machine with Docker installed this added about a quarter of a second to each build, and the build waited on the Docker CLI for as long as it took to respond. The lookup is now skipped when the project has no Containers and the build output being replaced had none either. Projects that configure Containers, and the first build after the last Container is removed, still remove previous tags as before.#17043
4f5b118Thanks @petebacondarwin! - Update Undici to 7.30.2 to include upstream security fixesThis patch includes six upstream security fixes covering caching, redirects, and Subresource Integrity verification. Update the shared Undici dependency and matching types together so affected packages ship the patched version.
#17035 [`1
Configuration
📅 Schedule: (in timezone America/Los_Angeles)
* * * * 4,5)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.