@tanstack/router-core 1.136.4 → 1.136.6
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/dist/cjs/Matches.cjs.map +1 -1
- package/dist/cjs/Matches.d.cts +2 -0
- package/dist/cjs/index.cjs +0 -5
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +1 -4
- package/dist/cjs/lru-cache.cjs +5 -0
- package/dist/cjs/lru-cache.cjs.map +1 -1
- package/dist/cjs/lru-cache.d.cts +1 -0
- package/dist/cjs/new-process-route-tree.cjs +655 -0
- package/dist/cjs/new-process-route-tree.cjs.map +1 -0
- package/dist/cjs/new-process-route-tree.d.cts +177 -0
- package/dist/cjs/path.cjs +133 -434
- package/dist/cjs/path.cjs.map +1 -1
- package/dist/cjs/path.d.cts +3 -39
- package/dist/cjs/router.cjs +47 -98
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/cjs/router.d.cts +6 -11
- package/dist/esm/Matches.d.ts +2 -0
- package/dist/esm/Matches.js.map +1 -1
- package/dist/esm/index.d.ts +1 -4
- package/dist/esm/index.js +1 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lru-cache.d.ts +1 -0
- package/dist/esm/lru-cache.js +5 -0
- package/dist/esm/lru-cache.js.map +1 -1
- package/dist/esm/new-process-route-tree.d.ts +177 -0
- package/dist/esm/new-process-route-tree.js +655 -0
- package/dist/esm/new-process-route-tree.js.map +1 -0
- package/dist/esm/path.d.ts +3 -39
- package/dist/esm/path.js +133 -434
- package/dist/esm/path.js.map +1 -1
- package/dist/esm/router.d.ts +6 -11
- package/dist/esm/router.js +48 -99
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/Matches.ts +2 -0
- package/src/index.ts +0 -6
- package/src/lru-cache.ts +6 -0
- package/src/new-process-route-tree.ts +1036 -0
- package/src/path.ts +168 -639
- package/src/router.ts +57 -126
- package/dist/cjs/process-route-tree.cjs +0 -144
- package/dist/cjs/process-route-tree.cjs.map +0 -1
- package/dist/cjs/process-route-tree.d.cts +0 -18
- package/dist/esm/process-route-tree.d.ts +0 -18
- package/dist/esm/process-route-tree.js +0 -144
- package/dist/esm/process-route-tree.js.map +0 -1
- package/src/process-route-tree.ts +0 -241
package/src/index.ts
CHANGED
|
@@ -100,12 +100,8 @@ export {
|
|
|
100
100
|
removeTrailingSlash,
|
|
101
101
|
exactPathTest,
|
|
102
102
|
resolvePath,
|
|
103
|
-
parsePathname,
|
|
104
103
|
interpolatePath,
|
|
105
|
-
matchPathname,
|
|
106
|
-
matchByPath,
|
|
107
104
|
} from './path'
|
|
108
|
-
export type { Segment } from './path'
|
|
109
105
|
export { encode, decode } from './qss'
|
|
110
106
|
export { rootRouteId } from './root'
|
|
111
107
|
export type { RootRouteId } from './root'
|
|
@@ -193,8 +189,6 @@ export type {
|
|
|
193
189
|
RootRoute,
|
|
194
190
|
FilebaseRouteOptionsInterface,
|
|
195
191
|
} from './route'
|
|
196
|
-
export { processRouteTree } from './process-route-tree'
|
|
197
|
-
export type { ProcessRouteTreeResult } from './process-route-tree'
|
|
198
192
|
export {
|
|
199
193
|
defaultSerializeError,
|
|
200
194
|
getLocationChangeInfo,
|
package/src/lru-cache.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type LRUCache<TKey, TValue> = {
|
|
2
2
|
get: (key: TKey) => TValue | undefined
|
|
3
3
|
set: (key: TKey, value: TValue) => void
|
|
4
|
+
clear: () => void
|
|
4
5
|
}
|
|
5
6
|
|
|
6
7
|
export function createLRUCache<TKey, TValue>(
|
|
@@ -64,5 +65,10 @@ export function createLRUCache<TKey, TValue>(
|
|
|
64
65
|
cache.set(key, entry)
|
|
65
66
|
}
|
|
66
67
|
},
|
|
68
|
+
clear() {
|
|
69
|
+
cache.clear()
|
|
70
|
+
oldest = undefined
|
|
71
|
+
newest = undefined
|
|
72
|
+
},
|
|
67
73
|
}
|
|
68
74
|
}
|