Skip to content
Source
Sign inSign up
TanStack/redact

Vinext 1.4.3/1.4.4 support: adapter gate rejects versions whose required corrections are already upstream #164

OpenSisyphusZheng(GitHub profile, opens in a new tab) opened this issue 1 comment

The /vinext adapter currently rejects every Vinext version except exactly 1.3.0:

if (pkg.version !== '1.3.0') throw new Error(...)

Reproduction

In this repository:

pnpm --filter vinext-demo add vinext@1.4.3 pnpm --filter vinext-demo build # Error: Redact Vinext integration supports vinext 1.3.0; found 1.4.3.

Compatibility evidence

The adapter's two source corrections are guarded by capability checks. I checked Vinext 1.4.3 and 1.4.4: both contain the corrected implementations, so Redact's transforms should be no-ops for those versions.

In a scratch install, I changed only the installed Redact /vinext adapter's version check to let the newer Vinext versions pass. With that local gate change, vinext-demo builds on 1.3.0, 1.4.3, and 1.4.4. These are build checks; the requested CI matrix will provide repeatable coverage.

Requested change

Accept Vinext 1.3.x and 1.4.x, while warning on other version families. Keep the source-shape checks as the safety boundary: skip corrections when the installed Vinext code already has the corrected form, and fail closed when its shape is unknown. Add the Vinext versions above to the CI matrix.

The client instrumentation API request is tracked separately in cloudflare/vinext#4579; it does not cover the app-rsc-handler correction or Flight timing. @cloudflare/vite-plugin 2.x remains out of scope.

I can open a PR with the gate change and CI coverage.

  1. Yes, please send a PR for this, or a branch link if PR creation is restricted. Keep the existing source checks intact and add coverage for 1.3.0, 1.4.3 and 1.4.4. Let's keep the instrumentation API request and Cloudflare plugin 2.x separate.

    AI review notes: Independent inspection of the published npm artifacts confirmed that 1.4.3 and 1.4.4 already contain both corrected source forms. The current Redact transforms return no change for those files, still correct the 1.3.0 files, and reject unknown implementations. These are six source-level records, not browser or full build verification. Please cover the supported version families, prereleases and warnings for untested versions, while retaining rejection of unknown source shapes. Include the existing Flight timing checks and native React controls for App Router and Pages Router, alongside the version matrix. Passing a build alone does not establish runtime compatibility.

Sign in to join this conversation.