You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When remote bindings could not authenticate, the error told you to run wrangler whoami, wrangler logout and wrangler login. It now names cf auth whoami, cf auth logout and cf auth login. When a Flagship binding without an id needed to run remotely, the error named Wrangler's app_id setting and suggested wrangler flagship apps create. It now names id and suggests cf 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.
#168348e57331 Thanks @edmundhung! - Fix test files never finishing when a socket read rejects after a Worker handler has answered
Previously, 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 run waiting forever after the tests passed. Vitest now reports the unhandled error and the run ends.
Previously, projects that load cloudflare.config.ts through the config option 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 contains cloudflare.config.ts.
cloudflare.config.ts has 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
#16824877b249 Thanks @jamesopstad! - Move streaming tail consumers to experimental.streamingTailConsumers in cloudflare.config.ts
Streaming Tail Workers are now declared in a separate, experimental list instead of with streaming: true on a tailConsumers entry. tailConsumers now only lists Tail Workers with a tail() handler. This is a breaking change to the experimental config API: move each entry that set streaming: true to experimental.streamingTailConsumers, without the streaming field.
Fields under experimental may change or be removed without a major version bump. The wrangler-to-cf codemod now converts streaming_tail_consumers to experimental.streamingTailConsumers.
#16734c47cca7 Thanks @matingathani! - Fix CommonJS dependencies being loaded as ES modules under Vitest 5 inline projects
A dependency with its own "type": "commonjs"package.json was treated as an ES module when an earlier .js file elsewhere in the project had been classified by the project's "type": "module"package.json. The dependency then failed at import with errors such as Cannot set properties of undefined or exports is not defined. The nearest package.json now always decides how a .js file is loaded.
#15695d437be3 Thanks @ghostwriternr! - Run the Containers that the Wrangler configuration attaches to Durable Objects
Previously, 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 real ctx.container, so these projects now need Docker. To keep running their tests without Docker, set dev.enable_containers to false in the Wrangler configuration, which disables the Containers. Cloudflare-managed registry images are not supported yet.
This release fixes 3 issues. See the release notes for details.
#166836f29f97 Thanks @jamesopstad! - Stop persisting account selections made by cf and the Cloudflare Vite and Vitest plugins
Profiles 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, cf and the Vite and Vitest plugins reuse the selection while running but ask again the next time they start. Configure accountId in cloudflare.config.ts or set the CLOUDFLARE_ACCOUNT_ID environment variable to avoid repeated prompts.
Local 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.
Previously, 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.
Mock 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 with asyncLocalStorage.disable() is not implemented.
#16186f1d81a2 Thanks @leostera! - Support local Artifacts across Wrangler, Vite, and Workers Vitest
Set remote: false on an Artifacts binding to opt into the Miniflare simulator and persistent local repositories during development. Omitted remote continues to use the deployed resource, with a warning that changes affect real repositories; remote: true explicitly selects it. When remote bindings are disabled (wrangler dev --local, or Vite's remoteBindings: false), Artifacts bindings use the local simulator. Workers Vitest uses the local simulator when remote is omitted, so tests do not change real repositories by accident; set remote: true to 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: true with 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
#16700dc35efb Thanks @cjol! - Bump bundled brace-expansion to pick up security fixes
These packages bundle brace-expansion (a dependency of minimatch), and the bundled versions were affected by published advisories. The bundles now include brace-expansion 2.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.
#16700dc35efb Thanks @cjol! - Bump bundled devalue from 5.6.3 to 5.9.3 to pick up security fixes
devalue is 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.
#16700dc35efb Thanks @cjol! - Bump bundled minimatch from 5.1.6 to 5.1.9 to pick up security fixes
These 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's migrations_pattern relies on.
Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
#16609da26b7f Thanks @gpanders! - Fix tests failing to start with resolve.preserveSymlinks in isolated node_modules layouts
With resolve.preserveSymlinks: true in a pnpm project, tests failed to start with No 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 inside node_modules now load from their real paths, and other files keep their symlinked paths.
The experimental experimental.newConfig option is now the stable config option. Pass config: true to cloudflareTest() to load your Worker's bindings, entrypoint and compatibility settings from cloudflare.config.ts in the project root, or pass the path of a cloudflare.config.ts elsewhere:
config can't be combined with wrangler. miniflare options are merged over the Worker from cloudflare.config.ts, with miniflare values taking precedence. Config functions receive Vitest's mode as ctx.mode, which defaults to test and can be changed with --mode.
If you're moving from experimental.newConfig, secrets are now read from Vite's envDir instead of the directory containing cloudflare.config.ts, and remote bindings authenticate with cf instead of Wrangler.
Miniflare continues to export getNodeCompat, NodeJSCompatMode, and getFreshSourceMapSupport for 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.
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually
The artifact failure details are included below:
File name: package-lock.json
npm warn Unknown env config "store". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
npm error code EOVERRIDE
npm error Override for brace-expansion@5.0.13 conflicts with direct dependency
npm error A complete log of this run can be found in: /runner/cache/others/npm/_logs/2026-11-23T09_48_03_815Z-debug-0.log
Diagnosis (fleet PR drive, MA): build, verify, and smoke all fail at npm ci with EUSAGE — this branch's package.json and package-lock.json are out of sync. Lock file's wrangler@4.162.0 does not satisfy wrangler@4.164.0; the same desync applies to the nested miniflare@5.20261113.0-beta (needs 5.20261117.0-beta) and workerd@1.20261113.1 (needs 1.20261117.1) entries. A regenerated lockfile was validated locally (npm ci --dry-run clean), but the git relay's content scanner refused the lockfile write on both the file-put and file-patch routes (false positive on npm integrity hashes), so the fix cannot land from this seat without an owner ruling on the packet. PR left open and unmerged; the validated lockfile is preserved in the drive's working records.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
1.4.12→1.8.47.16.2→7.18.07.16.2→7.18.01.64.1→1.65.111.10.0→11.14.04.3.3→4.3.55.0.5→5.1.113.0.3→13.2.05.0.12→5.0.134.29.5→4.29.66.23.0→6.25.018.0.9→18.0.1010.14.0→10.15.016.4.3→16.4.631.0.0→31.0.11.66.0→1.75.011.0.3→11.0.94.2.0→4.2.18.5.32→8.5.333.10.1→3.11.04.3.3→4.3.58.12.3→8.12.45.0.5→5.1.14.162.0→4.164.0Release Notes
cloudflare/workers-sdk (@cloudflare/vitest-plugin)
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]: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]:DataDog/browser-sdk (@datadog/browser-logs)
v7.18.0Compare Source
Public Changes:
Internal Changes:
v7.17.1Compare Source
Public Changes:
Internal Changes:
v7.17.0Compare Source
Public Changes:
route_changeFCP, CLS and INP (#5167)Internal Changes:
Configuration
📅 Schedule: (in timezone America/Chicago)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, 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.