Repository navigation
Update cloudflare worker toolchain - #506
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. (Lockfile-only Renovate bump. The |
26b41fb to
c6bfee3
Compare
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. Note: this is a lockfile-only Renovate bump that moves |
f623f1c to
ab5bb97
Compare
Code reviewNo code issues found. Checked for bugs and CLAUDE.md compliance. The diff is One pending item, already named in the PR description: this bumps |
ab5bb97 to
eae48bf
Compare
eae48bf to
8f513cc
Compare
The wrangler bump moves workerd to 1.20261104.1, which invalidates the stamp that `wrangler types --check` reads. Regenerated with `pnpm run types:sync`, as the group's prBodyNotes ask. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1aFcJ4CmpGhDgPionn
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
1.4.7→1.6.04.152.0→4.158.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.6.0Compare Source
Minor Changes
#16186
f1d81a2Thanks @leostera! - Support local Artifacts across Wrangler, Vite, and Workers VitestSet
remote: falseon an Artifacts binding to opt into the Miniflare simulator and persistent local repositories during development. Omittedremotecontinues to use the deployed resource, with a warning that changes affect real repositories;remote: trueexplicitly selects it. When remote bindings are disabled (wrangler dev --local, or Vite'sremoteBindings: false), Artifacts bindings use the local simulator. Workers Vitest uses the local simulator whenremoteis omitted, so tests do not change real repositories by accident; setremote: trueto test against the deployed resource. Local development does not require Cloudflare credentials, but does require Git 2.32 or newer on the host.In Miniflare's own options, Artifacts bindings route like every other binding: only
dev.remote: truewith a remote proxy connection uses the deployed resource. Wrangler and Vite resolve the deployed-by-default rule, and Workers Vitest its local default, before passing options to Miniflare.Patch Changes
#16700
dc35efbThanks @cjol! - Bump bundledbrace-expansionto pick up security fixesThese packages bundle
brace-expansion(a dependency ofminimatch), and the bundled versions were affected by published advisories. The bundles now includebrace-expansion2.1.7 (from 2.0.1) and 5.0.12 (from 5.0.5). Normal glob patterns expand as before; only the pathological patterns targeted by the advisories are handled differently.#16700
dc35efbThanks @cjol! - Bump bundleddevaluefrom 5.6.3 to 5.9.3 to pick up security fixesdevalueis bundled into these packages, which use it to serialise values between Node.js and workerd. Version 5.6.3 is affected by several published advisories, and 5.9.3 includes their fixes. Serialisation behaviour does not change.#16700
dc35efbThanks @cjol! - Bump bundledminimatchfrom 5.1.6 to 5.1.9 to pick up security fixesThese packages bundle
minimatch, and 5.1.6 is affected by published ReDoS advisories. Version 5.1.9 includes the fixes. 5.1.8 is skipped because it broke recursive**matching, which D1'smigrations_patternrelies on.#16695
b2061f4Thanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-04Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
Updated dependencies [
dc35efb,dc35efb,dc35efb,dc35efb,dc35efb,dc35efb,dc35efb,b8387a5,fa3edb3,4cde694,b2061f4,b2061f4,f1d81a2,4bb491b,36e64f2,92c4b97]:v1.5.1Compare Source
Patch Changes
#16670
b14b9dcThanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-03Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
#16609
da26b7fThanks @gpanders! - Fix tests failing to start withresolve.preserveSymlinksin isolatednode_moduleslayoutsWith
resolve.preserveSymlinks: truein a pnpm project, tests failed to start withNo such module ".../node_modules/vitest/dist/chai", because a package's own dependencies are linked only next to its real path. Packages linked from a store insidenode_modulesnow load from their real paths, and other files keep their symlinked paths.Updated dependencies [
b14b9dc,44d1ee4,b14b9dc,d2eda1c,2750917,34f34b3]:v1.5.0Compare Source
Minor Changes
#16424
1598fd3Thanks @edmundhung! - Promoteexperimental.newConfigto a stableconfigoptionThe experimental
experimental.newConfigoption is now the stableconfigoption. Passconfig: truetocloudflareTest()to load your Worker's bindings, entrypoint and compatibility settings fromcloudflare.config.tsin the project root, or pass the path of acloudflare.config.tselsewhere:configcan't be combined withwrangler.miniflareoptions are merged over the Worker fromcloudflare.config.ts, withminiflarevalues taking precedence. Config functions receive Vitest's mode asctx.mode, which defaults totestand can be changed with--mode.If you're moving from
experimental.newConfig, secrets are now read from Vite'senvDirinstead of the directory containingcloudflare.config.ts, and remote bindings authenticate withcfinstead of Wrangler.Patch Changes
#16642
d38cb02Thanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-02Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
#16623
51bbf8bThanks @petebacondarwin! - Deprecate shared tooling helper exports from MiniflareMiniflare continues to export
getNodeCompat,NodeJSCompatMode, andgetFreshSourceMapSupportfor compatibility. These exports are deprecated and now use the implementations in@cloudflare/workers-utils. Add a dependency on that package and replace the Miniflare imports with:Wrangler and the Cloudflare Vite and Vitest plugins now use the shared helpers directly. The helpers retain their behavior and can be imported without loading the Workers runtime.
The deprecated Miniflare exports will be removed in a later release, allowing downstream tools such as cf to migrate and release independently first.
Updated dependencies [
d38cb02,d38cb02,51bbf8b,e5b1798]:v1.4.12Compare Source
Patch Changes
#16635
76e18a8Thanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-01Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
Updated dependencies [
effe4ed,76e18a8,76e18a8,009ca6e,5740867,d174de8,aece4df,2667a9f,ed7fb41,f9dbb22]:v1.4.11Compare Source
Patch Changes
#15565
142230dThanks @luccamordente! - Flushconsole.log()calls made from another I/O context without waiting for the runner's next messageVitest awaits every RPC call it made before it reports a test file as finished. A
console.log()from another I/O context (a handler reached throughSELF, a queue consumer, awaitUntil()callback) is buffered and sent with the runner's next message, so a log with nothing from the runner following it — the last batch of a queue consumed as the file ends, for example — left the run waiting on itself: the file's tests passed and vitest never finished. The buffer is now flushed from the runner's context as soon as a log is buffered.#16013
8b64becThanks @swalker326! - Fix Durable Object self-references in tests and container validationDurable Object bindings that explicitly name the Worker itself now resolve to the test runner in
@cloudflare/vitest-plugin, for bothcloudflare.config.tsand Wrangler configuration files. Named Wrangler environments use their effective Worker name, keeping bindings to the base Worker external. Container validation also accepts these self-references, using the effective deployment name to distinguish local and external bindings.Explicit binding targets remain intact during configuration conversion, so deploying with
--nameor a CI name override preserves the intended Durable Object target.Updated dependencies [
ec0bea4,b4653b4,25802bc,25802bc,15fbaed,d8899ac,8b64bec]:v1.4.10Compare Source
Patch Changes
a95d647,c7a3373,c7a3373,c7a3373,c7a3373,c7a3373]:v1.4.9Compare Source
Patch Changes
0968b08,f3c13b3]:v1.4.8Patch Changes
#16403
5f82a56Thanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-10-22Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
#16437
e651d7cThanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-10-23Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
#16476
8a30d8eThanks @tannerlinsley! - Update Undici to 7.30.1 to prevent a malformed HTTP response from crashing development toolsThe updated shared dependency rejects excessive content encodings without leaving an unhandled stream error when the server closes the connection early. This fixes GHSA-xjj6-f33q-929c and keeps the matching Undici types on the same version.
#16490
bcd618dThanks @petebacondarwin! - Update Zod to 4.6.6 to address GHSA-mrhx-c7xc-m3w5The updated shared dependency fixes excessive memory consumption when validating oversized collections. This updates both the published Zod dependencies and the copies bundled into development tools and Workers.
#16335
28cca4cThanks @robingenz! - Fix Worker tests failing when CommonJS dependencies require packages with separateimportandrequireentries on Vite 8. The fix needs Vite 8.2.1 or later; Vite 8.0.x, 8.1.x and 8.2.0 stay affected.Updated dependencies [
9e05ade,5f82a56,e651d7c,5f82a56,e651d7c,8a30d8e,c0e915f,b7e762d,c709bff,23ef63a,bcd618d]:cloudflare/workers-sdk (wrangler)
v4.158.0Compare Source
Minor Changes
#16186
f1d81a2Thanks @leostera! - Support local Artifacts across Wrangler, Vite, and Workers VitestSet
remote: falseon an Artifacts binding to opt into the Miniflare simulator and persistent local repositories during development. Omittedremotecontinues to use the deployed resource, with a warning that changes affect real repositories;remote: trueexplicitly selects it. When remote bindings are disabled (wrangler dev --local, or Vite'sremoteBindings: false), Artifacts bindings use the local simulator. Workers Vitest uses the local simulator whenremoteis omitted, so tests do not change real repositories by accident; setremote: trueto test against the deployed resource. Local development does not require Cloudflare credentials, but does require Git 2.32 or newer on the host.In Miniflare's own options, Artifacts bindings route like every other binding: only
dev.remote: truewith a remote proxy connection uses the deployed resource. Wrangler and Vite resolve the deployed-by-default rule, and Workers Vitest its local default, before passing options to Miniflare.Patch Changes
#16700
dc35efbThanks @cjol! - Bump bundledbrace-expansionto pick up security fixesThese packages bundle
brace-expansion(a dependency ofminimatch), and the bundled versions were affected by published advisories. The bundles now includebrace-expansion2.1.7 (from 2.0.1) and 5.0.12 (from 5.0.5). Normal glob patterns expand as before; only the pathological patterns targeted by the advisories are handled differently.#16700
dc35efbThanks @cjol! - Bump bundledfast-xml-parserfrom 4.4.1 to 4.5.5 to pick up security fixesMiniflare bundles
fast-xml-parserinto its local R2 S3 API, and Wrangler bundles it through the AWS SDK used bywrangler pipelines. Version 4.4.1 is affected by several published advisories, and 4.5.5 includes their fixes. XML handling does not change.#16700
dc35efbThanks @cjol! - Bump bundledminimatchfrom 5.1.6 to 5.1.9 to pick up security fixesThese packages bundle
minimatch, and 5.1.6 is affected by published ReDoS advisories. Version 5.1.9 includes the fixes. 5.1.8 is skipped because it broke recursive**matching, which D1'smigrations_patternrelies on.#16700
dc35efbThanks @cjol! - Bump bundledshell-quotefrom 1.10.0 to 1.11.0 to pick up a security fixshell-quoteis bundled into Wrangler, which uses it to parse and quote shell commands such as custom build and Pages dev commands. Version 1.10.0 is affected by a published advisory, and 1.11.0 includes the fix. Command parsing does not change.#16700
dc35efbThanks @cjol! - Bump bundledyamlfrom 2.8.1 to 2.9.0 to pick up a security fixyamlis bundled into Wrangler, which uses it to show container application details. Version 2.8.1 is affected by a published advisory, and versions from 2.8.3 onwards include the fix. Output does not change.#16688
fa3edb3Thanks @FlorentCollin! - Use theaccount_idfrom the configuration file inwrangler d1 migrations list --remoteBefore this change, the command ignored the
account_idin the configuration file. When your login had access to more than one account, the command failed in non-interactive mode. In interactive mode, it asked you to select an account. The command now uses the configuredaccount_id, aswrangler d1 migrations applydoes.#16695
b2061f4Thanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-04Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
#16695
b2061f4Thanks @dependabot! - Update dependencies of "miniflare", "wrangler"The following dependency versions have been updated:
#16306
36e64f2Thanks @efalcao! - Report Cloudflare Access login redirects on remote bindings instead of looping until "Too many redirects"When a remote bindings request reached a
workers.devhost protected by Access without valid Access credentials (for example, Access was added after the dev server started, theCF_Authorizationcookie expired, or Access was not detected at startup), the edge redirected it to the Access login page. The binding followed that redirect back through the remote proxy, looping until it failed withTypeError: Too many redirectsand an error message containing the Access login URL. Miniflare now detects the redirect, returns a readable 401 explaining how to re-authenticate, and logs the existing one-time "Cloudflare Access blocked a remote bindings request" warning.The remote proxy server now marks the responses it forwards from a binding, so only Access responses generated in front of it are replaced. An Access login redirect or block page returned by a remote binding itself (for example, a Worker proxying an Access-protected origin) now reaches the caller unchanged.
Updated dependencies [
dc35efb,dc35efb,dc35efb,dc35efb,dc35efb,b8387a5,4cde694,b2061f4,b2061f4,f1d81a2,4bb491b,36e64f2,92c4b97]:v4.157.0Compare Source
Minor Changes
34f34b3Thanks @punkeel! - Allow opting into zstd compression for Wrangler-built container image layers withWRANGLER_CONTAINER_IMAGE_COMPRESSION=zstd.Patch Changes
#16670
b14b9dcThanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-03Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
#16011
44d1ee4Thanks @wra-sol! - Offer to delete a Worker's Container applications when runningwrangler deletePreviously,
wrangler deleteremoved only the Worker, leaving the Container applications thatwrangler deploycreated for it running and billing. It now offers to delete them as well. With--force, or in CI and other non-interactive contexts, it lists them instead so they can be removed withwrangler containers delete <id>.#16670
b14b9dcThanks @dependabot! - Update dependencies of "miniflare", "wrangler"The following dependency versions have been updated:
Updated dependencies [
b14b9dc,b14b9dc,d2eda1c,2750917]:v4.156.2Compare Source
Patch Changes
#16642
d38cb02Thanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-02Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
#16642
d38cb02Thanks @dependabot! - Update dependencies of "miniflare", "wrangler"The following dependency versions have been updated:
#16623
51bbf8bThanks @petebacondarwin! - Deprecate shared tooling helper exports from MiniflareMiniflare continues to export
getNodeCompat,NodeJSCompatMode, andgetFreshSourceMapSupportfor compatibility. These exports are deprecated and now use the implementations in@cloudflare/workers-utils. Add a dependency on that package and replace the Miniflare imports with:Wrangler and the Cloudflare Vite and Vitest plugins now use the shared helpers directly. The helpers retain their behavior and can be imported without loading the Workers runtime.
The deprecated Miniflare exports will be removed in a later release, allowing downstream tools such as cf to migrate and release independently first.
#16531
e5b1798Thanks @dario-piotrowicz! - Avoid unrelated route permission checks when comparing dashboard configurationWhen a Worker was last updated from the dashboard,
wrangler deployandwrangler versions uploadfetched route and custom-domain metadata even when the command could not change it. Wrangler now fetches only the route categories configured for deployment, allowing Worker-scoped Editor tokens to upload Workers without routes or custom domains.Updated dependencies [
d38cb02,d38cb02,51bbf8b]:v4.156.1Compare Source
Patch Changes
#16594
effe4edThanks @jaeminbird! - Fixwrangler types --checkreporting CRLF types files as out of dateWhen
worker-configuration.d.tswas checked out with CRLF line endings (for example with Git'score.autocrlf=true, the default on Windows), the runtime header kept a trailing\rand never matched the expected header.wrangler types --checkthen always failed,wrangler devalways warned that the types might be out of date, and cached runtime types were never reused. Generated types files are now read with either line ending.#16635
76e18a8Thanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-01Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
#16635
76e18a8Thanks @dependabot! - Update dependencies of "miniflare", "wrangler"The following dependency versions have been updated:
#16535
5740867Thanks @petebacondarwin! - Keep Pages development asset lookups within the configured directoryValidate resolved asset paths relative to the Pages output directory, preventing neighboring files and directories with a shared name prefix from being served. This also applies to the Vitest Pages ASSETS helper. Assets inside the directory and existing not-found fallbacks retain their behavior.
#16366
d174de8Thanks @MattieTK! - Deploy the requested directory whenwrangler pages deploy <directory>is run as a Workers static-assets deployWhen
wrangler pages deploy <directory>was carried out as a Workers static-assets deploy, the<directory>argument was only used to check for unsupported Pages features and was then dropped. Autoconfig detected an assets directory of its own instead, and when the project root contained anindex.htmlit chose the whole project root, even when a narrower directory such aspublichad been requested. Source files and configuration outside the requested directory that were not excluded by.assetsignorecould then be uploaded as public static assets.The requested directory is now validated before files are written and passed through to the deploy. Unconfigured projects are set up for static assets even when framework dependencies are present; existing Workers configs receive an
--assetsor legacy--siteoverride. Projects configured through the Cloudflare Vite plugin alone keep their configuration and scripts, using the requested directory and an explicit or default compatibility date just for this deploy. Successful deployments without a config file are recorded in the project's.wrangler/deploymentsdirectory for that account and Worker, surviving dependency reinstalls. Repeat deploys verify the recorded version still belongs to the target Worker before allowing an update, preserving protection against name collisions and replacements.#16562
aece4dfThanks @audricbizouarn-dashdoc! - Retry transient failures when starting a Workers assets upload sessionAsset manifest registration now uses the same bounded API retry policy as Worker uploads, including support for
Retry-After. Temporary server errors no longer immediately abort an otherwise valid deployment. Persistent failures still surface the original error after the retry limit; this does not repair server-side issues affecting a specific Worker.#16603
2667a9fThanks @petebacondarwin! - Fix repeated slashes in URL paths bypassing Pages Functions middlewarePages Functions now collapse repeated slashes when looking up middleware, so requests such as
//secure/onerun the same middleware as/secure/one. The original request URL and function-route matching are preserved. Middleware receives afunctionPathprefix from the original URL so imported assets can still resolve their relative paths.#16525
ed7fb41Thanks @petebacondarwin! - Validate OAuth error callbacks against the pending loginAll authorization callbacks, including ones without a code or error, now require the matching login state. Unrelated callbacks leave the login running so the authorization page can complete it, and control characters in provider error messages are displayed as escaped text.
#16597
f9dbb22Thanks @guybedford! - Fix WebAssembly stack frames printing asat [object Object]in source-mapped errorsWebAssembly frames in source-mapped error stack traces now show their original function and location instead of
[object Object].Updated dependencies [
76e18a8,76e18a8,009ca6e]:v4.156.0Compare Source
Minor Changes
#16532
25802bcThanks @simonha9! - Allow the experimentalwrangler d1 insightscommand to run across every D1 database in the accountThe database name is now optional. With no name,
Configuration
📅 Schedule: (in timezone America/Los_Angeles)
* 12-23 * * 0)* 0-11 * * 1)🚦 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.