Langsung ke konten
Skillpedia
Website & UI (frontend)29k Β· #9836

migrate-v8-to-v9

Fungsinya

Panduan bersama ini membantu memperbarui proyek TanStack Table dari versi 8 ke versi 9 lintas framework. Panduan ini untuk pengembang yang perlu menemukan setiap API yang terdampak sebelum mengubah kode.

Kapan dipakai

  • βœ“Saat Anda perlu mendaftar bagian tabel mana yang memakai API yang berubah di v9.
  • βœ“Saat Anda meningkatkan tabel dan ingin tes serta pemeriksaan tipe memastikan perilaku tetap terjaga.
  • βœ“Saat Anda tidak yakin panduan migrasi framework mana yang berlaku untuk proyek Anda.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/TanStack/table/blob/main/packages/table-core/skills/migrate-v8-to-v9/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBisa Anda meninjau kode TanStack Table saya dan mendaftar semua yang harus berubah untuk v9?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill meminta agent membuat inventaris opsi, impor, dan state tabel, memeriksa setiap item dengan daftar periksa bersama, lalu membaca catatan referensi terperinci yang berlaku.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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

  1. Establish passing tests for the existing table and inventory its enabled interactions, imports, options, and state owners.
  2. Follow the whole audit checklist. Read a mapping reference when the audit finds affected code; preserve behavior while migrating features and construction.
  3. Load the installed adapter with intent load <package>#migrate-v8-to-v9 and its table-state skill. 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.
  4. 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 features object 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 stockFeatures only as a temporary parity aid and record an explicit-feature follow-up.
  • Remove getCoreRowModel() unless supplying a deliberate custom coreRowModel slot.
  • Move all remaining get*RowModel() options (or a removed rowModels: {...} object, if present) to create*RowModel() feature slots.
  • Register each dependent feature before its row-model slot.
  • Move filterFns, sortingFns/sortFns, and aggregationFns into feature slots, registering individually imported built-ins; pass no registries to factories.
  • Register rowAggregationFeature independently and migrate custom aggregation callables to context-based AggregationFnDef definitions.
  • Register columnFilteringFeature before global filtering and filter/facet dependencies.
  • Register columnSizingFeature before columnResizingFeature.
  • Replace table.getState() and top-level onStateChange according 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/right key, argument, comparison, method family, and sticky CSS declaration with logical start/end equivalents.
  • Split table-level enablePinning; preserve column-def enablePinning where intended.
  • Split sizing/resizing features and rename the resizing state, setter, and callback.
  • Replace every sortingFn/SortingFn/sortingFns spelling with its v9 sort* spelling.
  • Remove every consumed underscore-prefixed internal API.
  • Recheck indeterminate selection logic against the new "at least one" semantics.
  • Add TFeatures to unavoidable explicit core types, helpers, and retained meta augmentation; otherwise restore inference.
  • Replace function-registry and filter-meta declaratio
Pertanyaan umum

Apakah saya harus menulis tes sebelum bermigrasi?

Ya. Skill menyatakan Anda sebaiknya memastikan tes untuk tabel yang ada lolos sebelum mengubahnya.

Apakah useLegacyTable pilihan jangka panjang yang baik?

Tidak. Skill menyebutnya jembatan khusus React yang sudah usang untuk migrasi bertahap, bukan target pengaturan.

Framework mana saja yang punya panduan migrasi?

Skill mencantumkan panduan untuk React, Preact, Solid, Svelte, Vue, Angular, dan Lit. Alpine, Ember, dan Octane tidak punya panduan migrasi v8.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
29k
Peringkat
#9836
Lisensi
MIT
Diperbarui
21/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa