Skip to content

[vite-plugin v1 backport] Update November 23 runtime and Vite logging - #17130

Open
petebacondarwin wants to merge 3 commits into
codex/vite-v1-backport-17091from
codex/vite-v1-backport-17070
Open

petebacondarwin wants to merge 3 commits into
codex/vite-v1-backport-17091from
codex/vite-v1-backport-17070

Conversation

@petebacondarwin

@petebacondarwin petebacondarwin commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Backport the November 23 runtime and related fixes to Vite plugin v1. Zero-config applications use 2026-11-23; local Stream bindings expose the original caption retrieval and customer code fields; R2 pagination and KV metadata retain the original fixes. Wrangler now respects WRANGLER_LOG_PATH set in vite.config.ts after the static plugin import.

This reuses the original public implementations from merged releases #17097 and #17135: Miniflare 5.20261123.1-beta, workerd 1.20261123.1, Wrangler 4.168.0 (also the peer minimum), workers-utils 0.57.0, and Workers types 5.20261123.1. All maintained direct Miniflare consumers (plugin, private remote-bindings, package-manager fixture) share the same pin. Retained fixture Wrangler consumers advance together. Remote-bindings also uses the compatible published deploy-helpers 0.29.1, workers-auth 0.18.8, and cli-shared-helpers 0.3.13. Historical standalone playground/fixture pins and containers-shared API pin remain intentional. Private support packages remain in place with workspace:* references.

Original intent and fidelity:

The v1 adaptations are exact published dependency pins and consumer-level regression coverage. No public sibling source, unit/CLI tests, helpers, or fixtures are restored; no alternate fix is introduced. The real pnpm lockfile is regenerated. Earlier November 19 runtime/remote-session/config-import coverage remains supplied by merged #17054. This PR follows #17106 in native GitHub stack #17084 rooted at vite-plugin-v1; its rebase includes the existing formatting correction from #17105.

Publication is resolved for all required runtime pins. The draft's proposed workers-utils 0.56.1 became 0.57.0 in the actual release. Deploy-helpers 0.30.0 is advertised by #17135 but its npm version endpoint still returns 404; its Images deployment feature has no v1 caller, and it is not required by this runtime/API upgrade. The compatible published 0.29.1 is installed and validated, without overriding its transitive dependency pins.

Validation (Node 22.22.1 / pnpm 10.33.0; initial before/after probes also used Node 24.20.0):

  • Before: five focused regressions fail on the November 19 stack: missing configured log file, old default date, unavailable Stream caption method, repeated R2 page, and missing stored-null KV metadata. 35 configuration cases pass.

  • After: all five intended behaviors pass through the installed plugin. The caption assertion uses the original substring check because the error also contains the generated video ID.

  • pnpm build passes; pnpm check passes all 58 tasks, including types/lint/format. The initial format failure was inherited from the stale parent; rebasing onto [vite-plugin v1 backport] Adopt shared Cloudflare lint preset #17105's existing correction resolves it.

  • pnpm test:ci passes all 8 tasks: plugin 275, remote-bindings 49, mock registry 12, and workers-shared suites 65/292/94, plus custom lint rule tests.

  • pnpm test:fixtures passes all 6 tasks. Focused binding/Stream browser suites pass in serve and build modes (9 tests each); Durable Objects passes 3 serve / 2 build tests, with the existing build-mode skip.

  • The invalid-Wrangler-version package-manager E2E passes with pnpm 10.33.0, asserting the new ^4.168.0 peer minimum. The initial fixture run picked Corepack’s pnpm 11 default outside the workspace and stopped at its stricter build-script policy; a temporary PATH entry selecting the repository-pinned pnpm resolves that environment issue without source changes.

  • Windows CI initially exposed a short temporary-directory-name issue in the new logging test. Its subprocess now receives the canonical asynchronous-realpath directory and matching PWD, following the branch’s existing integration tests; this preserves the original import order and assertion. The focused test, plugin types and lint pass locally. The corrected head also passes package CI on Windows, Linux and macOS, including the logging regression.

  • No credentialed live-API tests run.


  • 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 carries the upstream runtime and bug fixes to the v1 maintenance branch; package changesets describe the user-visible changes.

