Skip to content

fix(deps): update dependency @tanstack/react-table to v9 - #204

Merged
SamuelIVX merged 1 commit into
mainfrom
renovate/major-tanstack-table-monorepo
Aug 5, 2026
Merged

fix(deps): update dependency @tanstack/react-table to v9#204
SamuelIVX merged 1 commit into
mainfrom
renovate/major-tanstack-table-monorepo

Conversation

@SamuelIVX

Copy link
Copy Markdown
Owner

This PR contains the following updates:

Package Change Age Confidence
@tanstack/react-table (source) ^8.21.3^9.0.0 age confidence

Release Notes

TanStack/table (@​tanstack/react-table)

v9.0.0

Compare Source

Major Changes
  • #​6512 2327f80 - TanStack Table v9 stable release. See the "Migrating to V9" guide for your framework (e.g. React) for upgrade instructions.
Patch Changes

Configuration

📅 Schedule: (in timezone America/New_York)

  • Branch creation
    • "every weekday"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Summary by CodeRabbit

  • Chores
    • Updated the table functionality to the latest major version, improving compatibility and access to current capabilities.

Walkthrough

The package manifest updates @tanstack/react-table from ^8.21.3 to ^9.0.0.

Changes

React Table dependency update

Layer / File(s) Summary
Update React Table dependency range
package.json
The dependency range changes from ^8.21.3 to ^9.0.0.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the dependency update from @tanstack/react-table v8 to v9.
Description check ✅ Passed The description directly explains the @tanstack/react-table upgrade and includes the related release notes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch renovate/major-tanstack-table-monorepo

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

package.json

typescript-eslint does not support TS 7.0.
Please see https://devblogs.microsoft.com/typescript/announcing-typescript-7-0/#running-side-by-side-with-typescript-6.0 to run typescript-eslint using the TS 6 API.
See also typescript-eslint/typescript-eslint#10940 for tracking typescript-eslint's support for TS >=7.1

Oops! Something went wrong! :(

ESLint: 10.8.0

Error: typescript-eslint does not support TS 7.0.
at Object. (/node_modules/eslint-config-next/node_modules/typescript-eslint/dist/index.js:52:11)
at Module._compile (node:internal/modules/cjs/loader:1830:14)
at Object..js (node:internal/modules/cjs/loader:1961:10)
at Module.load (node:internal/modules/cjs/loader:1553:32)
at Module._load (node:internal/modules/cjs/loader:1355:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.require (node:internal/modules/cjs/loader:1576:12)
at require (node:internal/modules/helpers:153:16)
at Object. (/node_modules/eslint-config-next/dist/index.js:5:64)
at Module._compile (node:internal/modules/cjs/loader:1830:14)


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@package.json`:
- Line 27: Revert the `@tanstack/react-table` dependency to a compatible v8
version, or migrate every consumer of useReactTable and row-model helpers to v9
by importing useLegacyTable from `@tanstack/react-table/legacy` or adopting the v9
tableFeatures/rowModels API. Ensure both table consumers use an API matching the
dependency version and preserve their existing table behavior.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 0a50ebc5-df59-4045-a477-aea781eb99a9

📥 Commits

Reviewing files that changed from the base of the PR and between ab687f5 and 4b2a54d.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • package.json
📜 Review details
⏰ Context from checks skipped due to timeout. (1)
  • GitHub Check: Lint Code Base

Comment thread package.json
"@tabler/icons-react": "^3.36.0",
"@tanstack/react-query": "^5.90.12",
"@tanstack/react-table": "^8.21.3",
"@tanstack/react-table": "^9.0.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Find all consumers of `@tanstack/react-table` that use v8-style APIs.
rg -n --type=ts --type=tsx -C3 "from ['\"]`@tanstack/react-table`['\"]" app 2>/dev/null
rg -n -C3 "useReactTable\(" app 2>/dev/null

Repository: SamuelIVX/MetricForge

Length of output: 1327


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== package manifests =="
sed -n '1,80p' package.json | cat -n
echo
if [ -f package-lock.json ]; then
  jq '.packages["node_modules/@tanstack/react-table"]? // null' package-lock.json 2>/dev/null || true
  echo
  rg -n '"`@tanstack/react-table`":|from "`@tanstack/react-table`"|from "' `@tanstack/react-table` app package.json package-lock.json 2>/dev/null | head -200
else
  echo "no package-lock.json"
fi

echo
echo "== history_table imports and function =="
sed -n '1,120p' app/components/tables/history_table/table.tsx | cat -n

echo
echo "== task_table imports and function =="
sed -n '1,120p' app/components/tables/task_table/table.tsx | cat -n

Repository: SamuelIVX/MetricForge

Length of output: 21723


🌐 Web query:

TanStack React Table v9 v8 migration useReactTable from @tanstack/react-table legacy stockFeatures useLegacyTable

💡 Result:

TanStack Table v9 was officially released as a stable version on August 4, 2026 [1][2]. This major release introduces a new architecture focused on performance and tree-shaking by requiring explicit configuration of features and row models, moving away from the "all-in-one" bundled approach of v8 [3][4][5]. For developers migrating from v8, TanStack provides a transition path using the useLegacyTable hook [3][4][5]. Legacy Migration (useLegacyTable) The useLegacyTable hook is a temporary compatibility layer that accepts the v8-style API while running v9 under the hood [3][4]. - Status: It is deprecated and intended only as a short-term migration aid [4][5]. - Trade-off: It includes all features by default, resulting in a larger bundle size compared to the standard v9 approach [4][5]. - Usage: It allows you to continue using v8-style get*RowModel() options instead of the new v9 rowModels configuration [4][6]. Recommended Migration Path (useTable) To fully utilize v9, you should migrate to the useTable hook [4][5]. - Features: You must explicitly declare required features using the tableFeatures() utility [3][7]. - stockFeatures: If you want to replicate v8 behavior (including all features) but with the modern v9 API, you can import and use stockFeatures [3][7]. - Row Models: Instead of get*RowModel() options, you configure row models via the rowModels option (e.g., createFilteredRowModel()) [3][8]. Key differences for your migration include: - Tree-shaking: Only import and register the specific features and row model functions your table actually uses [3][4][5]. - State Management: v9 introduces more granular state subscriptions (e.g., table.Subscribe) compared to the automatic full-state subscription of v8 [9][4][5]. - Reusable Configurations: useLegacyTable cannot be used with the new createTableHook pattern; you must migrate to the full v9 API to create reusable table configurations [4]. Plan to move away from useLegacyTable as soon as possible to take advantage of improved performance and reduced bundle sizes [4][5].

Citations:


Remove the incompatible v9 table bump or migrate the consumers.

@tanstack/react-table is now ^9.0.0, but the app still imports useReactTable and row-model helpers from @tanstack/react-table and passes the v8 options object. TanStack Table v9 does not include these features by default. Add useLegacyTable at @tanstack/react-table/legacy, or update both table consumers to the v9 tableFeatures/rowModels API, before merging this change.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@package.json` at line 27, Revert the `@tanstack/react-table` dependency to a
compatible v8 version, or migrate every consumer of useReactTable and row-model
helpers to v9 by importing useLegacyTable from `@tanstack/react-table/legacy` or
adopting the v9 tableFeatures/rowModels API. Ensure both table consumers use an
API matching the dependency version and preserve their existing table behavior.

@SamuelIVX
SamuelIVX merged commit 871142d into main Aug 5, 2026
6 checks passed
@SamuelIVX
SamuelIVX deleted the renovate/major-tanstack-table-monorepo branch August 5, 2026 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant