Repository navigation
[vite-plugin v1 backport] Update November 23 runtime and Vite logging - #17130
petebacondarwin wants to merge 3 commits into
Conversation
🦋 Changeset detectedLatest commit: 8ace7ad The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
|
@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 |
61cbca5 to
46cf3e8
Compare
46cf3e8 to
aedaa07
Compare
commit: |
|
Codeowners approval required for this PR:
|
|
@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. |
|
@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. |
|
@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. |
|
@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. |
|
@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. |
|
@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. |
|
@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. |
|
@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 — 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 ( |
|
@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 ( |
| @@ -0,0 +1,7 @@ | |||
| --- | |||
| "@cloudflare/vite-plugin": patch | |||
There was a problem hiding this comment.
There was a problem hiding this comment.
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.jsonfiles still carry the old versions. Private support packages keep theirworkspace:*references. - Tests:
log-path.spec.tsstarts a fresh process and setsWRANGLER_LOG_PATHafter the static plugin import, which reproduces the original problem.runtime-bindings.spec.tscovers Stream captions, UTF-8 R2 pagination and KV stored-null metadata. It uses a temporary directory and the test-contextexpect, and cleans up after itself.- The zero-config test now checks the literal
2026-11-23date.
- Release risk: medium. The local runtime update and the newer default compatibility date can change how
vite devbehaves for users. The new regression tests cover the behaviours described.
Reviewed commit: aedaa078
There was a problem hiding this comment.
✅ 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
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
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 respectsWRANGLER_LOG_PATHset invite.config.tsafter the static plugin import.This reuses the original public implementations from merged releases #17097 and #17135: Miniflare
5.20261123.1-beta, workerd1.20261123.1, Wrangler4.168.0(also the peer minimum), workers-utils0.57.0, and Workers types5.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-helpers0.29.1, workers-auth0.18.8, and cli-shared-helpers0.3.13. Historical standalone playground/fixture pins and containers-shared API pin remain intentional. Private support packages remain in place withworkspace:*references.Original intent and fidelity:
customerCode.start_afterforwarding and UTF-8 R2 cursor comparison. The new Vite integration checks the same fullwidth/emoji pagination regression through a Worker binding.getWithMetadata(), including a missing key.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.1became0.57.0in the actual release. Deploy-helpers0.30.0is 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 published0.29.1is 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 buildpasses;pnpm checkpasses 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:cipasses 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:fixturespasses 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.0peer 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.
Note
This is a contribution from an AI agent: OpenAI Codex.