migrate-v8-to-v9
Что он делает
Это общее руководство помогает обновить проект TanStack Table с версии 8 до версии 9 для всех фреймворков. Оно нужно разработчикам, которым надо найти каждый затронутый API до изменения кода.
Когда использовать
- ✓Когда нужно составить список частей существующей таблицы, которые используют API, изменившиеся в v9.
- ✓Когда вы обновляете таблицу и хотите, чтобы тесты и проверки типов подтвердили, что поведение сохранено.
- ✓Когда вы не уверены, какое руководство по миграции для фреймворка подходит вашему проекту.
Ссылка на скилл
https://github.com/TanStack/table/blob/main/packages/table-core/skills/migrate-v8-to-v9/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Пройдись по моему существующему коду TanStack Table и составь список всего, что нужно изменить для v9.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Скилл просит агента описать опции, импорты и состояние таблицы, проверить каждый пункт по общему чек-листу, а затем прочитать подробные справочные заметки, которые подходят.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с 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
Частые вопросы
Нужно ли писать тесты до миграции?
Да. Скилл советует сначала добиться прохождения тестов для существующей таблицы, а потом ее менять.
Хорош ли useLegacyTable для долгосрочного использования?
Нет. Скилл называет его устаревшим мостом только для React, нужным для постепенной миграции, а не целевой настройкой.
Для каких фреймворков есть руководства по миграции?
Скилл перечисляет руководства для React, Preact, Solid, Svelte, Vue, Angular и Lit. Для Alpine, Ember и Octane руководства по миграции с v8 нет.
Подробности
Оригинальное описание автора
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
Популярность
- Звёзды на GitHub
- 29k
- Место в рейтинге
- #9836
- Лицензия
- MIT
- Обновлён
- 21.10.2026
Комментарии
- …
Другие скиллы из этого репозитория
getting-started
29kУчит агента создавать и выводить таблицу данных с TanStack Table в Alpine.js: настройка, реактивные данные и отрисовка строк.
table-state
29kУчит агента читать и контролировать состояние таблицы в Alpine.js, например текущую страницу, чтобы экран обновлялся при изменении этого состояния.
devtools
29kУчит агента регистрировать таблицы Angular в панели TanStack Devtools, чтобы разработчики могли проверять каждую таблицу во время создания приложения.
getting-started
29kУчит агента создавать и выводить таблицу TanStack в Angular: настройку injectTable, отрисовку в шаблоне и обновление данных строк.
Похожие скиллы
angular-developer
280kПомогает агенту писать код на Angular и советовать по структуре проекта. Полезен для новых проектов, создания частей кода и улучшения производительности.
frontend-a11y
280kПомогает агенту делать веб-интерфейсы доступными для всех, чтобы сайты и приложения работали с программами чтения с экрана и клавиатурой.
frontend-patterns
280kАгент применяет современные паттерны фронтенд-разработки: оптимизирует производительность, управляет состоянием и следует практикам React и Next.js.