Skip to content

[vite-plugin] Prepare v1 November 9 runtime and auth dependencies - #16757

Merged
edmundhung merged 6 commits into
codex/vite-v1-backport-16186from
codex/vite-v1-runtime-20261106
Nov 11, 2026
Merged

edmundhung merged 6 commits into
codex/vite-v1-backport-16186from
codex/vite-v1-runtime-20261106

Conversation

@petebacondarwin

@petebacondarwin petebacondarwin commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Prepare the next Vite plugin v1 runtime and remote-binding dependency upgrade from #16792, #16793, #16746, #16599, #16683, #16442, #16648 and the relevant multipart API change in #15621. This is stacked on #16730 (which now includes merged #16756) and #16704; earlier published runtime upgrades remain in their existing PR.

The independently useful v1 effects are the November 9 workerd runtime, CLOUDFLARE_AUTH_PROFILE selection through retained remote-bindings' existing profile resolver, session-only account selection for experimental CLOUDFLARE_CF_AUTH, and lower memory use in retained remote-binding preview uploads (createWorkerPreview uses workers-utils' multipart API helper). Wrangler authentication preserves account persistence. V2 native-config hooks and tunnel authentication are excluded.

Pin intended Miniflare 5.20261109.0-beta consistently in the plugin, retained remote-bindings and account-id fixture; Wrangler 4.159.0 and its peer minimum; workers-utils 0.52.1 across matching consumers; workers-auth 0.17.0; deploy-helpers 0.26.1 to align the shared upload binding types; and workers-types 5.20261109.1. Keep coupled upgrades here without repeating them in mapping-only PRs. The pending release now also supplies #16792 (November 9 workerd/types/default compatibility date) and #16793 (bundled Cap'n Proto serialization fixes). Neither workerd nor capnp-es is a direct v1 workspace dependency; consume the fixes through Miniflare without restoring removed package sources, generated bindings or tests. The pending release also includes #16442 (session-scoped Container cleanup) and #16648 (bundled security fixes). The workspace Node minimum is aligned to 22.12.0, required by the upgraded runtime. The plugin Container cleanup adaptation from #16413 is stacked separately in #16770; no public source or dependency tests are copied. The single workers-auth upgrade supplies both #16599 and #16683; no separate PR or test transplant is needed. Two plugin changesets describe the experimental auth feature and runtime/upload fixes, including Container resource cleanup, bundled security fixes and the Node requirement. Private workspace:* dependencies remain intact; no public package source/tests/helpers are restored.

Publication and validation: Version Packages #16729 merged November 9 and published exactly the intended versions. Genuine pnpm install succeeds and the regenerated pnpm lockfile is committed. With Node 22.22.1 / pnpm 10.33.0, pnpm build, pnpm check (58 tasks), pnpm test:ci (266 plugin tests plus retained suites) and pnpm test:fixtures pass on this released graph. No credentialed E2E or full Vite/OS/Docker matrix was run. The next unpublished release is tracked separately above #16770; this PR keeps the compatible November 9 release supplied by #16729. Native GitHub stack #16738 records the dependency ordering.

Original dependency coverage is now supplied and validated by the published graph. #16746's recorded author is dependabot[bot], with human ant-core approval by @petebacondarwin. #16599: author @petebacondarwin, ant-core approver @dario-piotrowicz. #16683: author @jamesopstad, latest qualifying ant-core approver @edmundhung. #15621: author @petebacondarwin, ant-core approver @NuroDev. #16792: recorded author dependabot[bot], with latest pre-merge human ant-core approval by @petebacondarwin (2026-11-09T08:44:26Z). #16793: author @vicb, with latest pre-merge human ant-core approval by @petebacondarwin (2026-11-09T09:40:32Z). Review histories and current ant-core membership were verified.


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because: dependency implementations are consumed from npm; existing plugin and retained-package suites pass on the released graph as detailed above.
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: maintenance dependency changes and experimental environment-variable support are described in the plugin changesets; v1 retains Wrangler JSON/TOML configuration.

Note

This is a contribution from an AI agent: Codex.

Validation note: an initial concurrent fixture run encountered a local peer mismatch after the workspace manifests were moved to the next draft graph. Restoring the stable released graph and rerunning dev-registry passed all 30 tests (103 seconds); the other retained fixture tasks passed. This was validation interference, with no committed graph defect or code fix.

@changeset-bot

changeset-bot Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a4c02f4

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

This PR includes changesets to release 1 package
Name Type
@cloudflare/vite-plugin Minor

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

@petebacondarwin

Copy link
Copy Markdown
Contributor Author

Could the verified original authors and human ant-core approvers check this v1 dependency backport and approve it if it looks good?

