@tanstack/router-core 1.136.4 → 1.136.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.
Files changed (48) hide show
  1. package/dist/cjs/Matches.cjs.map +1 -1
  2. package/dist/cjs/Matches.d.cts +2 -0
  3. package/dist/cjs/index.cjs +0 -5
  4. package/dist/cjs/index.cjs.map +1 -1
  5. package/dist/cjs/index.d.cts +1 -4
  6. package/dist/cjs/lru-cache.cjs +5 -0
  7. package/dist/cjs/lru-cache.cjs.map +1 -1
  8. package/dist/cjs/lru-cache.d.cts +1 -0
  9. package/dist/cjs/new-process-route-tree.cjs +655 -0
  10. package/dist/cjs/new-process-route-tree.cjs.map +1 -0
  11. package/dist/cjs/new-process-route-tree.d.cts +177 -0
  12. package/dist/cjs/path.cjs +133 -434
  13. package/dist/cjs/path.cjs.map +1 -1
  14. package/dist/cjs/path.d.cts +3 -39
  15. package/dist/cjs/router.cjs +47 -98
  16. package/dist/cjs/router.cjs.map +1 -1
  17. package/dist/cjs/router.d.cts +6 -11
  18. package/dist/esm/Matches.d.ts +2 -0
  19. package/dist/esm/Matches.js.map +1 -1
  20. package/dist/esm/index.d.ts +1 -4
  21. package/dist/esm/index.js +1 -6
  22. package/dist/esm/index.js.map +1 -1
  23. package/dist/esm/lru-cache.d.ts +1 -0
  24. package/dist/esm/lru-cache.js +5 -0
  25. package/dist/esm/lru-cache.js.map +1 -1
  26. package/dist/esm/new-process-route-tree.d.ts +177 -0
  27. package/dist/esm/new-process-route-tree.js +655 -0
  28. package/dist/esm/new-process-route-tree.js.map +1 -0
  29. package/dist/esm/path.d.ts +3 -39
  30. package/dist/esm/path.js +133 -434
  31. package/dist/esm/path.js.map +1 -1
  32. package/dist/esm/router.d.ts +6 -11
  33. package/dist/esm/router.js +48 -99
  34. package/dist/esm/router.js.map +1 -1
  35. package/package.json +1 -1
  36. package/src/Matches.ts +2 -0
  37. package/src/index.ts +0 -6
  38. package/src/lru-cache.ts +6 -0
  39. package/src/new-process-route-tree.ts +1036 -0
  40. package/src/path.ts +168 -639
  41. package/src/router.ts +57 -126
  42. package/dist/cjs/process-route-tree.cjs +0 -144
  43. package/dist/cjs/process-route-tree.cjs.map +0 -1
  44. package/dist/cjs/process-route-tree.d.cts +0 -18
  45. package/dist/esm/process-route-tree.d.ts +0 -18
  46. package/dist/esm/process-route-tree.js +0 -144
  47. package/dist/esm/process-route-tree.js.map +0 -1
  48. 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
  }