Skip to content

[vite-plugin v1 backport] Update November 27 runtime and asset compatibility - #17171

Merged
NuroDev merged 11 commits into
vite-plugin-v1from
codex/vite-v1-backport-17140
Dec 3, 2026
Merged

NuroDev merged 11 commits into
vite-plugin-v1from
codex/vite-v1-backport-17140

Conversation

@petebacondarwin

@petebacondarwin petebacondarwin commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Consume the published November 27 runtime fixes in Vite plugin v1, including safe asset-directory traversal in preview, EmailMessage byte streams, RealtimeKit bindings, OIDC configuration, and FedRAMP High aliases. This backport consumes the published graph from #17232; no additional upgrade PR is needed.

Exact pins: Miniflare 5.20261127.1-beta, Wrangler 4.169.1 (peer minimum ^4.169.1), workers-utils 0.59.0, workers-auth 0.19.1, deploy-helpers 0.32.0, cli-shared-helpers 0.4.0, containers-shared 0.28.1, and Workers types 5.20261127.1. The plugin and current-release retained consumers advance together. The regenerated pnpm lockfile contains actual published resolutions, and frozen installation passes. Retained private packages keep their workspace:* references and existing implementations.

Original intent and useful v1 changes:

  • #17140, #17160, #17220, and release #17152: the latest runtime supplies the intervening upgrades together. Copy the retained email proxy patch and four regressions directly; actual Vite requests exercise string/stream Unicode email. The zero-config compatibility date expects November 27.
  • #17161 and #17168: exact public pins supply the RealtimeKit adapter and native discriminator fix. V1 has no cloudflare.config.ts converter to patch. Keep the original missing-session regression through Vite; retained-proxy integration also checks successful createMeeting/addParticipant capabilities through the real released Miniflare RPC encoder without Cloudflare credentials.
  • #17075: consume Worker D1 upload database_id metadata through deploy-helpers, including retained remote-bindings preview uploads, preserving the original Pages compatibility.
  • #17088: consume OIDC audience validation and build-output preservation through public pins. Vite build regressions check audiences, optional RS256, and whitespace rejection. Signing remains unsupported locally upstream.
  • #17182: consume stable Artifacts Git-port reservation through Miniflare. Existing Vite Artifacts integration tests cover its consumer.
  • #17203: consume both FedRAMP High spellings and corrected OAuth guidance. The coupled containers-shared upgrade removes its old nested utils parser, which rejected managed images before credential setup. Adapt its helper API by removing unused configFileName and renaming disableContainersHint to dockerUnavailableHint, preserving the exact Vite guidance and registry command. Actual plugin regressions exercise managed-image lookup and credentials with both spellings.
  • #17164: consume the original Miniflare walker through the published pin. Copy the retained workers-shared createAssetsCopyFilter source and private tests directly, preserving v1's readAssetsIgnoreFile export. Actual Vite preview tests check directory aliases, URL exclusions, ignored-directory traversal, and ancestor cycles. The unreadable ignored-directory case verifies startup without traversing the excluded directory; it requires EACCES before preview starts, restores permissions in try/finally before fixture cleanup, and skips Windows/root runs. V1 dev serves assets through Vite, so the runtime regression uses preview after a real build. Public sibling source, scaffolding, helpers, fixtures, and unit tests are not restored.
  • #17234: copy fallback-pattern support into existing retained workers-shared. Adapt absent/empty/explicit .assetsignore coverage to that private helper. No absent public writeAssets/onSkip API is recreated. Private-only changes need no separate plugin changeset; preview's user-facing improvement has its own patch changeset.

This is the only open maintenance backport and directly targets vite-plugin-v1. Superseded #17170 remains deliberately closed after upstream #17223 reverted lazy login (#17045/#17176). Those commits are excluded.

Independent maintainer guidance remains pending for #17142's absent publishing implementation and #17205's .env restart fix, which would require a different source-aware loader in v1. Those changes are not implemented or claimed here. V1 retains Wrangler profile/configured-account precedence.

