@tanstack/react-router 0.0.1-beta.25 → 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.
@@ -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 (!baseSegment.value.startsWith(':')) {
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