@tanstack/react-router 1.2.4 → 1.2.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/build/cjs/route.js.map +1 -1
- package/build/cjs/router.js +3 -3
- package/build/cjs/router.js.map +1 -1
- package/build/esm/index.js +3 -3
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +353 -353
- package/build/types/fileRoute.d.ts +1 -21
- package/build/types/route.d.ts +2 -9
- package/build/umd/index.development.js +3 -3
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
- package/src/route.ts +1 -11
- package/src/router.ts +3 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/react-router",
|
|
3
3
|
"author": "Tanner Linsley",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.6",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "tanstack/router",
|
|
7
7
|
"homepage": "https://tanstack.com/router",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@tanstack/store": "^0.1.3",
|
|
45
45
|
"tiny-invariant": "^1.3.1",
|
|
46
46
|
"tiny-warning": "^1.0.3",
|
|
47
|
-
"@tanstack/history": "1.2.
|
|
47
|
+
"@tanstack/history": "1.2.6"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "rollup --config rollup.config.js"
|
package/src/route.ts
CHANGED
|
@@ -33,8 +33,6 @@ export type AnyContext = {}
|
|
|
33
33
|
|
|
34
34
|
export interface RouteContext {}
|
|
35
35
|
|
|
36
|
-
export interface RouteMeta {}
|
|
37
|
-
|
|
38
36
|
export type PreloadableObj = { preload?: () => Promise<void> }
|
|
39
37
|
|
|
40
38
|
export type RoutePathOptions<TCustomId, TPath> =
|
|
@@ -48,14 +46,6 @@ export type RoutePathOptions<TCustomId, TPath> =
|
|
|
48
46
|
export type RoutePathOptionsIntersection<TCustomId, TPath> =
|
|
49
47
|
UnionToIntersection<RoutePathOptions<TCustomId, TPath>>
|
|
50
48
|
|
|
51
|
-
export type MetaOptions = keyof PickRequired<RouteMeta> extends never
|
|
52
|
-
? {
|
|
53
|
-
meta?: RouteMeta
|
|
54
|
-
}
|
|
55
|
-
: {
|
|
56
|
-
meta: RouteMeta
|
|
57
|
-
}
|
|
58
|
-
|
|
59
49
|
export type RouteOptions<
|
|
60
50
|
TParentRoute extends AnyRoute = AnyRoute,
|
|
61
51
|
TCustomId extends string = string,
|
|
@@ -188,7 +178,7 @@ type BeforeLoadFn<
|
|
|
188
178
|
|
|
189
179
|
export type UpdatableRouteOptions<
|
|
190
180
|
TFullSearchSchema extends Record<string, any>,
|
|
191
|
-
> =
|
|
181
|
+
> = {
|
|
192
182
|
// test?: (args: TAllContext) => void
|
|
193
183
|
// If true, this route will be matched as case-sensitive
|
|
194
184
|
caseSensitive?: boolean
|
package/src/router.ts
CHANGED
|
@@ -840,11 +840,11 @@ export class Router<
|
|
|
840
840
|
})
|
|
841
841
|
|
|
842
842
|
if (foundMask) {
|
|
843
|
-
|
|
843
|
+
maskedDest = {
|
|
844
|
+
...pick(opts, ['from']),
|
|
844
845
|
...foundMask,
|
|
845
|
-
|
|
846
|
+
params,
|
|
846
847
|
}
|
|
847
|
-
maskedDest = foundMask
|
|
848
848
|
maskedNext = build(maskedDest)
|
|
849
849
|
}
|
|
850
850
|
}
|