@tanstack/table-core 8.19.4 → 8.20.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/table-core",
3
- "version": "8.19.4",
3
+ "version": "8.20.5",
4
4
  "description": "Headless UI for building powerful tables & datagrids for TS/JS.",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -79,7 +79,11 @@ export function createColumn<TData extends RowData, TValue>(
79
79
 
80
80
  let id =
81
81
  resolvedColumnDef.id ??
82
- (accessorKey ? accessorKey.replace('.', '_') : undefined) ??
82
+ (accessorKey
83
+ ? typeof String.prototype.replaceAll === 'function'
84
+ ? accessorKey.replaceAll('.', '_')
85
+ : accessorKey.replace(/\./g, '_')
86
+ : undefined) ??
83
87
  (typeof resolvedColumnDef.header === 'string'
84
88
  ? resolvedColumnDef.header
85
89
  : undefined)
package/src/filterFns.ts CHANGED
@@ -5,7 +5,7 @@ const includesString: FilterFn<any> = (
5
5
  columnId: string,
6
6
  filterValue: string
7
7
  ) => {
8
- const search = filterValue.toLowerCase()
8
+ const search = filterValue?.toString()?.toLowerCase()
9
9
  return Boolean(
10
10
  row
11
11
  .getValue<string | null>(columnId)