← Back to Pull requests

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

Closed
unknown closed this pull request without merging on Nov 25, 2026 13:01 UTC
View on GitHub
unknown unknown commented on Nov 23, 2026 14:02 UTC
Author

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:

  • #17070 and its release-note follow-up #17129: consume the November 23 runtime/default date and unchanged local Stream implementation. The existing zero-config assertion checks the actual date; plugin integration exercises uploaded/generated/missing-language captions and customerCode.

  • #17119: consume the original Local Explorer start_after forwarding and UTF-8 R2 cursor comparison. The new Vite integration checks the same fullwidth/emoji pagination regression through a Worker binding.

  • #17101: consume the original KV option forwarding and stored-JSON-null metadata fix. The Vite integration checks the latter through getWithMetadata(), including a missing key.

  • #16947: consume the original lazy, memoized log-path resolution. A fresh Node process loads a Vite config with a static plugin import before setting the environment variable, starts Vite, serves a request, and verifies the configured log file.

  • The same releases also supply #17090 (asynchronous DevControl calls), #17024 (missing external Worker handling), #17133 (class-only Miniflare ID listing, with Wrangler's binding-name adaptation), and #17063 (billing OAuth scopes). These need no copied implementation or separate mapping-only PR. V1 has no direct call to the changed Miniflare listing API.
  • 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 #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

  • - [x] 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):
    - [x] 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.

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: NuroDev Review duration: 2819m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #17130"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.5% · Safe to merge
    20.5%