@tanstack/react-router
Advanced tools
Comparing version 1.69.0 to 1.69.1
@@ -71,8 +71,4 @@ import warning from "tiny-warning"; | ||
} | ||
const routeGroupPatternRegex = /\(.+\)/g; | ||
function removeGroups(s) { | ||
return s.replaceAll(routeGroupPatternRegex, "").replaceAll("//", "/"); | ||
} | ||
function createLazyFileRoute(id) { | ||
return (opts) => new LazyRoute({ id: removeGroups(id), ...opts }); | ||
return (opts) => new LazyRoute({ id, ...opts }); | ||
} | ||
@@ -79,0 +75,0 @@ export { |
{ | ||
"name": "@tanstack/react-router", | ||
"version": "1.69.0", | ||
"version": "1.69.1", | ||
"description": "Modern and scalable routing for React applications", | ||
@@ -69,3 +69,3 @@ "author": "Tanner Linsley", | ||
"react-dom": ">=18", | ||
"@tanstack/router-generator": "1.65.0" | ||
"@tanstack/router-generator": "1.69.1" | ||
}, | ||
@@ -72,0 +72,0 @@ "peerDependenciesMeta": { |
@@ -268,8 +268,2 @@ import warning from 'tiny-warning' | ||
const routeGroupPatternRegex = /\(.+\)/g | ||
function removeGroups(s: string) { | ||
return s.replaceAll(routeGroupPatternRegex, '').replaceAll('//', '/') | ||
} | ||
export function createLazyFileRoute< | ||
@@ -279,4 +273,3 @@ TFilePath extends keyof FileRoutesByPath, | ||
>(id: TFilePath) { | ||
return (opts: LazyRouteOptions) => | ||
new LazyRoute<TRoute>({ id: removeGroups(id), ...opts }) | ||
return (opts: LazyRouteOptions) => new LazyRoute<TRoute>({ id, ...opts }) | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1550001
19519