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

Abierto
#164 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript, vite

Línea de trabajo

Start by reading the /vinext adapter’s version gate and the two capability checks that guard its source corrections, then inspect the CI configuration for the existing Vinext matrix. Update support for Vinext 1.3.x and 1.4.x while keeping unknown source shapes fail closed, and add 1.4.3 and 1.4.4 to CI. Done means the demo build and CI cover the requested versions.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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 [email protected]
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.

Lenguaje dominante
TypeScript
Estrellas
537
Forks
22
Merge medio
10 h 27 min
PR fusionados (30 d)
40

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de TanStack/redact

Todos los issues de TanStack/redact

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.