Validation on November 29 with Node 22.22.1 and pnpm 10.33.0, using the published graph (November 30 repair validation below):

  • Real installation, regenerated lockfile, and subsequent frozen installation pass.
  • Build passes all 3 tasks; built-entry-point checks pass. Full pnpm check passes all 58 tasks, including types, lint, formatting, changesets, and package validation.
  • Full pnpm test:ci passes all 8 tasks, including all 287 plugin tests and retained email/RealtimeKit wire coverage.
  • Retained fixtures pass all 6 tasks: 30 dev-registry cases, 5 test-harness cases, and 2 Playwright cases.
  • Rebuild/install the prior published graph (Miniflare 5.20261127.0-beta / Wrangler 4.169.0): the alias/URL-exclusion control passes, ignored-directory traversal fails with EACCES, and the ancestor-cycle regression fails with ELOOP. Restore/install/rebuild the final published graph: all three real Vite preview cases pass.
  • An initial package run hit a Container module-runner restart failure while workspace checks were building; an initial fixture run overlapped dependency comparisons and timed out starting a queue fixture. Both complete suites pass when rerun with the final graph held stable. No product workaround was introduced.
  • Credentialed E2E tests and the full Vite 6/7/8 playground matrix were not run locally; GitHub CI supplies the wider matrix. Human approval on this backport remains required.

Earlier direct regressions remain recorded: private asset-copy tests fail twice before #17164 and pass afterward; fallback behavior fails before #17234 and all 17 helper tests pass afterward; managed-image fedramp-high rejects before the coupled parser upgrade and passes afterward. Real-wire email integration also passes on the old proxy, so it is an integration control; the directly copied four-case unit regression establishes the reconstruction fix.

November 30 CI repair:

  • Remove the unpublished November 29 upgrade: its manifests could not be installed or matched to a real lockfile, so every CI job failed during frozen installation. The final diff uses published Miniflare 5.20261127.1-beta / Wrangler 4.169.1 and matching actual lockfile resolutions.
  • Preserve the review fixes: permission-test cleanup and privilege guard, corrected November 27 release notes, and the standalone E2E fixture pin aligned with the plugin.
  • Bump the workerd-and-workers-types group with 2 updates #17284 is pending publication of Version Packages #17276 and is excluded from this PR. It is not claimed as covered; resume it after the required public packages are actually on npm.
  • Frozen installation, build (3 tasks), full workspace checks (58 tasks), and all 8 package/support test tasks pass on the restored published graph. Retained fixtures also pass all 6 tasks (30 dev-registry cases, 5 harness cases and 2 Playwright cases). The GitHub matrix verifies all supported platforms.

  • 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: This consumes upstream runtime features and fixes; plugin changesets document user-facing behavior.

Note

This is a contribution from an AI agent: OpenAI Codex.

@changeset-bot

changeset-bot Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d5177fc

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

@petebacondarwin — please check this v1 backport of #17140 and approve if it looks good.

The retained email proxy patch and four tests are copied directly; actual Vite string/stream EmailMessage regressions reproduce the original failure. Runtime/default changes will be supplied by exact public pins together with #17160. The draft is waiting for #17152 publication and full validation.

The original author is dependabot[bot] (automated); requesting the verified human ant-core approver.

@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@petebacondarwin — please check this v1 backport of #17160 and approve if it looks good.

The November 25 runtime/default-date change is combined with the preceding November 24 upgrade in this draft. It uses exact public pins and a real plugin date regression. Publication of #17152 and lockfile/full validation remain blocked.

The original author is dependabot[bot] (automated); requesting the verified human ant-core approver.

@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@thisisamank @petebacondarwin — please check this v1 backport of #17161 and approve if it looks good.

The draft consumes the original public binding implementations via exact Miniflare/Wrangler/support-package pins. V1 has no cloudflare.config.ts converter to patch. Publication of #17152, lockfile generation, and actual plugin integration validation remain pending.

@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@petebacondarwin @edmundhung — please check this v1 backport of #17075 and approve if it looks good.

The corrected Worker D1 preview-upload serializer is consumed by the retained remote-bindings package through deploy-helpers 0.31.0 and coupled exact public pins, keeping the upstream Pages compatibility. This draft waits for #17152 publication and validation.

devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