Note

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

@changeset-bot

changeset-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8ace7ad

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

@NuroDev, please check this v1 backport of #17070 and approve if it looks good. You are the latest qualifying human ant-core approver before the original merged, and current ant-core membership has been verified. The original author is dependabot[bot], so there is no human original author to request. The later human approval after merge is not substituted for the qualifying pre-merge approval.

V1 consumes the original runtime, default compatibility date, and Stream binding implementation through exact Miniflare/Wrangler/workers-utils pins, preserving private workspace packages. The plugin zero-config regression reproduces the November 19 versus November 23 date difference. Earlier November 19 runtime and remote-session coverage is supplied by #17054.

This PR remains draft: the intended November 23 Miniflare, Wrangler and workers-utils packages are unpublished, so real lockfile regeneration and installed-runtime validation are blocked. The description distinguishes passing baseline build/types/checks from the pending target-runtime checks. Native GitHub stack #17084 is rooted at vite-plugin-v1.

@petebacondarwin
petebacondarwin force-pushed the codex/vite-v1-backport-17070 branch from 61cbca5 to 46cf3e8 Compare November 23, 2026 18:42
@petebacondarwin
petebacondarwin force-pushed the codex/vite-v1-backport-17070 branch from 46cf3e8 to aedaa07 Compare November 24, 2026 14:07
@pkg-pr-new

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

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

commit: 8ace7ad

@petebacondarwin petebacondarwin changed the title [vite-plugin v1 backport] Update to the November 23 runtime [vite-plugin v1 backport] Update November 23 runtime and Vite logging Nov 24, 2026
@petebacondarwin
petebacondarwin marked this pull request as ready for review November 24, 2026 14:11
@workers-devprod
workers-devprod requested review from a team and NuroDev and removed request for a team November 24, 2026 14:12
@workers-devprod

workers-devprod commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler

@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@umeraamir69 @dario-piotrowicz — please check this Vite plugin v1 backport of original #16947 and approve if it looks good.

Wrangler 4.168.0 supplies the original lazy, memoized log-path implementation. A fresh-process Vite regression sets WRANGLER_LOG_PATH after the static plugin import and verifies the configured file. The PR description records the v1 adaptations and validation.

@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@tw4 @petebacondarwin — please check this Vite plugin v1 backport of original #17119 and approve if it looks good.

Miniflare 5.20261123.1-beta supplies the original start_after forwarding and UTF-8 cursor comparison. A Vite Worker binding regression checks the same fullwidth/emoji pagination case. The PR description records the v1 adaptations and validation.

@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@samarthyadavv @petebacondarwin — please check this Vite plugin v1 backport of original #17101 and approve if it looks good.

Miniflare 5.20261123.1-beta supplies the original KV option forwarding and stored-JSON-null metadata fix. Vite binding coverage checks stored null with metadata and a missing key. The PR description records the v1 adaptations and validation.

@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@edmundhung @dario-piotrowicz — please check this Vite plugin v1 backport of original #17024 and approve if it looks good.

The exact Miniflare 5.20261123.1-beta pin supplies the original missing-external-Worker startup behavior. The absent public package implementation and its tests are consumed from npm; retained dev-registry fixtures pass. The PR description records the v1 adaptations and validation.

@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@pelle @petebacondarwin — please check this Vite plugin v1 backport of original #17090 and approve if it looks good.

The exact Miniflare 5.20261123.1-beta pin supplies the original asynchronous DevControl implementation. No alternate eviction implementation or installed-dependency unit tests are added. The PR description records the v1 adaptations and validation.

@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@edmundhung @petebacondarwin — please check this Vite plugin v1 backport of original #17133 and approve if it looks good.

The exact Miniflare 5.20261123.1-beta and coupled Wrangler 4.168.0 pins supply the original class-only ID listing and binding-name adaptation. V1 has no direct caller of that changed API; retained Durable Object/browser and dev-registry coverage passes. The PR description records the v1 adaptations and validation.

@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@sidharthachatterjee @petebacondarwin — please check this Vite plugin v1 backport of original #17063 and approve if it looks good.

