@tanstack/table-core 8.19.4 → 8.20.1

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.1",
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)