Skip to content

[vitest-plugin] Remove wrangler dependency - #16174

Merged
petebacondarwin merged 11 commits into
mainfrom
james/remove-wrangler-dep-from-vitest-plugin
Nov 19, 2026
Merged

petebacondarwin merged 11 commits into
mainfrom
james/remove-wrangler-dep-from-vitest-plugin

Conversation

@james-elicx

@james-elicx james-elicx commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Fixes #16126.

Installing @cloudflare/vitest-plugin no longer installs wrangler. The plugin reads Wrangler configuration files and creates the Pages ASSETS binding through shared packages, while continuing to load cloudflare.config.ts directly through its existing config option.

  • Add @cloudflare/workers-utils/config for configuration reading, discovery, types, validation, editing and binding interpretation, with an explicit logger for readConfig(). Retain existing root configuration exports as deprecated compatibility aliases with shared runtime and type identity; expose the new readConfig() only through /config. Migrate internal imports to the new entry point to satisfy the repository’s deprecated-API lint rule.
  • Move local variable loading, Wrangler-to-Miniflare option conversion and Pages asset serving into a private @cloudflare/dev-helpers workspace package, bundled into Wrangler and the Vitest plugin. It is not published or deployed separately, and its runtime and Node.js declarations are built with tsdown. Keeping Wrangler compatibility here means retiring that support does not require a major Miniflare release. Keep deployment transport in deploy-helpers, with shared asset configuration and hashing in workers-utils.
  • Load Wrangler config conversion and Pages assets helpers only when those features are used; preserve Wrangler's early .env debug logging through logger injection, and pass caller-owned loggers explicitly for configuration and local binding warnings, preserving level filtering and warning deduplication within each pool without a shared logger setter.
  • Type-check the Pages implementation in an isolated Workers environment and assert that its signature matches the Node.js declaration.
  • Keep Wrangler's public unstable_* APIs and its config-warning upgrade hints through wrappers around the shared implementations.
  • Preserve current container support, remote-binding authentication, Hyperdrive fallback behavior and Artifacts Workflow event routing when extracting the helpers.

Projects that use the Wrangler CLI must declare their own wrangler dependency. The plugin's configuration warnings now use its own logger without Wrangler's upgrade hint. D1 SQL splitting and case-insensitive environment handling already use shared helpers on main and need no further extraction.

Validation: pnpm check passed (209 tasks). Tests passed for the Vitest plugin (178 passed, one skipped), workers-utils (1,385 passed, one skipped), dev helpers (5), deploy helpers (308), Vite plugin (275), focused Wrangler regressions (79 passed, one skipped), the Pages integration example (11) and focused release-tooling tests (91). Isolated consumer checks also pass for Wrangler’s built runtime and declarations and the Vite plugin’s declarations. Coverage includes named environments, injected logging and caller isolation, warning overrides/suppression, redirects and validation errors, runtime/type identity and deprecation annotations in published declarations, and emitted bundles that do not import private asset utilities at runtime. The installed-package regression test starts a separate Node process and checks that Wrangler, deploy helpers and dev helpers cannot be resolved from the plugin’s dependency tree.


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: the shared development boundary, configuration entry point and migration are documented in package READMEs and the configuration guide; changesets cover deprecations, installation changes and the explicit Wrangler dependency requirement.

@changeset-bot

changeset-bot Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 727fc6d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 10 packages
Name Type
@cloudflare/workers-utils Minor
@cloudflare/vitest-plugin Minor
@cloudflare/autoconfig Patch
@cloudflare/cli-shared-helpers Patch
@cloudflare/containers-shared Patch
@cloudflare/deploy-helpers Patch
@cloudflare/dev-helpers Patch
@cloudflare/remote-bindings Patch
@cloudflare/workers-auth Patch
wrangler Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ask-bonk

ask-bonk Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

LGTM

github run

@pkg-pr-new

pkg-pr-new Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
@cloudflare/autoconfig

npm i https://pkg.pr.new/@cloudflare/autoconfig@16174

@cloudflare/build-output-utils

npm i https://pkg.pr.new/@cloudflare/build-output-utils@16174

@cloudflare/codemods

npm i https://pkg.pr.new/@cloudflare/codemods@16174

@cloudflare/config

npm i https://pkg.pr.new/@cloudflare/config@16174

@cloudflare/containers-shared

npm i https://pkg.pr.new/@cloudflare/containers-shared@16174

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@16174

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/@cloudflare/deploy-helpers@16174

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@16174

miniflare

npm i https://pkg.pr.new/miniflare@16174

@cloudflare/pages-functions

npm i https://pkg.pr.new/@cloudflare/pages-functions@16174

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@16174

@cloudflare/runtime-types

npm i https://pkg.pr.new/@cloudflare/runtime-types@16174

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@16174

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@16174

@cloudflare/vitest-plugin

npm i https://pkg.pr.new/@cloudflare/vitest-plugin@16174

@cloudflare/workers-auth

npm i https://pkg.pr.new/@cloudflare/workers-auth@16174

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@16174

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@16174

wrangler

npm i https://pkg.pr.new/wrangler@16174

commit: 727fc6d

@petebacondarwin
petebacondarwin force-pushed the james/remove-wrangler-dep-from-vitest-plugin branch from 6731b05 to 3719898 Compare November 18, 2026 09:29
@petebacondarwin
petebacondarwin marked this pull request as ready for review November 18, 2026 09:31
@workers-devprod
workers-devprod requested review from a team and petebacondarwin and removed request for a team November 18, 2026 09:31
@workers-devprod

workers-devprod commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • @cloudflare/cloudchamber
  • @cloudflare/d1
  • @cloudflare/workers-kv
  • ✅ @cloudflare/wrangler
