Migrating to v1
v1.0.0 moves Table to TanStack Table v9. There is no codemod: the changes are in types and table-instance APIs that a codemod cannot rewrite safely.
DSTableFeatures
TanStack Table v9 types are parameterized by the table's feature set. The design system exports
its feature set as DSTableFeatures; pass it wherever you name TanStack types:
ColumnMeta generics
If you augment TanStack's ColumnMeta, it now takes the features as its first type parameter:
table.getState() is removed
Read state from table.state instead:
Column pinning
onColumnPinningChange now always receives a right array, empty when nothing is pinned right:
{ left: ['name'], right: [] }. Update code that checks for a missing right.
Sorting
The sort order of text columns may differ from earlier versions. Check views and tests that rely on an exact order of sorted text.