Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: TanStack/table
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v9.0.0-alpha.10
Choose a base ref
...
head repository: TanStack/table
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Jul 1, 2024

  1. docs(vue): vue filters example (#5644)

    * examples: vue filters
    
    * run through prettier
    
    * add missing components
    
    * fix typing issue
    
    * add docs link to new example
    radusuciu authored Jul 1, 2024
    Copy the full SHA
    e749f31 View commit details

Commits on Jul 2, 2024

  1. Copy the full SHA
    6a4a10d View commit details

Commits on Jul 6, 2024

  1. Copy the full SHA
    241f26f View commit details

Commits on Jul 11, 2024

  1. Copy the full SHA
    0054eb3 View commit details

Commits on Jul 14, 2024

  1. docs: use @tanstack/lit-virtual for the virtualized table example (#5655

    )
    
    Co-authored-by: Mor Kadosh <mkadosh@paloaltonetworks.com>
    kadoshms and Mor Kadosh authored Jul 14, 2024
    Copy the full SHA
    bb0a536 View commit details
  2. fix(table-core): assign unassign parentId in grouped row model (#5657)

    * fix(getGroupedRowModel): assign parentId & unassign on ungroup (including depth = 0 on ungroup)
    
    * assign parent id before flattening rows
    
    * simplify ungrouping
    
    * remove nx token again
    
    * don't remove nx token again
    
    ---------
    
    Co-authored-by: Kevin Van Cott <kevinvandy656@gmail.com>
    PiR1 and KevinVandy authored Jul 14, 2024
    Copy the full SHA
    a71ce10 View commit details
  3. release: v8.19.3

    tannerlinsley committed Jul 14, 2024
    Copy the full SHA
    3f0e5d2 View commit details

Commits on Jul 19, 2024

  1. Copy the full SHA
    e420d00 View commit details
  2. Copy the full SHA
    efba3b0 View commit details

Commits on Jul 27, 2024

  1. Copy the full SHA
    92ef946 View commit details
  2. docs: Fix typo in documentation (#5673)

    Fix a typo in the `columns.md` file.
    therealemjy authored Jul 27, 2024
    Copy the full SHA
    7bf42dd View commit details
  3. Copy the full SHA
    fe690df View commit details
  4. docs: Clarify that getIsSomeRowsSelected return false if all rows are…

    … selected (#5337)
    
    Discussion about this problem here #4780
    smucode authored Jul 27, 2024
    Copy the full SHA
    5f7ddd6 View commit details
  5. Copy the full SHA
    dd210f9 View commit details

Commits on Aug 3, 2024

  1. docs: fix typo on tables.md (#5681)

    fix typo on "Creating a Table Instance" section on https://tanstack.com/table/latest/docs/guide/tables
    dalalRohit authored Aug 3, 2024
    Copy the full SHA
    a669e39 View commit details
  2. docs: typo in multi-sorting guide (#5686)

    Co-authored-by: trietlam <triet@conqahq.com>
    trietlam and trietlam authored Aug 3, 2024
    Copy the full SHA
    2c74877 View commit details
  3. Copy the full SHA
    be8d0e7 View commit details
  4. fix: getFacetedMinMaxValues default implementation sometimes returnin…

    …g array of arrays (#5676)
    
    * fix getFacetedMinMaxValues returning array bug
    
    * rework for your consideration
    
    * ci: apply automated fixes
    
    * don't use array at
    
    ---------
    
    Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
    Co-authored-by: Kevin Van Cott <kevinvandy656@gmail.com>
    3 people authored Aug 3, 2024
    Copy the full SHA
    9d54b2e View commit details
  5. release: v8.19.4

    tannerlinsley committed Aug 3, 2024
    Copy the full SHA
    f269a59 View commit details
  6. Copy the full SHA
    f8a018d View commit details
  7. feat: add support for reactivity in Vue-adapter (#5687)

    * feat: add support for reactive data in Vue-adapter
    
    * docs: update example to use reactivity
    
    * add new in 8 20 callout to new docs
    
    * ci: apply automated fixes
    
    ---------
    
    Co-authored-by: Kevin Van Cott <kevinvandy656@gmail.com>
    Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
    3 people authored Aug 3, 2024
    Copy the full SHA
    ab8e318 View commit details
  8. release: v8.20.0

    tannerlinsley committed Aug 3, 2024
    Copy the full SHA
    73f0057 View commit details
  9. docs: Update columns.md (#5666)

    The usage of backticks inside of the header and cell links made it so that the text could not be properly parsed and rendered the links impossible to use.
    With this change, the links are available again.
    squidjam authored Aug 3, 2024
    Copy the full SHA
    a8d1971 View commit details
  10. Copy the full SHA
    55da0c3 View commit details
  11. fix: id building was not consistent when using deep accessorKey (4754) (

    #5430)
    
    * fix: id building was not consistent when using deep accessorKey (4754)
    
    * ci: apply automated fixes
    
    ---------
    
    Co-authored-by: Kevin Van Cott <kevinvandy656@gmail.com>
    Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
    3 people authored Aug 3, 2024
    Copy the full SHA
    84cf73a View commit details
  12. release: v8.20.1

    tannerlinsley committed Aug 3, 2024
    Copy the full SHA
    9370c9e View commit details
  13. Copy the full SHA
    2fea8c2 View commit details

Commits on Aug 5, 2024

  1. Copy the full SHA
    7331506 View commit details
  2. release: v8.20.2

    tannerlinsley committed Aug 5, 2024
    Copy the full SHA
    b68ff00 View commit details

Commits on Aug 8, 2024

  1. Copy the full SHA
    836cbb7 View commit details

Commits on Aug 9, 2024

  1. fix: major performance bug in Vue-adapter (#5698)

    * fix: major performance bug
    
    * fix: export options-type with reactive data
    OlaAlsaker authored Aug 9, 2024
    Copy the full SHA
    fb2d72f View commit details
  2. release: v8.20.3

    tannerlinsley committed Aug 9, 2024
    Copy the full SHA
    4685962 View commit details
  3. Copy the full SHA
    5110aa9 View commit details
  4. release: v8.20.4

    tannerlinsley committed Aug 9, 2024
    Copy the full SHA
    5e7bb0c View commit details

Commits on Aug 10, 2024

  1. Copy the full SHA
    58913b6 View commit details

Commits on Aug 24, 2024

  1. fix(table-core): allow searching of numbers (#5718)

    Co-authored-by: gaga8820 <gagandeep.singh1@rackspace.com>
    GaganSingh7 and cre8ive-gds authored Aug 24, 2024
    Copy the full SHA
    237b1c4 View commit details
  2. release: v8.20.5

    tannerlinsley committed Aug 24, 2024
    Copy the full SHA
    ab2819c View commit details

Commits on Aug 30, 2024

  1. Copy the full SHA
    2db4061 View commit details

Commits on Aug 31, 2024

  1. Copy the full SHA
    7fe650d View commit details

Commits on Sep 14, 2024

  1. docs: Updated some incomplete docs (#5741)

    * Updated some incomplete docs
    
    * Update expanding.md
    
    Modified some information for clarity
    
    * Update expanding.md
    
    Fixed some typos
    
    * Update expanding.md
    
    fixed some typos
    
    * Update expanding.md
    
    * Update global-faceting.md
    
    * Update grouping.md
    
    * Update grouping.md
    
    * Update expanding.md
    
    * Update expanding.md
    
    * Update global-filtering.md
    
    * polish up new docs
    
    ---------
    
    Co-authored-by: Kevin Van Cott <kevinvandy656@gmail.com>
    mahmudhamid and KevinVandy authored Sep 14, 2024
    Copy the full SHA
    6b4d616 View commit details

Commits on Dec 13, 2024

  1. Copy the full SHA
    cbcea6a View commit details
  2. release: v8.20.6

    tannerlinsley committed Dec 13, 2024
    Copy the full SHA
    a92ce6a View commit details

Commits on Dec 30, 2024

  1. docs: Update global-filtering.md (#5826)

    typo: setGlobalFilter
    added the missing `r`
    frankieali authored Dec 30, 2024
    Copy the full SHA
    3cf4fd9 View commit details
  2. Copy the full SHA
    226c677 View commit details
  3. Copy the full SHA
    7c0d8e5 View commit details
  4. Copy the full SHA
    a0f5c32 View commit details
  5. Copy the full SHA
    6625ec6 View commit details
  6. Copy the full SHA
    4aecd84 View commit details
  7. Copy the full SHA
    a430212 View commit details
  8. Copy the full SHA
    510c6a7 View commit details
Showing 372 changed files with 12,144 additions and 1,635 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: autofix.ci # needed to securely identify the workflow

on:
pull_request:
push:
branches: [main, alpha, beta, rc]

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
autofix:
name: autofix
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Tools
uses: tanstack/config/.github/setup@main
- name: Fix formatting
run: pnpm prettier:write
- name: Apply fixes
uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a
with:
commit-message: 'ci: apply automated fixes'
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ on:
description: override release tag
required: false
push:
branches: ['main', 'alpha', 'beta', 'rc']
branches: [main, alpha, beta, rc]

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
@@ -16,6 +16,10 @@ concurrency:
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

permissions:
contents: write
id-token: write

jobs:
test-and-publish:
name: Test & Publish
@@ -42,6 +46,6 @@ jobs:
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
pnpm run cipublish
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
TAG: ${{ inputs.tag }}
19 changes: 18 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -14,6 +14,9 @@ concurrency:
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

permissions:
contents: read

jobs:
test:
name: Test
@@ -30,9 +33,23 @@ jobs:
- name: Get base and head commits for `nx affected`
uses: nrwl/nx-set-shas@v4
with:
main-branch-name: 'main'
main-branch-name: main
- name: Run Checks
run: pnpm run test:pr --parallel=3
- name: Stop Nx Agents
if: ${{ always() }}
run: npx nx-cloud stop-all-agents
preview:
name: Preview
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Tools
uses: tanstack/config/.github/setup@main
- name: Build Packages
run: pnpm run build:all
- name: Publish Previews
run: pnpx pkg-pr-new publish --pnpm --compact './packages/*' --template './examples/*/*'
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
link-workspace-packages=true
prefer-workspace-packages=true
provenance=true
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.19.0
20.15.1
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -46,13 +46,13 @@ Try other [TanStack](https://tanstack.com) libraries:

You may know **TanStack Table** by our adapter names, too!

- [Angular Table](https://tanstack.com/table/v8/docs/adapters/angular-table)
- [Lit Table](https://tanstack.com/table/v8/docs/adapters/lit-table)
- [Qwik Table](https://tanstack.com/table/v8/docs/adapters/qwik-table)
- [**React Table**](https://tanstack.com/table/v8/docs/adapters/react-table)
- [Solid Table](https://tanstack.com/table/v8/docs/adapters/solid-table)
- [Svelte Table](https://tanstack.com/table/v8/docs/adapters/svelte-table)
- [Vue Table](https://tanstack.com/table/v8/docs/adapters/vue-table)
- [Angular Table](https://tanstack.com/table/v8/docs/framework/angular/angular-table)
- [Lit Table](https://tanstack.com/table/v8/docs/framework/lit/lit-table)
- [Qwik Table](https://tanstack.com/table/v8/docs/framework/qwik/qwik-table)
- [**React Table**](https://tanstack.com/table/v8/docs/framework/react/react-table)
- [Solid Table](https://tanstack.com/table/v8/docs/framework/solid/solid-table)
- [Svelte Table](https://tanstack.com/table/v8/docs/framework/svelte/svelte-table)
- [Vue Table](https://tanstack.com/table/v8/docs/framework/vue/vue-table)

## Summary

2 changes: 1 addition & 1 deletion docs/api/core/cell.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
title: Cell APIs
---

These are **core** options and API properties for all cells. More options and API properties are available for other [table features](../../../guide/features).
These are **core** options and API properties for all cells. More options and API properties are available for other [table features](../guide/features).

## Cell API

2 changes: 1 addition & 1 deletion docs/api/core/column.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
title: Column APIs
---

These are **core** options and API properties for all columns. More options and API properties are available for other [table features](../../../guide/features).
These are **core** options and API properties for all columns. More options and API properties are available for other [table features](../guide/features).

## Column API

4 changes: 2 additions & 2 deletions docs/api/core/header-group.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
title: HeaderGroup APIs
---

These are **core** options and API properties for all header groups. More options and API properties may be available for other [table features](../../../guide/features).
These are **core** options and API properties for all header groups. More options and API properties may be available for other [table features](../guide/features).

## Header Group API

@@ -30,4 +30,4 @@ The depth of the header group, zero-indexed based.
type headers = Header<TData>[]
```
An array of [Header](../header) objects that belong to this header group
An array of [Header](../api/core/header) objects that belong to this header group
6 changes: 3 additions & 3 deletions docs/api/core/header.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
title: Header APIs
---

These are **core** options and API properties for all headers. More options and API properties may be available for other [table features](../../../guide/features).
These are **core** options and API properties for all headers. More options and API properties may be available for other [table features](../guide/features).

## Header API

@@ -38,15 +38,15 @@ The depth of the header, zero-indexed based.
column: Column<TData>
```

The header's associated [Column](../column) object
The header's associated [Column](../api/core/column) object

### `headerGroup`

```tsx
headerGroup: HeaderGroup<TData>
```

The header's associated [HeaderGroup](../header-group) object
The header's associated [HeaderGroup](../api/core/header-group) object

### `subHeaders`

4 changes: 2 additions & 2 deletions docs/api/core/row.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
title: Row APIs
---

These are **core** options and API properties for all rows. More options and API properties are available for other [table features](../../../guide/features).
These are **core** options and API properties for all rows. More options and API properties are available for other [table features](../guide/features).

## Row API

@@ -120,4 +120,4 @@ An array of the original subRows as returned by the `options.getSubRows` option.
type getAllCells = () => Cell<TData>[]
```
Returns all of the [Cells](../cell) for the row.
Returns all of the [Cells](../api/core/cell) for the row.
6 changes: 3 additions & 3 deletions docs/api/core/table.md
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ These functions are used to create a table. Which one you use depends on which f
## Options
These are **core** options and API properties for the table. More options and API properties are available for other [table features](../../../guide/features).
These are **core** options and API properties for the table. More options and API properties are available for other [table features](../guide/features).
### `data`
@@ -34,7 +34,7 @@ When the `data` option changes reference (compared via `Object.is`), the table w
type columns = ColumnDef<TData>[]
```
The array of column defs to use for the table. See the [Column Defs Guide](../../../docs/guide/column-defs) for more information on creating column definitions.
The array of column defs to use for the table. See the [Column Defs Guide](../../docs/guide/column-defs) for more information on creating column definitions.
### `defaultColumn`
@@ -89,7 +89,7 @@ declare module '@tanstack/table-core' {
}
```

> 🧠 Think of this option as an arbitrary "context" for your table. This is a great way to pass arbitrary data or functions to your table without having to pass it to every thing the table touches. A good example is passing a locale object to your table to use for formatting dates, numbers, etc or even a function that can be used to update editable data like in the [editable-data example](../../../framework/react/examples/editable-data).
> 🧠 Think of this option as an arbitrary "context" for your table. This is a great way to pass arbitrary data or functions to your table without having to pass it to every thing the table touches. A good example is passing a locale object to your table to use for formatting dates, numbers, etc or even a function that can be used to update editable data like in the [editable-data example](../framework/react/examples/editable-data).
### `state`

8 changes: 4 additions & 4 deletions docs/api/features/filters.md
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ id: filters

The Filtering API docs are now split into multiple API doc pages:

- [Column Faceting](../column-faceting)
- [Global Faceting](../global-faceting)
- [Column Filtering](../column-filtering)
- [Global Filtering](../global-filtering)
- [Column Faceting](../api/features/column-faceting)
- [Global Faceting](../api/features/global-faceting)
- [Column Filtering](../api/features/column-filtering)
- [Global Filtering](../api/features/global-filtering)
2 changes: 1 addition & 1 deletion docs/api/features/global-filtering.md
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ export interface GlobalFilterTableState {

## Filter Functions

You can use the same filter functions that are available for column filtering for global filtering. See the [Column Filtering APIs](../column-filtering) to learn more about filter functions.
You can use the same filter functions that are available for column filtering for global filtering. See the [Column Filtering APIs](../api/features/column-filtering) to learn more about filter functions.

#### Using Filter Functions

4 changes: 2 additions & 2 deletions docs/api/features/pinning.md
Original file line number Diff line number Diff line change
@@ -7,5 +7,5 @@ id: pinning

The pinning apis are now split into multiple api pages:

- [Column Pinning](../column-pinning)
- [Row Pinning](../row-pinning)
- [Column Pinning](../api/features/column-pinning)
- [Row Pinning](../api/features/row-pinning)
4 changes: 3 additions & 1 deletion docs/api/features/row-selection.md
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ export type RowSelectionTableState = {
}
```
By default, the row selection state uses the index of each row as the row identifiers. Row selection state can instead be tracked with a custom unique row id by passing in a custom [getRowId](../../../api/core/table.md#getrowid) function to the the table.
By default, the row selection state uses the index of each row as the row identifiers. Row selection state can instead be tracked with a custom unique row id by passing in a custom [getRowId](../core/table.md#getrowid) function to the the table.
## Table Options
@@ -113,6 +113,8 @@ getIsSomeRowsSelected: () => boolean
Returns whether or not any rows in the table are selected.
NOTE: Returns `false` if all rows are selected.
### `getIsSomePageRowsSelected`
```tsx
59 changes: 58 additions & 1 deletion docs/config.json
Original file line number Diff line number Diff line change
@@ -121,7 +121,7 @@
"to": "guide/tables"
},
{
"label": "Rows Models",
"label": "Row Models",
"to": "guide/row-models"
},
{
@@ -435,9 +435,29 @@
"to": "framework/angular/examples/row-selection",
"label": "Row Selection"
},
{
"to": "framework/angular/examples/expanding",
"label": "Expanding"
},
{
"to": "framework/angular/examples/sub-components",
"label": "Sub Components"
},
{
"to": "framework/angular/examples/signal-input",
"label": "Signal Input"
},
{
"to": "framework/angular/examples/editable",
"label": "Editable data"
},
{
"to": "framework/angular/examples/row-dnd",
"label": "Row DnD"
},
{
"to": "framework/angular/examples/column-resizing-performant",
"label": "Performant Column Resizing"
}
]
},
@@ -590,10 +610,18 @@
"to": "framework/react/examples/virtualized-columns",
"label": "Virtualized Columns"
},
{
"to": "framework/react/examples/virtualized-columns-experimental",
"label": "Virtualized Columns (Experimental)"
},
{
"to": "framework/react/examples/virtualized-rows",
"label": "Virtualized Rows"
},
{
"to": "framework/react/examples/virtualized-rows-experimental",
"label": "Virtualized Rows (Experimental)"
},
{
"to": "framework/react/examples/virtualized-infinite-scrolling",
"label": "Virtualized Infinite Scrolling"
@@ -724,6 +752,35 @@
{
"to": "framework/vue/examples/sub-components",
"label": "Sub Components"
},
{
"to": "framework/vue/examples/filters",
"label": "Column Filters"
},
{
"to": "framework/vue/examples/virtualized-rows",
"label": "Virtualized Rows"
},
{
"to": "framework/vue/examples/grouping",
"label": "Grouping"
}
]
},
{
"label": "vanilla",
"children": [
{
"to": "framework/vanilla/examples/basic",
"label": "Basic"
},
{
"to": "framework/vanilla/examples/pagination",
"label": "Pagination"
},
{
"to": "framework/vanilla/examples/sorting",
"label": "Sorting"
}
]
}
Loading