Show detailed file reviewers
  • packages/containers-shared/src/deploy.ts: [@cloudflare/cloudchamber]
  • packages/containers-shared/src/dev-options.ts: [@cloudflare/cloudchamber]
  • packages/containers-shared/src/limits.ts: [@cloudflare/cloudchamber]
  • packages/containers-shared/tests/build-and-push.test.ts: [@cloudflare/cloudchamber]
  • packages/containers-shared/tests/dev-options.test.ts: [@cloudflare/cloudchamber]
  • packages/wrangler/src/tests/containers/config.test.ts: [@cloudflare/cloudchamber]
  • packages/wrangler/src/tests/containers/deploy.test.ts: [@cloudflare/cloudchamber]
  • packages/wrangler/src/tests/d1/utils.test.ts: [@cloudflare/d1]
  • packages/wrangler/src/cloudchamber/apply.ts: [@cloudflare/cloudchamber]
  • packages/wrangler/src/cloudchamber/common.ts: [@cloudflare/cloudchamber]
  • packages/wrangler/src/cloudchamber/create.ts: [@cloudflare/cloudchamber]
  • packages/wrangler/src/cloudchamber/curl.ts: [@cloudflare/cloudchamber]
  • packages/wrangler/src/cloudchamber/delete.ts: [@cloudflare/cloudchamber]
  • packages/wrangler/src/cloudchamber/images/images.ts: [@cloudflare/cloudchamber]
  • packages/wrangler/src/cloudchamber/images/registries.ts: [@cloudflare/cloudchamber]
  • packages/wrangler/src/cloudchamber/instance-type/instance-type.ts: [@cloudflare/cloudchamber]
  • packages/wrangler/src/cloudchamber/list.ts: [@cloudflare/cloudchamber]
  • packages/wrangler/src/cloudchamber/modify.ts: [@cloudflare/cloudchamber]
  • packages/wrangler/src/cloudchamber/ssh/ssh.ts: [@cloudflare/cloudchamber]
  • packages/wrangler/src/containers/config.ts: [@cloudflare/cloudchamber]
  • packages/wrangler/src/containers/containers.ts: [@cloudflare/cloudchamber]
  • packages/wrangler/src/containers/images.ts: [@cloudflare/cloudchamber]
  • packages/wrangler/src/containers/registries.ts: [@cloudflare/cloudchamber]
  • packages/wrangler/src/containers/worker-applications.ts: [@cloudflare/cloudchamber]
  • packages/wrangler/src/d1/execute.ts: [@cloudflare/d1]
  • packages/wrangler/src/d1/export.ts: [@cloudflare/d1]
  • packages/wrangler/src/d1/migrations/apply.ts: [@cloudflare/d1]
  • packages/wrangler/src/d1/migrations/create.ts: [@cloudflare/d1]
  • packages/wrangler/src/d1/migrations/helpers.ts: [@cloudflare/d1]
  • packages/wrangler/src/d1/migrations/list.ts: [@cloudflare/d1]
  • packages/wrangler/src/d1/utils.ts: [@cloudflare/d1]
  • packages/wrangler/src/kv/helpers.ts: [@cloudflare/workers-kv]

@devin-ai-integration devin-ai-integration Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

Newer findings are available below. Devin Review posted a newer report on this PR, in addition to the findings presented here.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

clanky-the-clanker[bot]

This comment was marked as resolved.

@clanky-the-clanker clanky-the-clanker Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superseded by the review of 401c5751.

This review, of 5238c830

💬 Approved with comments — The extraction into workers-utils and deploy-helpers looks behaviourally equivalent, and Wrangler's unstable_* APIs are kept. Only four non-blocking INFO notes remain from the last review.

Findings: 4 info

Not opened by the correctness review: 1 changed file it was meant to read
  • packages/wrangler/src/api/integrations/platform/index.ts

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


📋 Code Quality: 💬 4 info

No new issues. The platform/index.ts wrapper change is correct, and four earlier INFO notes remain open.

Recommendation: 💬 Optional Nits

  • [INFO] Before init, the default logger drops debug output, so Wrangler's early .env load diagnostics are lost. (packages/deploy-helpers/src/shared/context.ts:24)
  • [INFO] The static import of miniflare-options makes every plugin user load the heavy assets and containers modules, even without wrangler options. (packages/vitest-plugin/src/pool/config.ts:4)
  • [INFO] pages-assets.ts is excluded from type checking, and its exported types live in a hand-maintained duplicate. (packages/deploy-helpers/tsconfig.json:14)
  • [INFO] The new public readConfig has no tests in workers-utils, the package that owns it. (packages/workers-utils/src/config/read-config.ts:21)
View full review

The new unstable_getVarsForDev wrapper matches the signature of the shared getVarsForDev. unstable_getMiniflareWorkerOptions now just calls the shared getMiniflareWorkerOptions. The four earlier notes still apply because their code has not changed:

  1. Lost debug output: Wrangler's early .env load runs before the deploy-helpers context is initialised, so its debug diagnostics never reach Wrangler's logger.
  2. Eager loading: the Vitest plugin now always loads the miniflare-options module, even when the wrangler option is not set.
  3. No type checking for pages-assets.ts: the file is excluded from type checking, and its exported types live in a hand-maintained copy.
  4. Untested readConfig: the new public function has no tests in workers-utils.

✅ All other checks passed

🚀 Release: ✅ LGTM

The changesets cover the Vitest plugin's dependency removal and the new shared helper entry points. Release risk is medium because configuration parsing and the Miniflare and Pages development helpers have moved into shared packages that both Wrangler and the Vitest plugin use.


🔒 Security: ✅ LGTM

This is a refactor that moves existing helpers into shared packages. It adds no new security surface.


📖 AGENTS.md: ✅ LGTM

The packages/vitest-plugin/AGENTS.md update is consistent with the change.


⚡ Performance: ✅ LGTM

No performance issues found.


📝 Documentation: ✅ LGTM

No documentation issues found.


Reviewed commit: 5238c830

