@tanstack/table-core 8.10.6 → 8.10.7
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/build/lib/index.esm.js +0 -10
- package/build/lib/index.esm.js.map +1 -1
- package/build/lib/index.mjs +0 -10
- package/build/lib/index.mjs.map +1 -1
- package/build/lib/sortingFns.js +0 -10
- package/build/lib/sortingFns.js.map +1 -1
- package/build/umd/index.development.js +0 -10
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +1 -1
- package/src/sortingFns.ts +0 -10
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/table-core",
|
|
3
3
|
"author": "Tanner Linsley",
|
|
4
|
-
"version": "8.10.
|
|
4
|
+
"version": "8.10.7",
|
|
5
5
|
"description": "Headless UI for building powerful tables & datagrids for TS/JS.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/tanstack/table#readme",
|
package/src/sortingFns.ts
CHANGED
|
@@ -55,9 +55,6 @@ function compareBasic(a: any, b: any) {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
function toString(a: any) {
|
|
58
|
-
if (typeof a === 'boolean') {
|
|
59
|
-
return String(a)
|
|
60
|
-
}
|
|
61
58
|
if (typeof a === 'number') {
|
|
62
59
|
if (isNaN(a) || a === Infinity || a === -Infinity) {
|
|
63
60
|
return ''
|
|
@@ -74,13 +71,6 @@ function toString(a: any) {
|
|
|
74
71
|
// It handles numbers, mixed alphanumeric combinations, and even
|
|
75
72
|
// null, undefined, and Infinity
|
|
76
73
|
function compareAlphanumeric(aStr: string, bStr: string) {
|
|
77
|
-
// Check if the string contains only a number
|
|
78
|
-
const aFloat = parseFloat(aStr);
|
|
79
|
-
const bFloat = parseFloat(bStr);
|
|
80
|
-
if(!isNaN(aFloat) && !isNaN(bFloat)) {
|
|
81
|
-
return compareBasic(aFloat, bFloat)
|
|
82
|
-
}
|
|
83
|
-
|
|
84
74
|
// Split on number groups, but keep the delimiter
|
|
85
75
|
// Then remove falsey split values
|
|
86
76
|
const a = aStr.split(reSplitAlphaNumeric).filter(Boolean)
|