This is stacked on #16756/#16730/#16704. Earlier published dependency coverage stays in #16704. The new intended dependency versions are not yet published, so this PR is draft: npm returns 404 and genuine lockfile regeneration fails. The lockfile is unchanged. Please assess the v1 scope/adaptation now; merge remains blocked until publication, genuine installation and build/type/test validation of the new graph. No public dependency source or upstream tests are restored.

@petebacondarwin

Copy link
Copy Markdown
Contributor Author

For #16442, @ghostwriternr (verified original author) and @petebacondarwin (human ant-core approver, approved before merge): please check this v1 backport and approve it if it looks good. The pending Miniflare 5.20261106.0-beta release supplies session-scoped Container cleanup; the v1 plugin cleanup-hook adaptation from #16413 is being stacked on this draft. No Miniflare source/tests are copied.

For #16648, @dario-piotrowicz (verified original author) and @petebacondarwin (most recent qualifying human ant-core approval before merge): please check this v1 backport and approve it if it looks good. The same pending runtime supplies bundled dependency security fixes; this draft also aligns the workspace Node minimum to 22.12.0. Earlier published upgrades stay in #16704.

Version Packages #16729 remains open and the intended npm versions still return 404. This remains draft until publication, genuine lockfile regeneration and validation of the new graph. Existing original-specific requests above are not repeated.

@petebacondarwin petebacondarwin changed the title [vite-plugin] Prepare v1 November 6 runtime and auth dependencies [vite-plugin] Prepare v1 November 9 runtime and auth dependencies Nov 9, 2026
@petebacondarwin

Copy link
Copy Markdown
Contributor Author

For #16792, recorded author dependabot[bot] (@dependabot) and @petebacondarwin (verified human ant-core approver, approved 2026-11-09T08:44:26Z): please check this v1 backport and approve it if it looks good. This refreshes the existing pending dependency upgrade to Miniflare 5.20261109.0-beta with Workers types 5.20261109.1 across active v1 consumers. The coupled Wrangler/shared upgrades already live here; workers-utils 0.52.1 will also supply the updated default compatibility date. No separate mapping PR or dependency tests are added.

For #16793, @vicb (verified original author) and @petebacondarwin (verified human ant-core approver, approved 2026-11-09T09:40:32Z): please check this v1 dependency backport and approve it if it looks good. The same intended Miniflare release supplies the bundled Cap’n Proto serialization fixes; capnp-es, generated Miniflare bindings and upstream tests are absent from the v1 workspace and are not copied here.

Version Packages #16729 is still open. Exact npm endpoints for the intended Miniflare/Wrangler/shared versions return 404; genuine lockfile generation fails with ERR_PNPM_NO_MATCHING_VERSION for Miniflare 5.20261109.0-beta. Pinning/changeset validation, formatting and diff checks pass. This remains draft until publication, a genuine lockfile and build/type/relevant-test validation on the released graph. Earlier published dependency coverage remains in #16704; Container plugin adaptation remains in #16770. Existing original-specific review requests are not repeated.

Base automatically changed from codex/vite-v1-backport-16608 to codex/vite-v1-backport-16186 November 9, 2026 15:28
@petebacondarwin
petebacondarwin marked this pull request as ready for review November 9, 2026 16:49
@workers-devprod
workers-devprod requested review from a team and jamesopstad and removed request for a team November 9, 2026 16:50
@workers-devprod

workers-devprod commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler

@pkg-pr-new

pkg-pr-new Bot commented Nov 9, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/@cloudflare/vite-plugin@16757

commit: a4c02f4

@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.

✅ Devin Review: No Issues Found

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

Devin Review

@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 — The version bumps are consistent across all consumers, private workspace dependencies are kept, and the changesets match the change. No issues 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

Risk: Low. The plugin changesets are patch-level and match the dependency changes.


🔒 Security: ✅ LGTM

No security concerns in the dependency and changeset changes.


📖 AGENTS.md: ✅ LGTM

The change follows the repository conventions: npm dependencies are bumped to exact versions and private dependencies stay as workspace:*.


📋 Code Quality: ✅ LGTM

Miniflare, Wrangler, workers-utils and workers-types are pinned to the same versions in every consumer. No older versions remain, and private dependencies stay as workspace:*.


⚡ Performance: ✅ LGTM

No performance concerns.


📝 Documentation: ✅ LGTM

The changesets describe the user-facing effects of the change accurately.


Reviewed commit: a4c02f40

@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

@edmundhung
edmundhung merged commit 110539e into vite-plugin-v1 Nov 11, 2026
31 of 34 checks passed
@edmundhung
edmundhung deleted the codex/vite-v1-runtime-20261106 branch November 11, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants