migrate-v8-to-v9
O que ela faz
Este guia compartilhado ajuda a atualizar um projeto TanStack Table da versão 8 para a versão 9, em vários frameworks. Serve para desenvolvedores que precisam encontrar cada API afetada antes de mudar o código.
Quando usar
- ✓Quando você precisa listar quais partes de uma tabela existente usam APIs que mudaram na v9.
- ✓Quando você está atualizando uma tabela e quer testes e verificações de tipo para confirmar que o comportamento foi preservado.
- ✓Quando você não tem certeza de qual guia de migração de framework se aplica ao seu projeto.
Link da skill
https://github.com/TanStack/table/blob/main/packages/table-core/skills/migrate-v8-to-v9/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Você pode revisar meu código existente do TanStack Table e listar tudo o que precisa mudar para a v9?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
Ela pede que o agente faça um inventário das opções, dos imports e do estado da tabela, verifique cada item contra uma lista de verificação compartilhada e depois leia as notas de referência detalhadas que se aplicam.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Devo escrever testes antes de migrar?
Sim. A habilidade diz para ter testes passando para a tabela existente antes de mudá-la.
useLegacyTable é uma boa opção a longo prazo?
Não. A habilidade a chama de uma ponte obsoleta só para React, para migração gradual, e não de configuração final.
Quais frameworks têm guias de migração?
A habilidade lista guias para React, Preact, Solid, Svelte, Vue, Angular e Lit. Alpine, Ember e Octane não têm guia de migração da v8.
Detalhes
Descrição original do 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
Popularidade
- Estrelas no GitHub
- 29 mil
- Posição no ranking
- #9836
- Licença
- MIT
- Atualizada em
- 21/10/2026
Comentários
- …
Mais skills deste repositório
getting-started
29 milEnsina seu agente a criar e exibir uma tabela de dados com o TanStack Table no Alpine.js, cobrindo configuração, dados reativos e renderização de linhas.
table-state
29 milEnsina seu agente a ler e controlar o estado de uma tabela no Alpine.js, como a página atual, para que a tela seja atualizada quando esse estado mudar.
devtools
29 milEnsina seu agente a registrar tabelas Angular no painel do TanStack Devtools, para que os desenvolvedores possam inspecionar cada tabela enquanto constroem o aplicativo.
getting-started
29 milEnsina seu agente a criar e mostrar uma tabela TanStack no Angular, cobrindo a configuração com injectTable, a renderização no template e as atualizações dos dados das linhas.
Skills parecidas
angular-developer
280 milAjuda seu agente a criar código Angular e a dar conselhos sobre a estrutura do projeto. É útil para iniciar novos projetos, criar partes do código ou melhorar a performance e acessibilidade.
frontend-a11y
280 milAjuda seu agente a tornar interfaces web acessíveis para todos. Ele garante que sites e apps funcionem bem com leitores de tela e navegação por teclado.
frontend-patterns
280 milFaz seu agente aplicar padrões modernos no desenvolvimento frontend. Ele otimiza performance, gerencia estado e segue boas práticas em React e Next.js.