Skip to content

[vite-plugin v1 backport] Update November 19 runtime and remote sessions - #17054

Merged
petebacondarwin merged 5 commits into
codex/vite-v1-backport-17041from
codex/vite-v1-backport-17031
Nov 23, 2026
Merged

petebacondarwin merged 5 commits into
codex/vite-v1-backport-17041from
codex/vite-v1-backport-17031

Conversation

@petebacondarwin

@petebacondarwin petebacondarwin commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Backports #17031's November 19 runtime/default compatibility date and #17035's Worker-scoped remote binding preview sessions to v1. The exact remote-bindings implementation and all nine original regression cases are retained; its changeset is scoped to the published v1 plugin. Absent public Wrangler source/tests are not restored.

Version Packages #17027 is merged and its required packages are now published. This PR pins Miniflare 5.20261119.0-beta, Wrangler 4.166.0, workers-utils 0.56.0, deploy-helpers 0.29.0, Workers types 5.20261119.1, and remote-bindings’ workers-auth 0.18.6 / cli-shared-helpers 0.3.12 consistently across the plugin and direct retained consumers. The pnpm lockfile is regenerated from npm. Private workspace:* references and intentionally older fixture/playground API pins remain intact. This supersedes the earlier publication blocker; merged #17012 supplies the preceding November 18 increment.

The runtime adaptation preserves #17031 through exact public dependency pins; Miniflare supplies workerd 1.20261119.1 and workers-utils supplies DEFAULT_COMPAT_DATE 2026-11-19. #17035 uses the same Worker-scoped endpoint, derives the hostname from exchange_url, and retains the legacy account subdomain fallback. Before/after evidence recovered from November 19 shows all nine original regression tests failing before and all 49 retained remote-bindings tests passing after. All 49 tests also pass with the final installed, published runtime and auth dependencies. Live validation with a granular account-owned token remains outstanding, as in the original.

Installed-version validation: pnpm install --no-frozen-lockfile, pnpm check (58 tasks, including build/types/lint/format), pnpm test:ci (8 tasks, including 271 plugin tests) and pnpm test:fixtures (6 tasks, including 30 dev-registry tests, 5 API harness tests and 2 browser harness tests) pass. The initial check reproduced eight deprecated-root-export lint errors introduced by #16174 in the newly published workers-utils. Six retained source files now import the same canonical Config types / partitionExports / resolveBindingRemote / createArtifactsLocalDefaultWarner values from /config. Upstream legacy.ts aliases those exact exports, so this is a required import-path compatibility adaptation with no behavior change. No standalone mapping PR or copied public-package tests are added. No credentialed E2E or granular-token live validation is claimed.

Native GitHub stack #17084 is rooted at vite-plugin-v1: #17082 → #17083 → #17085 → this PR → #17105 → #17106. Preserve earlier merged dependencies and these validated increments. Published Miniflare and Wrangler metadata both verify internal Undici 7.30.2, supplying their portion of #17043 alongside #17083. The existing remote-bindings auth and CLI helper pins also advance to the matching releases, removing their older Undici copies. Intentionally older standalone fixture/playground and containers-shared API pins remain unchanged; this does not claim every historical lockfile copy is upgraded. This release also supplies the shared localhost fix from #17034 and relevant shared validation from #17044/#16679. Merged release #17027 is covered here; no duplicate release PR is needed. By explicit maintainer decision on November 20, #17034's opt-in Vite host forwarding is v2-only, while the shared localhost fix is consumed through Miniflare. The #17076 lazy-loading optimization will not be backported to v1. Neither source change is included here, and no guidance remains pending. The required #16174 canonical-import adaptation is described above.


  • 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: original remote-session fix and runtime refresh preserve existing APIs and configuration; plugin changesets describe behavior.

Note

This is a contribution from an AI agent: Codex.

@changeset-bot

changeset-bot Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4d078f0

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

@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@edmundhung (latest qualifying human approval before merge, current ant-core member), please check this v1 backport of #17031 and approve if it looks good.

The original author is dependabot[bot], so there is no human original author to request. This uses exact Miniflare/workers-utils pins for the original runtime/default-date behavior and preserves earlier #17012 dependency coverage. Required November 19 packages are unpublished; please check the draft and approve if it looks good after publication, real lockfile regeneration and runtime validation.

Native stack #17050 is rooted at vite-plugin-v1.

Base automatically changed from codex/vite-v1-backport-17023 to vite-plugin-v1 November 20, 2026 08:46
@petebacondarwin
petebacondarwin force-pushed the codex/vite-v1-backport-17031 branch from d43436f to 62ab215 Compare November 20, 2026 08:46
@petebacondarwin
petebacondarwin removed this pull request from stack #17050 November 20, 2026 11:25
@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@petebacondarwin @edmundhung, please check this v1 backport of #17035 and approve if it looks good. You are the verified original author and latest qualifying human ant-core approver before merge (deduplicated where applicable).

The retained remote-bindings implementation and all nine original regression cases are carried directly from #17035. Only the changeset is limited to the v1 plugin; absent Wrangler tests are not restored. This existing draft also carries #17031 runtime pins, with earlier dependencies supplied by merged #17012. The newer packages remain unpublished; final installed-stack validation is pending.

