@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.
@@ -189,7 +189,7 @@ function createColumn(table, columnDef, depth, parent) {
189
189
  ...columnDef
190
190
  };
191
191
  const accessorKey = resolvedColumnDef.accessorKey;
192
- let id = (_ref = (_resolvedColumnDef$id = resolvedColumnDef.id) != null ? _resolvedColumnDef$id : accessorKey ? accessorKey.replace('.', '_') : undefined) != null ? _ref : typeof resolvedColumnDef.header === 'string' ? resolvedColumnDef.header : undefined;
192
+ let id = (_ref = (_resolvedColumnDef$id = resolvedColumnDef.id) != null ? _resolvedColumnDef$id : accessorKey ? typeof String.prototype.replaceAll === 'function' ? accessorKey.replaceAll('.', '_') : accessorKey.replace(/\./g, '_') : undefined) != null ? _ref : typeof resolvedColumnDef.header === 'string' ? resolvedColumnDef.header : undefined;
193
193
  let accessorFn;
194
194
  if (resolvedColumnDef.accessorFn) {
195
195
  accessorFn = resolvedColumnDef.accessorFn;
@@ -599,8 +599,8 @@ const ColumnFaceting = {
599
599
  };
600
600
 
601
601
  const includesString = (row, columnId, filterValue) => {
602
- var _row$getValue;
603
- const search = filterValue.toLowerCase();
602
+ var _filterValue$toString, _row$getValue;
603
+ const search = filterValue == null || (_filterValue$toString = filterValue.toString()) == null ? void 0 : _filterValue$toString.toLowerCase();
604
604
  return Boolean((_row$getValue = row.getValue(columnId)) == null || (_row$getValue = _row$getValue.toString()) == null || (_row$getValue = _row$getValue.toLowerCase()) == null ? void 0 : _row$getValue.includes(search));
605
605
  };
606
606
  includesString.autoRemove = val => testFalsey(val);