@tanstack/router-core 1.162.6 → 1.163.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/router-core",
3
- "version": "1.162.6",
3
+ "version": "1.163.2",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -14,7 +14,6 @@ export type {
14
14
  ResolveCurrentPath,
15
15
  ResolveParentPath,
16
16
  ResolveRelativePath,
17
- LinkCurrentTargetElement,
18
17
  FindDescendantToPaths,
19
18
  InferDescendantToPaths,
20
19
  RelativeToPath,
package/src/link.ts CHANGED
@@ -701,8 +701,4 @@ export type LinkOptions<
701
701
  TMaskTo extends string = '.',
702
702
  > = NavigateOptions<TRouter, TFrom, TTo, TMaskFrom, TMaskTo> & LinkOptionsProps
703
703
 
704
- export type LinkCurrentTargetElement = {
705
- preloadTimeout?: null | ReturnType<typeof setTimeout>
706
- }
707
-
708
704
  export const preloadWarning = 'Error preloading route! ☝️'
package/src/router.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Store } from '@tanstack/store'
1
+ import { createStore } from '@tanstack/store'
2
2
  import { createBrowserHistory, parseHref } from '@tanstack/history'
3
3
  import { isServer } from '@tanstack/router-core/isServer'
4
4
  import { batch } from './utils/batch'
@@ -42,6 +42,7 @@ import {
42
42
  executeRewriteOutput,
43
43
  rewriteBasepath,
44
44
  } from './rewrite'
45
+ import type { Store } from '@tanstack/store'
45
46
  import type { LRUCache } from './lru-cache'
46
47
  import type {
47
48
  ProcessRouteTreeResult,
@@ -1132,7 +1133,7 @@ export class RouterCore<
1132
1133
  getInitialRouterState(this.latestLocation),
1133
1134
  ) as unknown as Store<any>
1134
1135
  } else {
1135
- this.__store = new Store(getInitialRouterState(this.latestLocation))
1136
+ this.__store = createStore(getInitialRouterState(this.latestLocation))
1136
1137
 
1137
1138
  setupScrollRestoration(this)
1138
1139
  }