@petebacondarwin
petebacondarwin force-pushed the codex/vite-v1-backport-17140 branch from 9b09cf9 to 70cee08 Compare November 26, 2026 14:23
@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@efalcao @dario-piotrowicz — please check this v1 backport of #17088 and approve if it looks good.

This existing draft consumes the original public OIDC config/validation/upload support via its already-planned exact Wrangler 4.169.0, workers-utils 0.58.0 and deploy-helpers 0.31.0 pins. Actual Vite build tests check preserved audiences/algorithms and invalid-audience rejection. OIDC signing intentionally remains unsupported locally. Publication of #17152, a real lockfile, and full validation remain blocked.

@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@jamesopstad @petebacondarwin — please check this v1 backport of #17168 and approve if it looks good.

The draft’s already-planned Miniflare 5.20261125.0-beta pin supplies the original v4 adapter and RealtimeKit runtime casing fix; no duplicate dependency upgrade or absent native config converter is added. A Vite request adapts the original missing-remote-session regression. Publication of #17152 and full integration/lockfile validation remain blocked.

@petebacondarwin
petebacondarwin force-pushed the codex/vite-v1-backport-17140 branch from 70cee08 to 1598e5b Compare November 26, 2026 14:25
devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

@petebacondarwin
petebacondarwin removed this pull request from stack #17172 November 27, 2026 14:02
@petebacondarwin
petebacondarwin changed the base branch from codex/vite-v1-backport-17045 to vite-plugin-v1 November 27, 2026 14:02
@petebacondarwin
petebacondarwin force-pushed the codex/vite-v1-backport-17140 branch from 1598e5b to 8349e64 Compare November 27, 2026 14:04
@petebacondarwin petebacondarwin changed the title [vite-plugin v1 backport] Update November 25 runtime and binding compatibility [vite-plugin v1 backport] Update November 27 runtime and binding compatibility Nov 27, 2026
@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@danlapid @petebacondarwin — please check this v1 backport of #17182 and approve if it looks good.

The existing draft consumes the original Git-port reservation/relay fix through planned Miniflare 5.20261127.0-beta. V1 retains actual Artifacts integration coverage. No Miniflare implementation or unit tests are restored. Publication of #17152, a real lockfile, and full validation remain pending.

@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@jamesopstad @edmundhung — please check this v1 backport of #17203 and approve if it looks good.

The existing draft consumes the original environment spelling and OAuth guidance fixes through workers-utils 0.58.0, workers-auth 0.19.0 and coupled Wrangler 4.169.0. The new Vite Container-registry test reproduces the exact fedramp-high rejection before the upgrade. No public implementations are copied; publication and validation remain pending.

@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@petebacondarwin — please check this v1 backport of #17220 and approve if it looks good.

The existing draft advances the intended runtime to Miniflare 5.20261127.0-beta and Workers types 5.20261127.1, with the actual Vite zero-config date regression expecting November 27. This supplies the intervening runtime upgrades without duplicate pins. Publication of #17152, the real lockfile and full validation remain pending.

The original author is dependabot[bot] (automated); requesting the verified human ant-core approver.

devin-ai-integration[bot]

This comment was marked as resolved.

@petebacondarwin petebacondarwin changed the title [vite-plugin v1 backport] Update November 27 runtime and binding compatibility [vite-plugin v1 backport] Update November 27 runtime and asset compatibility Nov 28, 2026
@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@jamesopstad — please check this v1 backport of #17152 and approve if it looks good.

The original author is workers-devprod (ANT Bot release service account); you are the verified human ant-core approver. The published November 27 runtime graph now has a real lockfile, passing frozen install, all 284 plugin tests, full workspace checks and retained fixture tests. The same draft now plans the subsequent asset fix from #17164 through the pending #17232 release; its final graph remains unpublished and is explicitly blocked.

@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@petebacondarwin @jamesopstad — please check this v1 backport of #17164 and approve if it looks good.

The retained workers-shared helper implementation and tests are copied directly, preserving v1’s existing readAssetsIgnoreFile export. The public Miniflare asset walker is consumed through planned 5.20261127.1-beta, with coupled exact pins kept in this existing draft. V1 preview reproduces the ancestor-symlink ELOOP through actual requests; ordinary aliases/URL exclusions are a passing control. V1 dev serves assets through Vite. The private tests fail before and pass after; runtime after-validation awaits #17232 publication. No public sibling source or scaffolding is restored.