clanky-the-clanker[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

clanky-the-clanker[bot]

This comment was marked as resolved.

@clanky-the-clanker clanky-the-clanker Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superseded by the review of c8cc84f6.

This review, of 60ec0cf2

💬 Approved with comments — The refactor looks behaviourally equivalent, and the pool-scoped logger fix in this round is correct. One INFO note from the last review is still open: readConfig warnings go to the raw console instead of the pool logger.

Findings: 1 info

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


📋 Code Quality: 💬 1 info

One INFO note from the last review is still open: readConfig gets the raw-console logger.

Recommendation: 💬 Optional Nits

  • [INFO] readConfig gets the raw-console remoteBindingsLogger, so config warnings skip the pool logger's level filter, prefix and deduplication. (packages/vitest-plugin/src/pool/config.ts:751)
View full review

The latest commits create one logger per pool initializer and pass it through CloudflarePoolWorker into parseProjectOptions(). Warning deduplication is now scoped to each pool, and the new tests cover both deduplication and re-emission.

One note from the last review is still open:

  • packages/vitest-plugin/src/pool/config.ts:751: readConfig is called with { logger: remoteBindingsLogger }, which forwards straight to console. Config validation warnings and the redirected-config notice therefore skip the pool logger's level filter, prefix and once deduplication. developmentLogger is already in scope and is passed to setDeployHelpersLogger at line 796.

The rest checks out:

  • Wrangler still initialises the deploy-helpers context on its CLI, DevEnv and API paths.
  • The .env early logging is preserved through the injected logger.
  • The tsup aliases cover the new entry points.
  • The removed miniflare-cli/assets has no remaining references.

✅ All other checks passed

🚀 Release: ✅ LGTM

Overall risk: Medium. Configuration parsing and the local-development helpers move into shared packages that both Wrangler and the Vitest plugin use. The impact is on local development and test workflows, not deployments.

The changesets cover:

  • the new shared entry points;
  • the removal of the plugin's wrangler dependency, including the requirement that projects using the CLI declare wrangler themselves.

🔒 Security: ✅ LGTM

This pull request moves existing helpers into shared packages and re-exports them from Wrangler. It adds no new inputs, trust boundaries, command execution or credential handling.


📖 AGENTS.md: ✅ LGTM

The packages/vitest-plugin/AGENTS.md update matches the change.


⚡ Performance: ✅ LGTM

Wrangler config conversion and the Pages asset helpers are still loaded lazily.


📝 Documentation: ✅ LGTM

No documentation issues found.


Reviewed commit: 60ec0cf2

@clanky-the-clanker clanky-the-clanker Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superseded by the review of e0f4b86e.

This review, of c8cc84f6

✅ Approved — The last open note is fixed: config diagnostics now go through the pool-scoped logger, and a test covers it. No new issues were found.

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

🚀 Release: ✅ LGTM

Overall risk: Medium. Configuration parsing and the local-development helpers move into shared packages that both Wrangler and the Vitest plugin use. The impact is on local development and test workflows, not deployments.

The changesets cover:

  • the new shared entry points;
  • the removal of the plugin's wrangler dependency, including the requirement that projects using the CLI declare wrangler themselves.

🔒 Security: ✅ LGTM

This pull request moves existing helpers into shared packages and re-exports them from Wrangler. It adds no new inputs, trust boundaries, command execution or credential handling.


📖 AGENTS.md: ✅ LGTM

The packages/vitest-plugin/AGENTS.md update matches the change.


📋 Code Quality: ✅ LGTM

readConfig is now called with { logger: developmentLogger.once ?? developmentLogger }. It only calls info and warn, and once provides both. The logger is created once per cloudflarePool() call and passed through CloudflarePoolWorker into parseProjectOptions. Warning history is therefore scoped to each pool, and the tests cover both deduplication and re-emission. The Wrangler wiring and tsup aliases are unchanged and correct.


⚡ Performance: ✅ LGTM

Wrangler config conversion and the Pages asset helpers are still loaded lazily.


📝 Documentation: ✅ LGTM

No documentation issues found.


Reviewed commit: c8cc84f6

@workers-devprod
workers-devprod requested review from a team November 18, 2026 11:01

@clanky-the-clanker clanky-the-clanker Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superseded by the review of 6ea3c324.

This review, of e0f4b86e

✅ Approved — No issues found at this commit. The new @cloudflare/workers-utils/config entry point keeps every name the root entry exported before, as deprecated aliases, and the internal imports move cleanly to it.

Not opened by the correctness review: 166 changed files it was meant to read
  • packages/autoconfig/src/details/framework-detection.ts
  • packages/autoconfig/src/details/index.ts
  • packages/autoconfig/src/run.ts
  • packages/autoconfig/src/types.ts
  • packages/codemods/src/codemods/wrangler-to-cf/config-converter.ts
  • packages/codemods/src/codemods/wrangler-to-cf/config-reader.ts
  • packages/config/src/convert.ts
  • packages/containers-shared/src/deploy.ts
  • packages/containers-shared/src/dev-options.ts
  • packages/containers-shared/src/limits.ts
  • packages/deploy-helpers/src/deploy/helpers/assets.ts
  • packages/deploy-helpers/src/deploy/helpers/check-remote-secrets-override.ts
  • packages/deploy-helpers/src/deploy/helpers/check-workflow-conflicts.ts
  • packages/deploy-helpers/src/deploy/helpers/config-diffs.ts
  • packages/deploy-helpers/src/deploy/helpers/confirm-latest-deployment-overwrite.ts
  • packages/deploy-helpers/src/deploy/helpers/container-metadata.ts
  • packages/deploy-helpers/src/deploy/helpers/create-worker-upload-form.ts
  • packages/deploy-helpers/src/deploy/helpers/download-worker-config.ts
  • packages/deploy-helpers/src/deploy/helpers/durable-object-container-applications.ts
  • packages/deploy-helpers/src/deploy/helpers/durable.ts
  • packages/deploy-helpers/src/deploy/helpers/environments.ts
  • packages/deploy-helpers/src/deploy/helpers/exports.ts
  • packages/deploy-helpers/src/deploy/helpers/match-tag.ts
  • packages/deploy-helpers/src/deploy/helpers/owned-workflows.ts
  • packages/deploy-helpers/src/deploy/helpers/placement.ts
  • packages/deploy-helpers/src/deploy/helpers/provision-bindings.ts
  • packages/deploy-helpers/src/deploy/helpers/secrets-validation.ts
  • packages/deploy-helpers/src/deploy/helpers/validate-routes.ts
  • packages/deploy-helpers/src/deploy/helpers/validate-worker-props.ts
  • packages/deploy-helpers/src/deploy/helpers/versions-api.ts
  • packages/deploy-helpers/src/deploy/versions-upload.ts
  • packages/deploy-helpers/src/dev/dev-vars.ts
  • packages/deploy-helpers/src/dev/miniflare-options.ts
  • packages/deploy-helpers/src/preview/api.ts
  • packages/deploy-helpers/src/preview/format.ts
  • packages/deploy-helpers/src/preview/preview.ts
  • packages/deploy-helpers/src/preview/shared.ts
  • packages/deploy-helpers/src/shared/partition-routes.ts
  • packages/deploy-helpers/src/shared/types.ts
  • packages/deploy-helpers/src/triggers/deploy.ts
  • packages/deploy-helpers/src/triggers/email-routing.ts
  • packages/deploy-helpers/src/triggers/publish-routes.ts
  • packages/deploy-helpers/src/triggers/queue-consumers.ts
  • packages/deploy-helpers/src/triggers/subdomain.ts
  • packages/deploy-helpers/src/triggers/zones.ts
  • packages/remote-bindings/src/maybe-start-or-update-session.ts
  • packages/remote-bindings/src/start-remote-proxy-session.ts
  • packages/remote-bindings/src/startDevWorker/types.ts
  • packages/vite-plugin-cloudflare/src/miniflare-options.ts
  • packages/vite-plugin-cloudflare/src/plugins/additional-modules.ts
  • … and 116 more

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

🚀 Release: ✅ LGTM

Overall risk: Medium. Configuration parsing and the local-development helpers move into shared packages that both Wrangler and the Vitest plugin use. The impact is on local development and test workflows, not deployments.

The changesets cover:

  • the new entry points;
  • the deprecated compatibility exports that are kept;
  • the removal of the plugin's wrangler dependency.

🔒 Security: ✅ LGTM

This pull request moves existing helpers into shared packages and changes import paths. It adds no new inputs, trust boundaries or credential handling.

  • The Pages asset server's path-containment logic is unchanged.
  • The new deploy-helpers dependencies are the same pinned versions Wrangler already uses.

📖 AGENTS.md: ✅ LGTM

The packages/vitest-plugin/AGENTS.md and packages/workers-utils/AGENTS.md updates match the change.


📋 Code Quality: ✅ LGTM

  • Deprecated root exports: the root entry of @cloudflare/workers-utils now re-exports ./config/legacy. Every value and type it used to export from the config modules (including all the environment.ts types) has a deprecated alias there that points at the canonical export in config/public.ts.
  • Moved code: miniflare-options.ts, assets.ts and pages-assets.ts in deploy-helpers match the logic they replace in Wrangler. The changes are:
    • logging through the injected or shared logger, with logger.once optional;
    • readConfig taking an explicit logger;
    • narrower config types.
  • Wrangler's readConfig wrapper: it still shows the redirected-config message, throws a UserError on validation errors and honours hideWarnings.
  • Logging: loadDotEnv accepts a logger for Wrangler's early CLI path. The plugin's pool-scoped logger is wired through setDeployHelpersLogger.
  • Build config: the tsup aliases, the new deploy-helpers entry points, the external-dependency declarations and the lockfile all agree.

⚡ Performance: ✅ LGTM

Wrangler config conversion and the Pages asset helpers are still loaded lazily. The import-path changes have no runtime cost.


📝 Documentation: ✅ LGTM

The changesets and the workers-utils README and config guide describe the new entry point, the deprecations and the requirement that projects using the CLI declare wrangler themselves.


Reviewed commit: e0f4b86e

devin-ai-integration[bot]

This comment was marked as resolved.

clanky-the-clanker[bot]

This comment was marked as resolved.

@clanky-the-clanker clanky-the-clanker Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superseded by the review of f49b3648.

This review, of 3fe11343

✅ Approved — The earlier blake3-wasm note is fixed, and no correctness, security, performance, documentation or release issues remain at this commit.

Not opened by the correctness review: 172 changed files it was meant to read
  • packages/autoconfig/src/details/framework-detection.ts
  • packages/autoconfig/src/details/index.ts
  • packages/autoconfig/src/run.ts
  • packages/autoconfig/src/types.ts
  • packages/codemods/src/codemods/wrangler-to-cf/config-converter.ts
  • packages/codemods/src/codemods/wrangler-to-cf/config-reader.ts
  • packages/config/src/convert.ts
  • packages/containers-shared/src/deploy.ts
  • packages/containers-shared/src/dev-options.ts
  • packages/containers-shared/src/limits.ts
  • packages/deploy-helpers/package.json
  • packages/deploy-helpers/scripts/deps.ts
  • packages/deploy-helpers/src/deploy/helpers/assets.ts
  • packages/deploy-helpers/src/deploy/helpers/check-remote-secrets-override.ts
  • packages/deploy-helpers/src/deploy/helpers/check-workflow-conflicts.ts
  • packages/deploy-helpers/src/deploy/helpers/config-diffs.ts
  • packages/deploy-helpers/src/deploy/helpers/confirm-latest-deployment-overwrite.ts
  • packages/deploy-helpers/src/deploy/helpers/container-metadata.ts
  • packages/deploy-helpers/src/deploy/helpers/create-worker-upload-form.ts
  • packages/deploy-helpers/src/deploy/helpers/download-worker-config.ts
  • packages/deploy-helpers/src/deploy/helpers/durable-object-container-applications.ts
  • packages/deploy-helpers/src/deploy/helpers/durable.ts
  • packages/deploy-helpers/src/deploy/helpers/environments.ts
  • packages/deploy-helpers/src/deploy/helpers/exports.ts
  • packages/deploy-helpers/src/deploy/helpers/hash.ts
  • packages/deploy-helpers/src/deploy/helpers/match-tag.ts
  • packages/deploy-helpers/src/deploy/helpers/owned-workflows.ts
  • packages/deploy-helpers/src/deploy/helpers/placement.ts
  • packages/deploy-helpers/src/deploy/helpers/provision-bindings.ts
  • packages/deploy-helpers/src/deploy/helpers/secrets-validation.ts
  • packages/deploy-helpers/src/deploy/helpers/validate-routes.ts
  • packages/deploy-helpers/src/deploy/helpers/validate-worker-props.ts
  • packages/deploy-helpers/src/deploy/helpers/versions-api.ts
  • packages/deploy-helpers/src/deploy/versions-upload.ts
  • packages/deploy-helpers/src/preview/api.ts
  • packages/deploy-helpers/src/preview/format.ts
  • packages/deploy-helpers/src/preview/preview.ts
  • packages/deploy-helpers/src/preview/shared.ts
  • packages/deploy-helpers/src/shared/context.ts
  • packages/deploy-helpers/src/shared/partition-routes.ts
  • packages/deploy-helpers/src/shared/types.ts
  • packages/deploy-helpers/src/triggers/deploy.ts
  • packages/deploy-helpers/src/triggers/email-routing.ts
  • packages/deploy-helpers/src/triggers/publish-routes.ts
  • packages/deploy-helpers/src/triggers/queue-consumers.ts
  • packages/deploy-helpers/src/triggers/subdomain.ts
  • packages/deploy-helpers/src/triggers/zones.ts
  • packages/deploy-helpers/tsup.config.ts
  • packages/dev-helpers/package.json
  • packages/dev-helpers/scripts/deps.ts
  • … and 122 more

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

🚀 Release: ✅ LGTM

Overall risk: Medium.

Configuration handling and the local-development helpers move into shared packages that both Wrangler and the Vitest plugin use. The changesets cover:

  • the new entry points;
  • the compatibility aliases that are kept;
  • the removal of the plugin's wrangler dependency.

🔒 Security: ✅ LGTM

This pull request moves existing code and changes import paths. It adds no new inputs, trust boundaries or credential handling. The path-containment check in the Pages asset server is unchanged.


📖 AGENTS.md: ✅ LGTM

The package guidance files match the change.


📋 Code Quality: ✅ LGTM

  • blake3-wasm (fixed): it is gone from packages/deploy-helpers/package.json, scripts/deps.ts, tsup.config.ts and the deploy-helpers lockfile importer. hash.ts re-exports hashFile from @cloudflare/workers-utils/asset-hash.
  • Ported Miniflare options: packages/dev-helpers/src/miniflare-options.ts matches the code it replaces in Wrangler. The only differences are the injected logger and inlined types.
  • Wrangler wrappers: readConfig, getVarsForDev, loadDotEnv and unstable_getMiniflareWorkerOptions keep their previous behaviour and the upgrade hints.
  • Wrangler bundle aliases: the aliases in packages/wrangler/tsup.config.ts are ordered so the dev-helpers/* and workers-utils/config entry points resolve correctly.
  • Publish order: the tools/deployments test expectations match the new dependency graph.

⚡ Performance: ✅ LGTM

Wrangler config conversion and the Pages asset helpers are still loaded only when they are used.


📝 Documentation: ✅ LGTM

The changesets and READMEs cover:

  • the new /config entry point;
  • the deprecated root aliases;
  • the dev-helpers package;
  • the requirement that projects using the Wrangler CLI declare wrangler themselves.

Reviewed commit: 3fe11343

@petebacondarwin
petebacondarwin force-pushed the james/remove-wrangler-dep-from-vitest-plugin branch from 3fe1134 to f49b364 Compare November 18, 2026 16:24

@clanky-the-clanker clanky-the-clanker Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superseded by the review of 5655e187.

This review, of f49b3648

✅ Approved — No correctness, security, performance, documentation or release issues remain at this commit. The code changed since the last review moves asset option resolution and hashing into workers-utils without changing behaviour, and the earlier notes are all addressed.

Not opened by the correctness review: 153 changed files it was meant to read
  • packages/autoconfig/src/details/framework-detection.ts
  • packages/autoconfig/src/details/index.ts
  • packages/autoconfig/src/run.ts
  • packages/autoconfig/src/types.ts
  • packages/codemods/src/codemods/wrangler-to-cf/config-converter.ts
  • packages/codemods/src/codemods/wrangler-to-cf/config-reader.ts
  • packages/config/src/convert.ts
  • packages/containers-shared/src/deploy.ts
  • packages/containers-shared/src/dev-options.ts
  • packages/containers-shared/src/limits.ts
  • packages/deploy-helpers/package.json
  • packages/deploy-helpers/src/deploy/helpers/assets.ts
  • packages/deploy-helpers/src/deploy/helpers/check-remote-secrets-override.ts
  • packages/deploy-helpers/src/deploy/helpers/check-workflow-conflicts.ts
  • packages/deploy-helpers/src/deploy/helpers/config-diffs.ts
  • packages/deploy-helpers/src/deploy/helpers/confirm-latest-deployment-overwrite.ts
  • packages/deploy-helpers/src/deploy/helpers/container-metadata.ts
  • packages/deploy-helpers/src/deploy/helpers/create-worker-upload-form.ts
  • packages/deploy-helpers/src/deploy/helpers/download-worker-config.ts
  • packages/deploy-helpers/src/deploy/helpers/durable-object-container-applications.ts
  • packages/deploy-helpers/src/deploy/helpers/durable.ts
  • packages/deploy-helpers/src/deploy/helpers/environments.ts
  • packages/deploy-helpers/src/deploy/helpers/exports.ts
  • packages/deploy-helpers/src/deploy/helpers/hash.ts
  • packages/deploy-helpers/src/deploy/helpers/match-tag.ts
  • packages/deploy-helpers/src/deploy/helpers/owned-workflows.ts
  • packages/deploy-helpers/src/deploy/helpers/placement.ts
  • packages/deploy-helpers/src/deploy/helpers/provision-bindings.ts
  • packages/deploy-helpers/src/deploy/helpers/secrets-validation.ts
  • packages/deploy-helpers/src/deploy/helpers/validate-routes.ts
  • packages/deploy-helpers/src/deploy/helpers/validate-worker-props.ts
  • packages/deploy-helpers/src/deploy/helpers/versions-api.ts
  • packages/deploy-helpers/src/deploy/versions-upload.ts
  • packages/deploy-helpers/src/preview/api.ts
  • packages/deploy-helpers/src/preview/format.ts
  • packages/deploy-helpers/src/preview/preview.ts
  • packages/deploy-helpers/src/preview/shared.ts
  • packages/deploy-helpers/src/shared/context.ts
  • packages/deploy-helpers/src/shared/partition-routes.ts
  • packages/deploy-helpers/src/shared/types.ts
  • packages/deploy-helpers/src/triggers/deploy.ts
  • packages/deploy-helpers/src/triggers/email-routing.ts
  • packages/deploy-helpers/src/triggers/publish-routes.ts
  • packages/deploy-helpers/src/triggers/queue-consumers.ts
  • packages/deploy-helpers/src/triggers/subdomain.ts
  • packages/deploy-helpers/src/triggers/zones.ts
  • packages/deploy-helpers/tsup.config.ts
  • packages/dev-helpers/package.json
  • packages/dev-helpers/scripts/deps.ts
  • packages/dev-helpers/src/dev-vars.ts
  • … and 103 more

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

🚀 Release: ✅ LGTM

Overall risk: Medium. Configuration handling and the local-development helpers move into shared packages that both Wrangler and the Vitest plugin use, and the Vitest plugin no longer depends on wrangler. The changesets cover the affected packages and explain the installation change.


🔒 Security: ✅ LGTM

This pull request moves existing code between packages and changes import paths. It adds no new inputs, trust boundaries or credential handling. The lockfile adds only the workspace dev-helpers package and moves hash-wasm between workspace packages.


📖 AGENTS.md: ✅ LGTM

The package guidance files match the change.


📋 Code Quality: ✅ LGTM

  • Asset options: resolveAssetOptions and getAssetsOptions in packages/workers-utils/src/config/assets.ts match the deploy-helpers code they replace line for line. The router config, the run_worker_first warning and error, the _redirects/_headers handling and the asset config are all the same; the only difference is the injected logger. Deploy-helpers now wraps these functions with its own context logger and re-exports the validation helpers and error classes.
  • Logging: loadDotEnv accepts an injected logger, and Wrangler's early .check() middleware passes its own logger, so the .env debug diagnostics are kept. The Vitest plugin creates one logger per pool initializer, so warnings are deduplicated within a pool and a new pool starts with a fresh history. Both behaviours have tests.
  • Bundling: @cloudflare/dev-helpers is bundled into the Vitest plugin and still loaded lazily. workers-utils explicitly inlines @cloudflare/workers-shared for the new /config and /asset-hash entry points, and a test checks the emitted imports.
  • Wrangler wrappers: readConfig, getVarsForDev, loadDotEnv, unstable_getMiniflareWorkerOptions and unstable_generateASSETSBinding keep their previous signatures and behaviour, including the config-warning upgrade hints.

⚡ Performance: ✅ LGTM

Wrangler config conversion and the Pages asset helpers are still loaded only when they are used.


📝 Documentation: ✅ LGTM

The changesets and package READMEs cover the new /config entry point, the deprecated root aliases, the dev-helpers package and the new requirement that projects using the Wrangler CLI declare wrangler themselves.


Reviewed commit: f49b3648

@clanky-the-clanker clanky-the-clanker Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superseded by the review of 883e666d.

This review, of 5655e187

✅ Approved — No findings at this commit. Since the last approved review, the changes make @cloudflare/dev-helpers private and add an installed-package test that confirms the plugin loads without wrangler or the helper packages.

Not opened by the correctness review: 127 changed files it was meant to read
  • packages/autoconfig/src/details/framework-detection.ts
  • packages/autoconfig/src/details/index.ts
  • packages/autoconfig/src/run.ts
  • packages/autoconfig/src/types.ts
  • packages/codemods/src/codemods/wrangler-to-cf/config-converter.ts
  • packages/codemods/src/codemods/wrangler-to-cf/config-reader.ts
  • packages/containers-shared/src/dev-options.ts
  • packages/deploy-helpers/src/deploy/helpers/check-remote-secrets-override.ts
  • packages/deploy-helpers/src/deploy/helpers/check-workflow-conflicts.ts
  • packages/deploy-helpers/src/deploy/helpers/config-diffs.ts
  • packages/deploy-helpers/src/deploy/helpers/confirm-latest-deployment-overwrite.ts
  • packages/deploy-helpers/src/deploy/helpers/create-worker-upload-form.ts
  • packages/deploy-helpers/src/deploy/helpers/download-worker-config.ts
  • packages/deploy-helpers/src/deploy/helpers/durable-object-container-applications.ts
  • packages/deploy-helpers/src/deploy/helpers/durable.ts
  • packages/deploy-helpers/src/deploy/helpers/environments.ts
  • packages/deploy-helpers/src/deploy/helpers/exports.ts
  • packages/deploy-helpers/src/deploy/helpers/owned-workflows.ts
  • packages/deploy-helpers/src/deploy/helpers/placement.ts
  • packages/deploy-helpers/src/deploy/helpers/secrets-validation.ts
  • packages/deploy-helpers/src/deploy/helpers/validate-routes.ts
  • packages/deploy-helpers/src/deploy/helpers/versions-api.ts
  • packages/deploy-helpers/src/deploy/versions-upload.ts
  • packages/deploy-helpers/src/preview/api.ts
  • packages/deploy-helpers/src/preview/format.ts
  • packages/deploy-helpers/src/preview/preview.ts
  • packages/deploy-helpers/src/shared/types.ts
  • packages/deploy-helpers/src/triggers/deploy.ts
  • packages/deploy-helpers/src/triggers/email-routing.ts
  • packages/deploy-helpers/src/triggers/publish-routes.ts
  • packages/deploy-helpers/src/triggers/queue-consumers.ts
  • packages/deploy-helpers/src/triggers/subdomain.ts
  • packages/deploy-helpers/src/triggers/zones.ts
  • packages/dev-helpers/src/pages-assets-types.ts
  • packages/dev-helpers/tsconfig.json
  • packages/dev-helpers/tsconfig.pages-assets.json
  • packages/dev-helpers/turbo.json
  • packages/dev-helpers/vitest.config.mts
  • packages/remote-bindings/src/maybe-start-or-update-session.ts
  • packages/remote-bindings/src/start-remote-proxy-session.ts
  • packages/remote-bindings/src/startDevWorker/types.ts
  • packages/vite-plugin-cloudflare/src/miniflare-options.ts
  • packages/vite-plugin-cloudflare/src/plugins/additional-modules.ts
  • packages/vite-plugin-cloudflare/src/plugins/shortcuts.ts
  • packages/vite-plugin-cloudflare/src/plugins/tunnel.ts
  • packages/vitest-plugin/src/pool/containers.ts
  • packages/workers-auth/src/wrangler/index.ts
  • packages/wrangler/src/agent-memory/client.ts
  • packages/wrangler/src/ai-search/client.ts
  • packages/wrangler/src/ai/listCatalog.ts
  • … and 77 more

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

🚀 Release: ✅ LGTM

Overall risk: Medium. Shared configuration and development helpers that both Wrangler and the Vitest plugin use have moved into shared packages, and the Vitest plugin no longer depends on wrangler. The changesets cover the new /config entry point, the deprecated root aliases, and the requirement that projects using the Wrangler CLI declare wrangler themselves. @cloudflare/dev-helpers is private, so it needs no changeset.


🔒 Security: ✅ LGTM

This pull request moves code between packages and changes import paths. It adds no new inputs, trust boundaries or credential handling. The path-traversal guard in the Pages asset serving code is unchanged.


📖 AGENTS.md: ✅ LGTM

The package guidance files match the change.


📋 Code Quality: ✅ LGTM

The new private dev-helpers package declares its dependencies correctly. The installed-package regression test is a valid check that the plugin loads without wrangler or the helper packages. The Wrangler wrappers keep their previous signatures and their config-warning upgrade hints.


⚡ Performance: ✅ LGTM

Wrangler config conversion and the Pages asset helpers are still loaded only when they are used.


📝 Documentation: ✅ LGTM

The package READMEs and changesets match the change.


Reviewed commit: 5655e187

@petebacondarwin
petebacondarwin force-pushed the james/remove-wrangler-dep-from-vitest-plugin branch from 5655e18 to 883e666 Compare November 18, 2026 20:29

@clanky-the-clanker clanky-the-clanker Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superseded by the review of 727fc6d7.

This review, of 883e666d

✅ Approved — No findings at this commit. The build moves to tsdown and the helper loaders now take an injected logger, without changing the plugin's behaviour or Wrangler's public APIs.

Not opened by the correctness review: 128 changed files it was meant to read
  • packages/autoconfig/src/details/framework-detection.ts
  • packages/autoconfig/src/details/index.ts
  • packages/autoconfig/src/run.ts
  • packages/autoconfig/src/types.ts
  • packages/codemods/src/codemods/wrangler-to-cf/config-converter.ts
  • packages/codemods/src/codemods/wrangler-to-cf/config-reader.ts
  • packages/containers-shared/src/dev-options.ts
  • packages/deploy-helpers/src/deploy/helpers/check-remote-secrets-override.ts
  • packages/deploy-helpers/src/deploy/helpers/check-workflow-conflicts.ts
  • packages/deploy-helpers/src/deploy/helpers/config-diffs.ts
  • packages/deploy-helpers/src/deploy/helpers/confirm-latest-deployment-overwrite.ts
  • packages/deploy-helpers/src/deploy/helpers/create-worker-upload-form.ts
  • packages/deploy-helpers/src/deploy/helpers/download-worker-config.ts
  • packages/deploy-helpers/src/deploy/helpers/durable-object-container-applications.ts
  • packages/deploy-helpers/src/deploy/helpers/durable.ts
  • packages/deploy-helpers/src/deploy/helpers/environments.ts
  • packages/deploy-helpers/src/deploy/helpers/exports.ts
  • packages/deploy-helpers/src/deploy/helpers/owned-workflows.ts
  • packages/deploy-helpers/src/deploy/helpers/placement.ts
  • packages/deploy-helpers/src/deploy/helpers/secrets-validation.ts
  • packages/deploy-helpers/src/deploy/helpers/validate-routes.ts
  • packages/deploy-helpers/src/deploy/helpers/versions-api.ts
  • packages/deploy-helpers/src/deploy/versions-upload.ts
  • packages/deploy-helpers/src/preview/api.ts
  • packages/deploy-helpers/src/preview/format.ts
  • packages/deploy-helpers/src/preview/preview.ts
  • packages/deploy-helpers/src/shared/types.ts
  • packages/deploy-helpers/src/triggers/deploy.ts
  • packages/deploy-helpers/src/triggers/email-routing.ts
  • packages/deploy-helpers/src/triggers/publish-routes.ts
  • packages/deploy-helpers/src/triggers/queue-consumers.ts
  • packages/deploy-helpers/src/triggers/subdomain.ts
  • packages/deploy-helpers/src/triggers/zones.ts
  • packages/dev-helpers/src/pages-assets-types.ts
  • packages/dev-helpers/tsconfig.json
  • packages/dev-helpers/tsconfig.pages-assets.json
  • packages/dev-helpers/tsdown.config.ts
  • packages/dev-helpers/turbo.json
  • packages/dev-helpers/vitest.config.mts
  • packages/remote-bindings/src/maybe-start-or-update-session.ts
  • packages/remote-bindings/src/start-remote-proxy-session.ts
  • packages/remote-bindings/src/startDevWorker/types.ts
  • packages/vite-plugin-cloudflare/src/miniflare-options.ts
  • packages/vite-plugin-cloudflare/src/plugins/additional-modules.ts
  • packages/vite-plugin-cloudflare/src/plugins/shortcuts.ts
  • packages/vite-plugin-cloudflare/src/plugins/tunnel.ts
  • packages/vitest-plugin/src/pool/containers.ts
  • packages/workers-auth/src/wrangler/index.ts
  • packages/wrangler/src/agent-memory/client.ts
  • packages/wrangler/src/ai-search/client.ts
  • … and 78 more

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

🚀 Release: ✅ LGTM

Overall risk: Medium. Shared configuration and development helpers that both Wrangler and the Vitest plugin use have moved into shared packages, and the Vitest plugin no longer depends on wrangler. The changesets cover the workers-utils and Vitest plugin releases, including the requirement that projects using the Wrangler CLI declare wrangler themselves. @cloudflare/dev-helpers is private, so it needs no changeset.


🔒 Security: ✅ LGTM

This change moves code between packages and updates imports. It adds no new inputs, trust boundaries or credential handling. dev-helpers is private and has no install scripts, and the tsdown aliases resolve only to source paths inside the repository.


📖 AGENTS.md: ✅ LGTM

The package guidance files match the change.


📋 Code Quality: ✅ LGTM

The readConfig wrapper, the unstable_* wrappers, the logger injection in loadDotEnv and the tsdown entry and alias setup are all consistent with the previous behaviour. Wrangler no longer depends on @cloudflare/pages-shared or dotenv-expand directly; both now come in through the bundled dev-helpers package.


⚡ Performance: ✅ LGTM

Wrangler config conversion and the Pages asset helpers still load only when they are used.


📝 Documentation: ✅ LGTM

The package READMEs and changesets match the change.


Reviewed commit: 883e666d

@petebacondarwin
petebacondarwin force-pushed the james/remove-wrangler-dep-from-vitest-plugin branch from 883e666 to 727fc6d Compare November 19, 2026 16:13

@clanky-the-clanker clanky-the-clanker Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Approved — No findings at this commit. The changes since the last review only move imports to the new /config entry point and update the lockfile to match.

Not opened by the correctness review: 127 changed files it was meant to read
  • packages/autoconfig/src/details/framework-detection.ts
  • packages/autoconfig/src/details/index.ts
  • packages/autoconfig/src/run.ts
  • packages/autoconfig/src/types.ts
  • packages/codemods/src/codemods/wrangler-to-cf/config-converter.ts
  • packages/codemods/src/codemods/wrangler-to-cf/config-reader.ts
  • packages/containers-shared/src/dev-options.ts
  • packages/deploy-helpers/src/deploy/helpers/check-remote-secrets-override.ts
  • packages/deploy-helpers/src/deploy/helpers/check-workflow-conflicts.ts
  • packages/deploy-helpers/src/deploy/helpers/config-diffs.ts
  • packages/deploy-helpers/src/deploy/helpers/confirm-latest-deployment-overwrite.ts
  • packages/deploy-helpers/src/deploy/helpers/create-worker-upload-form.ts
  • packages/deploy-helpers/src/deploy/helpers/download-worker-config.ts
  • packages/deploy-helpers/src/deploy/helpers/durable-object-container-applications.ts
  • packages/deploy-helpers/src/deploy/helpers/durable.ts
  • packages/deploy-helpers/src/deploy/helpers/environments.ts
  • packages/deploy-helpers/src/deploy/helpers/exports.ts
  • packages/deploy-helpers/src/deploy/helpers/owned-workflows.ts
  • packages/deploy-helpers/src/deploy/helpers/placement.ts
  • packages/deploy-helpers/src/deploy/helpers/secrets-validation.ts
  • packages/deploy-helpers/src/deploy/helpers/validate-routes.ts
  • packages/deploy-helpers/src/deploy/helpers/versions-api.ts
  • packages/deploy-helpers/src/deploy/versions-upload.ts
  • packages/deploy-helpers/src/preview/api.ts
  • packages/deploy-helpers/src/preview/format.ts
  • packages/deploy-helpers/src/preview/preview.ts
  • packages/deploy-helpers/src/shared/types.ts
  • packages/deploy-helpers/src/triggers/email-routing.ts
  • packages/deploy-helpers/src/triggers/publish-routes.ts
  • packages/deploy-helpers/src/triggers/queue-consumers.ts
  • packages/deploy-helpers/src/triggers/subdomain.ts
  • packages/deploy-helpers/src/triggers/zones.ts
  • packages/dev-helpers/src/pages-assets-types.ts
  • packages/dev-helpers/tsconfig.json
  • packages/dev-helpers/tsconfig.pages-assets.json
  • packages/dev-helpers/tsdown.config.ts
  • packages/dev-helpers/turbo.json
  • packages/dev-helpers/vitest.config.mts
  • packages/remote-bindings/src/maybe-start-or-update-session.ts
  • packages/remote-bindings/src/start-remote-proxy-session.ts
  • packages/remote-bindings/src/startDevWorker/types.ts
  • packages/vite-plugin-cloudflare/src/miniflare-options.ts
  • packages/vite-plugin-cloudflare/src/plugins/additional-modules.ts
  • packages/vite-plugin-cloudflare/src/plugins/shortcuts.ts
  • packages/vite-plugin-cloudflare/src/plugins/tunnel.ts
  • packages/vitest-plugin/src/pool/containers.ts
  • packages/workers-auth/src/wrangler/index.ts
  • packages/wrangler/src/agent-memory/client.ts
  • packages/wrangler/src/ai-search/client.ts
  • packages/wrangler/src/ai/listCatalog.ts
  • … and 77 more

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

🚀 Release: ✅ LGTM

The changesets cover the workers-utils and Vitest plugin releases. They include the requirement that projects using the Wrangler CLI declare wrangler themselves. @cloudflare/dev-helpers is private and needs no changeset.


🔒 Security: ✅ LGTM

This change moves code into shared packages and rewrites imports. The Pages asset server keeps its path containment check, and no secrets are logged. It adds no new inputs, trust boundaries or credential handling.


📖 AGENTS.md: ✅ LGTM

The package guidance files match the change.


📋 Code Quality: ✅ LGTM

triggers/deploy.ts, triggers-diff.test.ts and Wrangler's triggers.test.ts only move imports to @cloudflare/workers-utils/config. The shared readConfig, the asset-option delegation, the logger injection in dev-vars/dot-env/miniflare-options, and the per-pool logger in the Vitest plugin all keep the previous behaviour.


⚡ Performance: ✅ LGTM

The Wrangler config conversion and Pages asset helpers still load only when they are used.


📝 Documentation: ✅ LGTM

The package READMEs and changesets match the change.


Reviewed commit: 727fc6d7

@petebacondarwin
petebacondarwin enabled auto-merge (squash) November 19, 2026 16:24

@petebacondarwin petebacondarwin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codeowners bypass

@workers-devprod workers-devprod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codeowners reviews satisfied

@petebacondarwin
petebacondarwin merged commit 629f135 into main Nov 19, 2026
88 checks passed
@petebacondarwin
petebacondarwin deleted the james/remove-wrangler-dep-from-vitest-plugin branch November 19, 2026 16:53
@github-project-automation github-project-automation Bot moved this from Untriaged to Done in workers-sdk Nov 19, 2026
brandhaug added a commit to brandhaug/b2b-saas-starter that referenced this pull request Nov 24, 2026
## pnpm-workspace.yaml (default)

## Dependency Updates

| Package | From | To | Type |
| --- | --- | --- | --- |
| `@cloudflare/vitest-plugin` | 1.8.5 | 1.9.0 | minor |
| `@cloudflare/workers-types` | 5.20261120.1 | 5.20261121.1 | minor |
| `miniflare` | 5.20261118.0-beta | 5.20261119.0-beta | minor |
| `wrangler` | 4.165.0 | 4.166.0 | minor |

## Release Notes

<details>
<summary><b>@<!---->cloudflare/vitest-plugin</b> (1.8.5 →
1.9.0)</summary>

### Minor Changes

- [#16174](cloudflare/workers-sdk#16174)
[`629f135`](cloudflare/workers-sdk@629f135)
Thanks [@<!---->james-elicx](https://github.com/james-elicx)! - Remove
the dependency on `wrangler`

The Vitest plugin no longer depends on `wrangler`. Reading the Wrangler
configuration file, generating Miniflare options, loading local
variables and serving the Pages `ASSETS` binding now use shared
workers-sdk packages that are bundled into the plugin. Installing the
plugin no longer installs `wrangler` as well. If your project runs the
`wrangler` CLI (for example `wrangler types`), add `wrangler` to your
own `devDependencies`.

### Patch Changes

- [#17031](cloudflare/workers-sdk#17031)
[`95fd4c2`](cloudflare/workers-sdk@95fd4c2)
Thanks [@<!---->dependabot](https://github.com/apps/dependabot)! -
Update `DEFAULT_COMPAT_DATE` to 2026-11-19

Use the bundled workerd release's compatibility date by default when
scaffolding new projects or when no compatibility date is configured.

- [#17043](cloudflare/workers-sdk#17043)
[`4f5b118`](cloudflare/workers-sdk@4f5b118)
Thanks [@<!---->petebacondarwin](https://github.com/petebacondarwin)! -
Update Undici to 7.30.2 to include upstream security fixes

This 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](cloudflare/workers-sdk#17035)
[`1b563db`](cloudflare/workers-sdk@1b563db)
Thanks [@<!---->petebacondarwin](https://github.com/petebacondarwin)! -
Fix remote bindings authentication with API tokens scoped to an
individual Worker

  Remote 

…[full
notes](https://github.com/cloudflare/workers-sdk/releases/tag/%40cloudflare/vitest-plugin%401.9.0)

</details>

<details>
<summary><b>miniflare</b> (5.20261118.0-beta →
5.20261119.0-beta)</summary>

### Minor Changes

- [#17016](cloudflare/workers-sdk#17016)
[`8f45554`](cloudflare/workers-sdk@8f45554)
Thanks [@<!---->edmundhung](https://github.com/edmundhung)! - Add
`unsafeIntrospectWorkflow()` and `unsafeIntrospectWorkflowInstance()`
for exported Workflows

They find a Workflow by its Worker's name and its class name, so code
running in Node.js can introspect a Workflow on `ctx.exports` that has
no `env` binding:

  ```ts
  const introspector = await mf.unsafeIntrospectWorkflow(
    "my-worker",
    "MyWorkflow"
  );
  ```

### Patch Changes

- [#17034](cloudflare/workers-sdk#17034)
[`8712fc5`](cloudflare/workers-sdk@8712fc5)
Thanks [@<!---->petebacondarwin](https://github.com/petebacondarwin)! -
Fix Local Explorer access through localhost subdomains

Miniflare now trusts `*.localhost` in Host and Origin checks for
`/cdn-cgi/` requests. This allows Local Explorer to load through
localhost subdomains without returning `403 Invalid Origin header` for
its module scripts and API requests.

- [#17031](cloudflare/workers-sdk#17031)
[`95fd4c2`](cloudflare/workers-sdk@95fd4c2)
Thanks [@<!---->dependabot](https://github.com/apps/dependabot)! -
Update `DEFAULT_COMPAT_DATE` to 2026-11-19

Use the bundled workerd release's compatibility date by default when
scaffolding new projects or when no compatibility date is configured.

- [#17031](cloudflare/workers-sdk#17031)
[`95fd4c2`](cloudflare/workers-sdk@95fd4c2)
Thanks [@<!---->dependabot](https://github.com/apps/dependabot)! -
Update dependencies of "miniflare", "wrangler"

  The following dependency versions have been updated:

  | Dependency                | From          | To            |
  | -----------------------

…[full
notes](https://github.com/cloudflare/workers-sdk/releases/tag/miniflare%405.20261119.0-beta)

</details>

<details>
<summary><b>wrangler</b> (4.165.0 → 4.166.0)</summary>

### Minor Changes

- [#16961](cloudflare/workers-sdk#16961)
[`bf7568a`](cloudflare/workers-sdk@bf7568a)
Thanks [@<!---->dario-piotrowicz](https://github.com/dario-piotrowicz)!
- Show configured trigger targets during experimental `wrangler triggers
deploy --dry-run`

Dry 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](cloudflare/workers-sdk#16679)
[`be6aa81`](cloudflare/workers-sdk@be6aa81)
Thanks [@<!---->mglewis](https://github.com/mglewis)! - Add
`images.url_transformations` to the Wrangler configuration

The `images` block now accepts a `url_transformations` object for
controlling `/cdn-cgi/image/` transformations on requests served by a
Worker. `enabled` is required, and `allowed_origins` optionally lists
the origins images may be fetched from (use `["*"]` to allow any
origin). `binding` is now optional, so `url_transformations` can be
configured without an Images binding:

  ```jsonc
  {
    "images": {
      "url_transformations": {
        "enabled": true,
        "allowed_origins": ["images.example.com"]
      }
    }
  }
  ```

Like the rest of the `images` block, `url_transformations` is not
inherited by named environments, and must be specified in each
environment that needs it.

`cloudflare.config.ts` gains the equivalent setting as a top-level
`images` field on the Worker, with the Images binding remaining in
`env`:

  ```ts
  export default defineConfig({
    worker: {
      name: "my-worker

…[full
notes](https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.166.0)

</details>

---
*This PR was auto-generated by
[catalog-update-action](https://github.com/brandhaug/catalog-update-action).*

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

No Wrangler-free way to test a Worker: @cloudflare/vitest-pool-workers depends on wrangler

3 participants