0
Fork 0
mirror of https://github.com/TanStack/table.git synced 2026-11-18 18:55:54 +00:00
Commit graph

349 commits

Author SHA1 Message Date
github-actions[bot]
d8ae30bcfe
ci: Version Packages (#6625) 2026-10-08 16:31:03 -05:00
github-actions[bot]
2df4cf3673
ci: Version Packages (#6612)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-04 12:47:48 -05:00
github-actions[bot]
1257a3f9dd
ci: Version Packages (#6610)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-03 23:12:42 -05:00
Kevin Van Cott
e9158e7be8
chore: package upgrades (#6609)
* chore: package upgrades

* chore: retain compatible intent skill validation
2026-10-03 22:05:11 -05:00
Kevin Van Cott
0bdf588f98
chore: package upgrades (#6592) 2026-09-14 10:21:24 -05:00
github-actions[bot]
d01c01bedb
ci: Version Packages (#6580)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-28 12:37:27 -05:00
Riccardo Perra
f72e5164bc
fix: Add realtime (w/ fake data) trading table example (#6561)
* perf: revisit angular adapter to improve memory usage and flexrender dirty checking

* trading grid example

* perf: revisit angular adapter to improve memory usage and flexrender dirty checking

* perf: revisit angular adapter to improve memory usage and flexrender dirty checking

* update example

* still some improvements

* align examples

* Add realtime-trading example for vue, svelte, octane, alpine, ember

Angular,React,Solid improvements

* Default to virtual scrolling for larger trading datasets

* update README.md

* ci: apply automated fixes

* rename

* ci: apply automated fixes

* ci: apply automated fixes (attempt 2/3)

* ci: apply automated fixes (attempt 3/3)

* refactor: optimize input/output handling in flex render components

- Replace `for...in` loops with `Object.keys()` for better performance and clarity.
- Simplify the rendering logic by removing unnecessary checks and parameters.
- Ensure consistent handling of injectors across component rendering.

* Refactor table implementation and update examples

* Refactor project structure and update related implementations

* ci: apply automated fixes

* Replace TanStack store atoms with native Vue refs

* ci: apply automated fixes

* Prevent text selection in realtime trading grids

* ci: apply automated fixes

* update packages and fix e2e tests

* fix e2e tests and remove virtualiztion from examples without dedicated
ts virtual package

* fix tests

---------

Co-authored-by: Kevin Van Cott <kevinvandy656@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-28 11:56:00 -05:00
github-actions[bot]
3bfc1bf60b
ci: Version Packages (#6575)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-26 14:20:28 -05:00
Kevin Van Cott
faa261b54c
feat: support latest TanStack Devtools and refresh package versions (#6553)
Keep Vue and Angular table plugins working with current @tanstack/devtools plugin props and font injection, and bump workspace dependencies excluding Babel and TypeScript.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-14 06:56:05 -05:00
github-actions[bot]
ff7653dad0
ci: Version Packages (#6533)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-08 22:00:52 -05:00
github-actions[bot]
058a5208ef
ci: Version Packages (#6531)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-08 13:27:55 -05:00
github-actions[bot]
3af6abca64
ci: Version Packages (#6527)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-07 13:18:09 -05:00
github-actions[bot]
896e998827
ci: Version Packages (#6525)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-07 08:19:43 -05:00
github-actions[bot]
7ec3b9034f
ci: Version Packages (#6513)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-04 00:35:44 -05:00
github-actions[bot]
d0f2ef7a60
release: version packages (#6510)
release: v9.0.0-beta.80

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-03 21:27:01 -05:00
github-actions[bot]
00bccc405f
release: version packages (#6504)
release: v9.0.0-beta.78

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-02 23:36:16 -05:00
github-actions[bot]
4085eec990
release: version packages (#6502)
release: v9.0.0-beta.77

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-02 23:01:31 -05:00
github-actions[bot]
015b3d2cb4
release: version packages (#6500)
release: v9.0.0-beta.76

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-02 17:45:29 -05:00
github-actions[bot]
bd622ee31b
release: version packages (#6498)
release: v9.0.0-beta.75

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-02 16:54:59 -05:00
github-actions[bot]
6fe1f858bb
release: version packages (#6496)
release: v9.0.0-beta.74

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-02 10:52:57 -05:00
github-actions[bot]
bd19ba772c
release: version packages (#6494)
release: v9.0.0-beta.73

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-02 09:10:25 -05:00
github-actions[bot]
9700f9b73b
release: version packages (#6492)
release: v9.0.0-beta.72

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-02 07:38:11 -05:00
Kevin Van Cott
54fb3bf757
chore: update vite configs to run in codesandbox better 2026-08-02 07:19:17 -05:00
github-actions[bot]
958551dbbc
release: version packages (#6490)
release: v9.0.0-beta.71

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-01 21:17:56 -05:00
github-actions[bot]
3941f7e155
release: version packages (#6488)
release: v9.0.0-beta.70

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-01 19:42:31 -05:00
github-actions[bot]
65712b74fd
release: version packages (#6486)
release: v9.0.0-beta.69

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-01 12:22:03 -05:00
Kevin Van Cott
0b294316dc
feat: support subtractive cell selection (#6476)
* feat: support subtractive cell selection

* ci: apply automated fixes

* ci: apply automated fixes (attempt 2/3)

* ci: apply automated fixes (attempt 3/3)

* docs: update cell selection skills

* vite type module

* remove test results

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-01 07:28:44 -05:00
Kevin Van Cott
f944d5893e
chore: package upgrades 2026-07-31 17:40:00 -05:00
Kevin Van Cott
d2b2f75d45
feat: octane-table adapter (#6477)
* feat: octane-table adapter

* add skills for octane

* move to compiled tsrx
2026-07-31 14:44:13 -05:00
github-actions[bot]
d66b39f01e
release: version packages (#6471)
release: v9.0.0-beta.65

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-30 19:59:32 -05:00
github-actions[bot]
22d775430f
release: version packages (#6470)
release: v9.0.0-beta.64

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-30 19:09:04 -05:00
github-actions[bot]
05edac5768
release: version packages (#6469)
release: v9.0.0-beta.63

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-30 15:53:55 -05:00
github-actions[bot]
79cbfb6722
release: version packages (#6468)
release: v9.0.0-beta.62

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-30 10:48:10 -05:00
github-actions[bot]
e4837e04d2
release: version packages (#6466)
release: v9.0.0-beta.61

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-30 08:47:46 -05:00
github-actions[bot]
95f548ae6b
release: version packages (#6463)
release: v9.0.0-beta.59

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-29 19:05:47 -05:00
Riccardo Perra
4be42f940d
fix: react adapter sync state (#6458)
* fix: react adapter sync state

* Some changes

* refactor: move render-phase sync strategy into core reactivity bindings (#6459)

* refactor: move render-phase sync strategy into core reactivity bindings

Builds on the deferred controlled-state publication from this branch and
consolidates it behind a consistent adapter interface:

- TableReactivityBindings gains two optional properties describing the two
  strategy axes: deferExternalStateSync (write-side: is setOptions a
  notification-safe moment?) and commit (invalidation hook for readonly atoms
  whose compute reads non-reactive plain options). constructTable warns in dev
  when defer is set with plain options but no commit hook.
- table_setOptions consults the bindings flag instead of a per-call
  { syncExternalState } option, so an adapter's strategy is declared once.
- table_syncExternalStateToBaseAtoms replaces the arguments.length overloads
  with an explicit `capturedState | null` sentinel, and now owns the commit
  bump: it runs inside the write batch and fires even when nothing is
  published, so ownership releases still invalidate subscribers.
- New renderPhaseReactivity preset in @tanstack/table-core/reactivity hosts
  the live readonly-atom facade + commit atom (moved from the React adapter).
  Store primitives are injected by the adapter so all atoms share one store
  instance with user external atoms. Preact can adopt the same preset later.
- New createCommitFilteredSource replaces useTableSelector: because facade
  snapshots are referentially stable, a reference check on the last snapshot
  read is enough to skip the root hook's redundant post-commit notification.
  This drops the committed-selection refs and the implicit requirement that
  the selector's layout effect run before the publish effect.
- useTable: plain useSelector over the filtered source; the publish layout
  effect is a single table_syncExternalStateToBaseAtoms call.

All 11 react-table tests from this branch pass unchanged. table-core: 1017
tests, types, lint, size-limit green. Both example e2e smoke suites pass.
Verified in basic-external-state (StrictMode + React Compiler + devtools):
one render pass and one commit per controlled update, no render-phase
warning, correct behavior through pagination/sorting/page-size/1M-row stress.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix: adopt render-phase reactivity preset in the preact adapter

Preact had the identical sync-options-during-render code as React and paid
the same cost silently: the mid-render store notification scheduled an extra
deferred render per controlled update (Preact never warns about it).

Same shape as the React adapter: preactReactivity collapses onto
renderPhaseReactivity with @tanstack/preact-store primitives, useTable defers
publication to an isomorphic layout effect with the captured controlled
state, and the root useSelector reads through createCommitFilteredSource.

New unit tests assert one render pass per controlled update with consistent
controlled/selected/atom/store/row-model reads, exactly one post-commit store
notification for external subscribers, and uncontrolled updates still
re-rendering. New e2e spec exercises controlled pagination in the
basic-external-state preact example. Types, lint, and build green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix: adopt render-phase reactivity in the lit adapter, un-pin subscribe islands from stale renders

The lit basic-subscribe e2e regression had two stacked causes:

1. The subscribe directive returned noChange for host-driven re-renders with
   an unchanged source + selector, so islands only ever updated from store
   notifications. They previously received one for ANY setOptions call
   because the aggregate state snapshot was rebuilt without a comparator;
   the (correct) shallow compare on table.store stopped notifying for
   options-only changes, pinning islands to stale row models after
   Regenerate Data. The directive now re-renders islands on every host
   update and adopts the latest template closure, while subscriptions still
   drive updates between host renders.

2. Lit was the off-diagonal reactivity case: a reactive options store
   written during render(), costing a second update cycle per interaction
   (requestUpdate mid-update from the optionsStore subscription).
   litReactivity now uses the renderPhaseReactivity preset with
   @tanstack/lit-store primitives: plain options synced during render,
   captured controlled state published from hostUpdated(), and the
   controller's root subscription reads through createCommitFilteredSource.
   The optionsStore subscription is gone; options changes flow through host
   renders (lit reactive properties), which 30 of 31 lit examples already
   use. basic-subscribe was the lone outlier constructing the table once
   and pushing data via imperative setOptions in updated() — it now
   re-syncs options per render pass like the rest.

Measured on basic-subscribe: Regenerate Data works again with one host
update (previously two, with stale islands), zero idle update churn, and a
row-selection click still updates only its island with zero host updates.

Unit tests: directive/controller suites updated to the new contract plus a
hostUpdated publication test (6/6). All 34 lit example e2e suites pass,
including the previously failing basic-subscribe. Types, lint, build green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* test: drop dev-warning assertion to match removed bindings coherence warning

The constructTable dev warning for deferExternalStateSync-without-commit was
removed in the previous commit; align the test suite (1010 tests green).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* ci: apply automated fixes

* consolidate constructTable features loop again

* fix: keep the two-phase feature lifecycle in the consolidated features loop

The consolidated loop interleaved constructTableAPIs with
initTableInstanceData per feature (and ran APIs first within each feature),
breaking the lifecycle contract from #6446 that constructTable.test.ts
encodes: every feature's table instance data initializes before ANY table
APIs are constructed, so API constructors can read instance data owned by
other features and init hooks observe a pre-API table.

Keep the consolidation of the init-fn collection with instance-data init
(one phase-1 loop writing the precomputed arrays directly), and restore
constructTableAPIs as its own second pass.

table-core: 1097/1097. React/preact/lit adapter suites green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* refactor!: process feature lifecycle hooks in a single pass

Drop the two-phase construction contract (all initTableInstanceData before
any constructTableAPIs). Every in-repo hook is pure property assignment with
lazy API closures, so the phase barrier bought nothing; features are now
processed in one registration-order pass with each feature's instance data
initialized just before its own APIs are constructed.

New contract, encoded in the lifecycle test and documented in the
custom-features guides and TableFeature jsdoc: hooks may rely on data and
APIs of features registered earlier; eager cross-feature reads belong in
lazy API bodies.

table-core 1097/1097; react/preact/lit adapter suites green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* refactor: require precomputed instance-init fn arrays on the table type

constructTable always assigns the five _*InstanceInitFns arrays before any
constructor can run, so model them as required and drop the non-null
assertions at the use sites (including the leftover one in buildHeaderGroups
that eslint flagged as unnecessary).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* clean up

* fix some issues exposed by MRT examples

* add more react smoke tests

---------

Co-authored-by: Kevin Van Cott <kevinvandy656@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-29 16:59:21 -05:00
github-actions[bot]
dbff4329f7
release: version packages (#6456)
release: v9.0.0-beta.58

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-25 20:58:24 -05:00
github-actions[bot]
ba45ea109f
release: version packages (#6453)
release: v9.0.0-beta.56

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-24 11:45:15 -05:00
github-actions[bot]
206f4dc427
release: version packages (#6437)
release: v9.0.0-beta.55

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-17 17:17:03 -05:00
github-actions[bot]
f7b30c7199
release: version packages (#6430)
release: v9.0.0-beta.54

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-17 16:18:32 -05:00
github-actions[bot]
7016e8a982
release: version packages (#6428)
release: v9.0.0-beta.53

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-17 09:26:58 -05:00
github-actions[bot]
6ed6fdc02d
release: version packages (#6426)
release: v9.0.0-beta.52

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-16 09:58:43 -05:00
github-actions[bot]
9288b9ee14
release: version packages (#6422)
release: v9.0.0-beta.50

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-15 19:08:16 -05:00
github-actions[bot]
b4a6a366e3
release: version packages (#6420)
release: v9.0.0-beta.49

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-14 19:56:11 -05:00
github-actions[bot]
074ef46376
release: version packages (#6419)
release: v9.0.0-beta.48

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-14 13:08:05 -05:00
github-actions[bot]
e60e6546fb
release: version packages (#6416)
release: v9.0.0-beta.47

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-12 20:56:22 -05:00
Kevin Van Cott
eba5386a67
feat: new filter, sort, aggregation Fns, and recommended import patterns (#6415)
* feat: new filter, sort, aggregation Fns, and recommended import patterns

* fix some examples
2026-07-12 20:47:49 -05:00
github-actions[bot]
a6dcc22367
release: version packages (#6414)
release: v9.0.0-beta.46

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-12 13:54:51 -05:00
github-actions[bot]
efdeeb91ba
release: version packages (#6413)
release: v9.0.0-beta.45

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-12 12:59:44 -05:00
Kevin Van Cott
6340a91924
docs: add useful commented out table options to examples 2026-07-12 12:59:18 -05:00