@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@petebacondarwin @jamesopstad — please check this v1 backport of #17234 and approve if it looks good.

The remaining useful diff is the direct fallback-pattern implementation in retained workers-shared. Its regression adapts the original absent, empty and explicit .assetsignore cases at that private helper; it fails before and all 17 helper cases pass afterward. The existing draft already supplies the prerequisite helper from #17164. No public writeAssets/onSkip API or scaffolding source is recreated, and no separate dependency-upgrade PR is added. Final runtime graph installation remains blocked on #17232 publication.

devin-ai-integration[bot]

This comment was marked as resolved.

@petebacondarwin
petebacondarwin marked this pull request as ready for review November 29, 2026 14:04
clanky-the-clanker[bot]

This comment was marked as resolved.

@NuroDev NuroDev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Once the few bot review comments are addressed should be good to merge.

Comment thread .changeset/november-27-runtime-v1.md Resolved
Comment thread fixtures/dev-registry/package.json Resolved
@petebacondarwin
petebacondarwin marked this pull request as draft November 30, 2026 14:02
@petebacondarwin petebacondarwin changed the title [vite-plugin v1 backport] Update November 27 runtime and asset compatibility [vite-plugin v1 backport] Update November runtime and asset compatibility Nov 30, 2026
@petebacondarwin

petebacondarwin commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

The November 29 update from #17284 is now staged separately in draft #17293, above this PR in native stack #17294, as requested after the CI repair. It remains excluded from #17171, whose published November 27 graph and passing CI are unchanged.

The original-specific request is carried forward to #17293 without another mention/ping. The verified recipient remains petebacondarwin (latest human ant-core approval before the original merged); the original author is dependabot[bot] (automated). #17293 must stay draft until #17276 publishes its required dependencies and lockfile regeneration and runtime validation pass. There is no #17284 implementation to approve in #17171.

devin-ai-integration[bot]

This comment was marked as resolved.

@petebacondarwin petebacondarwin changed the title [vite-plugin v1 backport] Update November runtime and asset compatibility [vite-plugin v1 backport] Update November 27 runtime and asset compatibility Nov 30, 2026
@petebacondarwin
petebacondarwin marked this pull request as ready for review November 30, 2026 15:12

@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 reviewed file changed since the previous approval, and re-checking the whole pull request found no WARNING or BLOCKING defects.

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 is a coordinated update of the runtime and support packages. Changesets cover the compatibility date, D1 preview uploads, email streams, the FedRAMP High aliases, OIDC bindings, preview asset traversal and RealtimeKit bindings.


🔒 Security: ✅ LGTM

No new trust boundary is added and no check is removed. The asset copy filter only stats relative paths under the assets directory.


📖 AGENTS.md: ✅ LGTM

No issues found.


📋 Code Quality: ✅ LGTM

The version pins match across all manifests. The email raw handling in the proxy worker matches its unit and integration tests. The containers helper rename keeps the exact hint text. createAssetsCopyFilter calls stat only when the file and directory ignore results disagree.


📝 Documentation: ✅ LGTM

The changesets name the versions this pull request pins and describe the user-facing behavior.


Reviewed commit: d5177fcd

@petebacondarwin
petebacondarwin force-pushed the codex/vite-v1-backport-17140 branch from 884f756 to d5177fc Compare December 3, 2026 15:06

@NuroDev NuroDev left a comment

Copy link
Copy Markdown
Member

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

@NuroDev

NuroDev commented Dec 3, 2026

Copy link
Copy Markdown
Member

Codeowners bypass

Note

Bypassing D&C here as the change(s) here were already applied to main and this PR stack is blocking main releases due to compat date conflicts.

@NuroDev
NuroDev merged commit e77f312 into vite-plugin-v1 Dec 3, 2026
25 checks passed
@NuroDev
NuroDev deleted the codex/vite-v1-backport-17140 branch December 3, 2026 16:58
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