The retained private remote-bindings package consumes the original billing-scope implementation via workers-auth 0.18.8, with coupled Wrangler 4.168.0. No public auth source is restored. The PR description records the v1 adaptations and validation.

@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@edmundhung @petebacondarwin — please check this Vite plugin v1 backport of original #17129 and approve if it looks good.

The existing plugin patch changeset now describes the released Stream fields; the original implementation is consumed through Miniflare 5.20261123.1-beta. Vite binding tests cover uploaded/generated/missing-language captions and customerCode. No mapping-only PR or duplicate changeset is added. The PR description records the v1 adaptations and validation.

@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@petebacondarwin — please check this Vite plugin v1 backport of original #17097 and approve if it looks good.

The original release author is the automated ANT Bot account (workers-devprod), so only the verified human approver is requested. This backport consumes the actual published November 23 release (workers-utils is 0.57.0, rather than the earlier draft 0.56.1), then advances Miniflare to the compatible patch in #17135. Exact direct pins and the real lockfile are installed and validated. Earlier November 19 coverage is already supplied by merged #17054. The PR description records the v1 adaptations and validation.

@petebacondarwin

Copy link
Copy Markdown
Contributor Author

@jamesopstad — please check this Vite plugin v1 backport of original #17135 and approve if it looks good.

The original release author is the automated ANT Bot account (workers-devprod), so only the verified human approver is requested. This backport supplies published Miniflare 5.20261123.1-beta, Wrangler 4.168.0, and workers-auth 0.18.8 consistently across maintained direct consumers. Published deploy-helpers 0.29.1 remains compatible; advertised 0.30.0 was unavailable and its Images deployment feature has no v1 caller. Build, types, package tests, retained fixtures and focused browser/package-manager tests pass. The PR description records the v1 adaptations and validation.

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

Devin Review

@@ -0,0 +1,7 @@
---
"@cloudflare/vite-plugin": patch

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.

🔍 Patch classification for new Stream APIs

Local Stream bindings gain captions.get() and the customerCode field. The repository’s release rules classify new API capabilities as minor changes, even when a dependency provides them.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

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

This review, of aedaa078

✅ Approved — The dependency pins are consistent and the new regression tests cover each backported fix. I found no correctness, security or performance issues.

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


This pull request backports the November 23 runtime to Vite plugin v1. It bumps Miniflare, Wrangler, workers-utils, Workers types and the remote-bindings dependencies to matching published versions, and raises the Wrangler peer minimum to ^4.168.0. I found no issues.

  • Dependency pins: The pins are consistent across the plugin, remote-bindings, mock-npm-registry and the fixtures. None of the package.json files still carry the old versions. Private support packages keep their workspace:* references.
  • Tests:
    • log-path.spec.ts starts a fresh process and sets WRANGLER_LOG_PATH after the static plugin import, which reproduces the original problem.
    • runtime-bindings.spec.ts covers Stream captions, UTF-8 R2 pagination and KV stored-null metadata. It uses a temporary directory and the test-context expect, and cleans up after itself.
    • The zero-config test now checks the literal 2026-11-23 date.
  • Release risk: medium. The local runtime update and the newer default compatibility date can change how vite dev behaves for users. The new regression tests cover the behaviours described.

Reviewed commit: aedaa078

@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 dependency pins match across packages, and the updated logging test still checks the original import order. I found no correctness, security or performance issues.

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 newer local runtime and the new default compatibility date can change how vite dev behaves for users. Regression tests cover the behaviours this backport describes.


🔒 Security: ✅ LGTM

No security issues found.


📖 AGENTS.md: ✅ LGTM

No issues found.


📋 Code Quality: ✅ LGTM

The dependency pins match across the plugin, remote-bindings, mock-npm-registry and the fixtures. Private support packages keep their workspace:* references. The new real-path and PWD handling in log-path.spec.ts is correct and keeps the import-before-configuration order.


⚡ Performance: ✅ LGTM

No performance issues found.


📝 Documentation: ✅ LGTM

The changesets describe the changes users will see.


Reviewed commit: 8ace7ad2

@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

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