@petebacondarwin
petebacondarwin force-pushed the codex/vite-v1-backport-17031 branch from 62ab215 to 5323a5a Compare November 20, 2026 14:08
@petebacondarwin
petebacondarwin changed the base branch from vite-plugin-v1 to codex/vite-v1-backport-17041 November 20, 2026 14:08
@petebacondarwin petebacondarwin changed the title [vite-plugin v1 backport] Update to the November 19 runtime [vite-plugin v1 backport] Update November 19 runtime and remote sessions Nov 20, 2026
@petebacondarwin
petebacondarwin force-pushed the codex/vite-v1-backport-17031 branch from 5323a5a to 75441c4 Compare November 21, 2026 12:34
@petebacondarwin
petebacondarwin marked this pull request as ready for review November 21, 2026 14:07
@workers-devprod
workers-devprod requested review from a team and edmundhung and removed request for a team November 21, 2026 14:07
@workers-devprod

workers-devprod commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler

@pkg-pr-new

pkg-pr-new Bot commented Nov 21, 2026 •

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

commit: 4d078f0

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

This review, of b86fc8b7

✅ Approved — No correctness, security, performance or release problems found. The remote preview-session change keeps the old subdomain fallback, and the dependency pins match across the plugin and its direct consumers.

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. The runtime dependency refresh and the Worker-scoped preview-session change both affect remote development. Each has its own plugin changeset, and the dependency pins match. Live validation with credentials has not been done yet.


🔒 Security: ✅ LGTM

No issues found.


📖 AGENTS.md: ✅ LGTM

No issues found.


📋 Code Quality: ✅ LGTM

No issues found.


⚡ Performance: ✅ LGTM

Taking the preview host from exchange_url skips the workers.dev subdomain lookup when that URL is present. The other changes are dependency pins and import-path moves, which add no runtime cost.


📝 Documentation: ✅ LGTM

No issues found.


Reviewed commit: b86fc8b7

@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 found 5 potential issues.

Devin Review

Comment thread .changeset/v1-runtime-20261119.md Resolved
@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@james-elicx @petebacondarwin, please check this v1 backport of #16174 and approve if it looks good. You are the verified original author and latest qualifying human ant-core approver before merge (deduplicated where applicable).

This existing runtime backport consumes the published workers-utils 0.56.0 extraction. Installed-version checks reproduced eight deprecated root-export errors; six retained files now use the canonical /config imports. Upstream legacy aliases point to the same types/functions. The real lockfile, full build/types/checks, package tests and retained fixtures now pass. No public sibling source is restored.

Native GitHub stack #17084 is rooted at vite-plugin-v1. Earlier runtime and dependency coverage is supplied by #17054; no duplicate dependency PR is created.

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

This review, of e974f141

✅ Approved — No correctness, security, performance or release problems found. The pins match across the plugin and its direct consumers, and the remote preview-session change keeps the old subdomain fallback.

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. This release combines the runtime and dependency refresh (#17031) with the Worker-scoped remote preview sessions (#17035), and each has its own patch changeset scoped to the v1 plugin. The dependency pins match. Live validation with credentials is still outstanding.


🔒 Security: ✅ LGTM

No issues found.


📖 AGENTS.md: ✅ LGTM

No issues found.


📋 Code Quality: ✅ LGTM

The changeset and packages/remote-bindings/package.json match the rest of the pull request. The /config import moves only change where things are imported from; the behaviour is the same. getWorkersDevPreviewHost falls back to the account subdomain lookup when exchange_url is missing, can't be parsed, or has a single-label hostname. The new tests cover the public and fedramp_high hosts, the fallback inputs, subdomain registration after a 404, and authorization errors.


⚡ Performance: ✅ LGTM

When exchange_url is present, the preview host is taken from it, which skips the workers.dev subdomain lookup. The other changes are dependency pins and import-path moves, which add no runtime cost.


📝 Documentation: ✅ LGTM

No issues found.


Reviewed commit: e974f141

@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 found 2 new potential issues.

Devin Review

Comment thread .changeset/v1-runtime-20261119.md Resolved
Comment thread .changeset/v1-runtime-20261119.md Resolved
@petebacondarwin
petebacondarwin force-pushed the codex/vite-v1-backport-17031 branch from e974f14 to 4d078f0 Compare November 21, 2026 22:15

@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 correctness, security, performance or release problems found. The pins match across the plugin and its direct consumers, and the remote preview-session change keeps the old subdomain fallback.

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. This release combines the runtime and dependency refresh (#17031) with the Worker-scoped remote preview sessions (#17035), and each has its own patch changeset scoped to the v1 plugin. The dependency pins match. Live validation with credentials is still outstanding.


🔒 Security: ✅ LGTM

No issues found.


📖 AGENTS.md: ✅ LGTM

No issues found.


📋 Code Quality: ✅ LGTM

The changeset and packages/remote-bindings/package.json match the rest of the pull request. The /config import moves only change where things are imported from; the behaviour is the same. getWorkersDevPreviewHost falls back to the account subdomain lookup when exchange_url is missing, can't be parsed, or has a single-label hostname. The new tests cover the public and fedramp_high hosts, the fallback inputs, subdomain registration after a 404, and authorization errors.


⚡ Performance: ✅ LGTM

When exchange_url is present, the preview host is taken from it, which skips the workers.dev subdomain lookup. The other changes are dependency pins and import-path moves, which add no runtime cost.


📝 Documentation: ✅ LGTM

No issues found.


Reviewed commit: 4d078f09 — same changes as e974f141, so this is that commit's review (no new review was run; line numbers are as of e974f141)

Comment thread .changeset/v1-runtime-20261119.md Resolved
Comment thread .changeset/v1-runtime-20261119.md Resolved

@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 02fb0d4 into vite-plugin-v1 Nov 23, 2026
27 checks passed
@petebacondarwin
petebacondarwin deleted the codex/vite-v1-backport-17031 branch November 23, 2026 18:42
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.

3 participants