migrate-v8-to-v9
Qué hace
Esta guía compartida ayuda a actualizar un proyecto de TanStack Table de la versión 8 a la 9 en distintos frameworks. Es para desarrolladores que necesitan encontrar cada API afectada antes de cambiar el código.
Cuándo usarla
- ✓Cuando necesitas listar qué partes de una tabla existente usan APIs que cambiaron en v9.
- ✓Cuando actualizas una tabla y quieres pruebas y comprobaciones de tipos que confirmen que el comportamiento se conserva.
- ✓Cuando no estás seguro de qué guía de migración por framework aplica a tu proyecto.
Link de la skill
https://github.com/TanStack/table/blob/main/packages/table-core/skills/migrate-v8-to-v9/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Puedes revisar mi código actual de TanStack Table y listar todo lo que necesita cambiar para v9?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
Pide al agente inventariar las opciones, importaciones y estado de la tabla, revisar cada elemento contra una lista compartida y luego leer las notas de referencia detalladas que apliquen.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Migrate Table v8 to v9
Read core first. Audit every item below before choosing detailed mappings. This shared checklist owns the complete core migration; the installed adapter's migration skill owns construction, rendering, framework requirements, and reactive wiring.
Procedure
- Establish passing tests for the existing table and inventory its enabled interactions, imports, options, and state owners.
- Follow the whole audit checklist. Read a mapping reference when the audit finds affected code; preserve behavior while migrating features and construction.
- Load the installed adapter with
intent load <package>#migrate-v8-to-v9and itstable-stateskill. Substitute the actual adapter package. React, Preact, Solid, Svelte, Vue, Angular, and Lit have migration skills; Alpine, Ember, and Octane have no v8 adapter migration journey. - Type-check, exercise every enabled interaction and client/server stage, and complete the explicit v9 setup.
Treat useLegacyTable as a deprecated React-only bridge for an existing incremental migration. It bundles every feature, can exceed the v8 bundle, and is not the target architecture. Its only entrypoint is @tanstack/react-table/legacy.
Read mappings for affected code
| Audit finds | Read |
|---|---|
| Feature registration, row-model factories, function slots, bound methods, or consumed internals | Architecture mappings |
getState, onStateChange, controlled ownership, observation, or reset changes |
State mappings |
| Aggregation, logical pinning, sizing/resizing, sorting names, or selection predicates | Feature API mappings |
Explicit generics, column helpers, scoped meta, registry augmentation, or RowData |
TypeScript mappings |
Complete audit checklist
- Load the installed framework adapter's migration and table-state skills.
- Replace the v8 adapter constructor/hook/controller with its v9 entrypoint.
- Add a stable
featuresobject to every table. - Inventory every feature API used by table, row, column, cell, and header code; register each stock feature the table actually uses.
- Use
stockFeaturesonly as a temporary parity aid and record an explicit-feature follow-up. - Remove
getCoreRowModel()unless supplying a deliberate customcoreRowModelslot. - Move all remaining
get*RowModel()options (or a removedrowModels: {...}object, if present) tocreate*RowModel()feature slots. - Register each dependent feature before its row-model slot.
- Move
filterFns,sortingFns/sortFns, andaggregationFnsinto feature slots, registering individually imported built-ins; pass no registries to factories. - Register
rowAggregationFeatureindependently and migrate custom aggregation callables to context-basedAggregationFnDefdefinitions. - Register
columnFilteringFeaturebefore global filtering and filter/facet dependencies. - Register
columnSizingFeaturebeforecolumnResizingFeature. - Replace
table.getState()and top-levelonStateChangeaccording to the adapter state guide. - Verify every controlled slice has an update path; verify externally owned atoms are reset by their owner.
- Audit destructured, spread, serialized, or bare-callback instance methods.
- Replace every column-pinning
left/rightkey, argument, comparison, method family, and sticky CSS declaration with logical start/end equivalents. - Split table-level
enablePinning; preserve column-defenablePinningwhere intended. - Split sizing/resizing features and rename the resizing state, setter, and callback.
- Replace every
sortingFn/SortingFn/sortingFnsspelling with its v9sort*spelling. - Remove every consumed underscore-prefixed internal API.
- Recheck indeterminate selection logic against the new "at least one" semantics.
- Add
TFeaturesto unavoidable explicit core types, helpers, and retained meta augmentation; otherwise restore inference. - Replace function-registry and filter-meta declaratio
Preguntas frecuentes
¿Debo escribir pruebas antes de migrar?
Sí. La habilidad indica establecer pruebas que pasen para la tabla existente antes de cambiarla.
¿useLegacyTable es una buena opción a largo plazo?
No. La habilidad lo describe como un puente obsoleto solo para React, pensado para una migración gradual y no como configuración objetivo.
¿Qué frameworks tienen guías de migración?
La habilidad enumera guías para React, Preact, Solid, Svelte, Vue, Angular y Lit. Alpine, Ember y Octane no tienen guía de migración de v8.
Detalles
Descripción original del autor
Audit and migrate Table v8 to v9. Inventory affected APIs, follow the shared checklist, and read only the required architecture, state, feature, and TypeScript mappings.
repo: TanStack/table
Popularidad
- Estrellas en GitHub
- 29 mil
- Posición en el ranking
- #9836
- Licencia
- MIT
- Actualizada
- 21/10/2026
Comentarios
- …
Más skills de este repositorio
getting-started
29 milEnseña a tu agente a crear y mostrar una tabla de datos con TanStack Table en Alpine.js, incluyendo la configuración, los datos reactivos y el renderizado de filas.
table-state
29 milEnseña a tu agente a leer y controlar el estado de una tabla en Alpine.js, como la página actual, para que la pantalla se actualice cuando cambia ese estado.
devtools
29 milEnseña a tu agente a registrar tablas de Angular en el panel de TanStack Devtools, para que los desarrolladores puedan inspeccionar cada tabla mientras construyen la app.
getting-started
29 milEnseña a tu agente a crear una tabla de TanStack en Angular: configurar injectTable, renderizar la plantilla y actualizar las filas cuando cambian los datos.
Skills parecidas
angular-developer
280 milAyuda a tu agente con código de Angular y la estructura del proyecto. Útil para empezar proyectos, crear partes de código o mejorar el rendimiento y la accesibilidad.
frontend-a11y
280 milAyuda a tu agente a hacer que las interfaces web sean accesibles para todos. Asegura que sitios y apps funcionen bien con lectores de pantalla y navegación por teclado.
frontend-patterns
280 milHace que tu agente aplique patrones modernos en desarrollo frontend. Optimiza el rendimiento, gestiona el estado y sigue buenas prácticas en React y Next.js.