@tanstack/router-core 1.128.8 → 1.129.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/dist/cjs/global.d.cts +7 -0
- package/dist/cjs/index.d.cts +1 -0
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/cjs/router.d.cts +4 -15
- package/dist/esm/global.d.ts +7 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/router.d.ts +4 -15
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/global.ts +9 -0
- package/src/index.ts +2 -0
- package/src/router.ts +5 -17
package/package.json
CHANGED
package/src/global.ts
ADDED
package/src/index.ts
CHANGED
package/src/router.ts
CHANGED
|
@@ -86,12 +86,6 @@ import type { AnySchema, AnyValidator } from './validators'
|
|
|
86
86
|
import type { NavigateOptions, ResolveRelativePath, ToOptions } from './link'
|
|
87
87
|
import type { NotFoundError } from './not-found'
|
|
88
88
|
|
|
89
|
-
declare global {
|
|
90
|
-
interface Window {
|
|
91
|
-
__TSR_ROUTER__?: AnyRouter
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
89
|
export type ControllablePromise<T = any> = Promise<T> & {
|
|
96
90
|
resolve: (value: T) => void
|
|
97
91
|
reject: (value?: any) => void
|
|
@@ -631,9 +625,12 @@ export type StartTransitionFn = (fn: () => void) => void
|
|
|
631
625
|
export interface MatchRoutesFn {
|
|
632
626
|
(
|
|
633
627
|
pathname: string,
|
|
634
|
-
locationSearch
|
|
628
|
+
locationSearch?: AnySchema,
|
|
635
629
|
opts?: MatchRoutesOpts,
|
|
636
|
-
): Array<
|
|
630
|
+
): Array<MakeRouteMatchUnion>
|
|
631
|
+
/**
|
|
632
|
+
* @deprecated use the following signature instead
|
|
633
|
+
*/
|
|
637
634
|
(next: ParsedLocation, opts?: MatchRoutesOpts): Array<AnyRouteMatch>
|
|
638
635
|
(
|
|
639
636
|
pathnameOrNext: string | ParsedLocation,
|
|
@@ -1025,15 +1022,6 @@ export class RouterCore<
|
|
|
1025
1022
|
return this.routesById as Record<string, AnyRoute>
|
|
1026
1023
|
}
|
|
1027
1024
|
|
|
1028
|
-
/**
|
|
1029
|
-
@deprecated use the following signature instead
|
|
1030
|
-
```ts
|
|
1031
|
-
matchRoutes (
|
|
1032
|
-
next: ParsedLocation,
|
|
1033
|
-
opts?: { preload?: boolean; throwOnError?: boolean },
|
|
1034
|
-
): Array<AnyRouteMatch>;
|
|
1035
|
-
```
|
|
1036
|
-
*/
|
|
1037
1025
|
matchRoutes: MatchRoutesFn = (
|
|
1038
1026
|
pathnameOrNext: string | ParsedLocation,
|
|
1039
1027
|
locationSearchOrOpts?: AnySchema | MatchRoutesOpts,
|