Pular para o conteúdo
Skillpedia
Sites e telas (frontend)29 mil · #9832

migrate-v8-to-v9

O que ela faz

Esta habilidade orienta a atualização de um projeto Svelte do TanStack Table versão 8 para a versão 9. Serve para desenvolvedores que querem uma lista de verificação da configuração, do estado e do código de renderização alterados.

Quando usar

  • ✓Quando seu aplicativo Svelte ainda usa a função createSvelteTable mais antiga e precisa de atualização.
  • ✓Quando seus componentes Svelte estão na versão 3 ou 4 e precisam ir para o Svelte 5 antes da Table v9.
  • ✓Quando o estado ou a renderização da tabela quebram depois que você migra para a Table v9.

Link da skill

https://github.com/TanStack/table/blob/main/packages/svelte-table/skills/migrate-v8-to-v9/SKILL.md

Copie 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

Use esta skill para me ajudar: https://github.com/TanStack/table/blob/main/packages/svelte-table/skills/migrate-v8-to-v9/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Meu aplicativo Svelte usa o TanStack Table v8 e componentes Svelte antigos. Você pode me ajudar a atualizá-lo?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

Ela oferece uma lista de verificação de auditoria que cobre a migração para o Svelte 5, a configuração do createTable e as mudanças de renderização, além de notas detalhadas de cada mudança.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do GitHub.

Svelte v8-to-v9 migration checklist

Before starting, run intent load @tanstack/table-core#migrate-v8-to-v9. Audit its entire shared checklist and read the detailed core mappings for APIs present in the application. This checklist adds the Svelte-specific changes.

Framework prerequisite: Svelte 5 (svelte ^5.0.0); migrate Svelte 3/4 components before Table.

Adapter audit

  • Upgrade to Svelte 5 and replace old writable-store table setup with runes/getters.
  • Replace createSvelteTable with createTable; preserve changing data and controlled slices through getters.
  • Configure explicit features/row-model slots and complete the shared core checklist.
  • Remove creation selectors, selected table.state, subscribeTable, and SubscribeSource from earlier v9 code.
  • Update SvelteTable to two generic parameters and AppSvelteTable to five; remove selected-state generics from useTableContext.
  • Read atoms/store in templates or tracked runes. Use per-slice updater callbacks, createTableState, or external Svelte Store atoms instead of global onStateChange.
  • Render with FlexRender, renderComponent, or renderSnippet. Use the shipped rune-aware createTableHook only for repeated conventions.

Load the affected details

When the audit finds old Svelte construction, state, rendering, or app-hook code, read adapter migration details before editing it. For a replacement render scaffold, read getting started. For controlled or stale state after migration, read table state.

Shared pinning, sizing, sorting, selection, prototype-method, type, and registry changes stay in the core migration references. Renaming createSvelteTable alone does not complete the migration.

Verify the migration

  • Type-check against the installed v9 adapter and exercise every enabled client/manual feature flow.
  • Verify external state writes, reactive data replacement, and the framework rendering paths changed above.
  • Complete the core checklist, including layout and selection behavior when those features are used.
  • Replace temporary stockFeatures when the target is explicit feature tree-shaking.

API discovery

Inspect node_modules/@tanstack/svelte-table/dist/index.d.ts and the exported adapter declarations. Use node_modules/@tanstack/table-core/dist/index.d.ts for shared APIs.

Perguntas frequentes

Preciso atualizar o Svelte primeiro?

Sim. A habilidade diz que o Svelte 5 é necessário, então componentes do Svelte 3 ou 4 devem ser migrados antes.

O que substitui a antiga configuração de writable store?

A habilidade diz para usar runes e getters.

Isso cobre todas as mudanças da biblioteca?

Não. Cobre as mudanças específicas do Svelte e aponta para a lista de verificação principal compartilhada para o restante.

Detalhes

Descrição original do autor

Migrate svelte Table v8 to v9. Audit framework construction, rendering, state, and app hooks, with shared API changes in the core migration skill.

repo: TanStack/table

Popularidade

Estrelas no GitHub
29 mil
Posição no ranking
#9832
Licença
MIT
Atualizada em
21/10/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas