@tanstack/react-router 0.0.1-beta.24 → 0.0.1-beta.26
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/react-router/src/index.js.map +1 -1
- package/build/cjs/router-core/build/esm/index.js +6 -4
- package/build/cjs/router-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +6 -4
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +27 -27
- package/build/types/index.d.ts +10 -4
- package/build/umd/index.development.js +6 -4
- 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/index.tsx +9 -3
package/build/esm/index.js
CHANGED
|
@@ -1054,7 +1054,7 @@ function parsePathname(pathname) {
|
|
|
1054
1054
|
};
|
|
1055
1055
|
}
|
|
1056
1056
|
|
|
1057
|
-
if (part.charAt(0) === '
|
|
1057
|
+
if (part.charAt(0) === '$') {
|
|
1058
1058
|
return {
|
|
1059
1059
|
type: 'param',
|
|
1060
1060
|
value: part
|
|
@@ -1151,7 +1151,7 @@ function matchByPath(from, matchLocation) {
|
|
|
1151
1151
|
return false;
|
|
1152
1152
|
}
|
|
1153
1153
|
|
|
1154
|
-
if (
|
|
1154
|
+
if (baseSegment.value.charAt(0) !== '$') {
|
|
1155
1155
|
params[routeSegment.value.substring(1)] = baseSegment.value;
|
|
1156
1156
|
}
|
|
1157
1157
|
}
|
|
@@ -1413,9 +1413,11 @@ const createRouteConfig = function createRouteConfig(options, children, isRoot,
|
|
|
1413
1413
|
fullPath: fullPath,
|
|
1414
1414
|
options: options,
|
|
1415
1415
|
children,
|
|
1416
|
-
createChildren: cb => createRouteConfig(options, cb(childOptions => createRouteConfig(childOptions, undefined, false, id, fullPath)), false, parentId, parentPath),
|
|
1417
1416
|
addChildren: children => createRouteConfig(options, children, false, parentId, parentPath),
|
|
1418
|
-
createRoute: childOptions => createRouteConfig(childOptions, undefined, false, id, fullPath)
|
|
1417
|
+
createRoute: childOptions => createRouteConfig(childOptions, undefined, false, id, fullPath),
|
|
1418
|
+
generate: () => {
|
|
1419
|
+
invariant(false, "routeConfig.generate() is used by TanStack Router's file-based routing code generation and should not actually be called during runtime. ");
|
|
1420
|
+
}
|
|
1419
1421
|
};
|
|
1420
1422
|
};
|
|
1421
1423
|
|