@tanstack/react-router 1.4.3 → 1.4.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/build/cjs/Matches.js +5 -1
- package/build/cjs/Matches.js.map +1 -1
- package/build/cjs/path.js +4 -1
- package/build/cjs/path.js.map +1 -1
- package/build/esm/index.js +9 -2
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +355 -355
- package/build/umd/index.development.js +9 -2
- 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 +2 -2
- package/src/Matches.tsx +3 -1
- package/src/path.ts +4 -1
|
@@ -1024,11 +1024,15 @@
|
|
|
1024
1024
|
const {
|
|
1025
1025
|
pending,
|
|
1026
1026
|
caseSensitive,
|
|
1027
|
+
fuzzy,
|
|
1028
|
+
includeSearch,
|
|
1027
1029
|
...rest
|
|
1028
1030
|
} = opts;
|
|
1029
1031
|
return matchRoute(rest, {
|
|
1030
1032
|
pending,
|
|
1031
|
-
caseSensitive
|
|
1033
|
+
caseSensitive,
|
|
1034
|
+
fuzzy,
|
|
1035
|
+
includeSearch
|
|
1032
1036
|
});
|
|
1033
1037
|
}, []);
|
|
1034
1038
|
}
|
|
@@ -1427,7 +1431,10 @@
|
|
|
1427
1431
|
if (routeSegment) {
|
|
1428
1432
|
if (routeSegment.type === 'wildcard') {
|
|
1429
1433
|
if (baseSegment?.value) {
|
|
1430
|
-
|
|
1434
|
+
const _splat = joinPaths(baseSegments.slice(i).map(d => d.value));
|
|
1435
|
+
// TODO: Deprecate *
|
|
1436
|
+
params['*'] = _splat;
|
|
1437
|
+
params['_splat'] = _splat;
|
|
1431
1438
|
return true;
|
|
1432
1439
|
}
|
|
1433
1440
|
return false;
|