@tanstack/react-router 1.151.1 → 1.151.3

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.
@@ -919,8 +919,10 @@ import * as React from 'react'
919
919
  import { createLink, LinkComponent } from '@tanstack/react-router'
920
920
  import { Link } from '@chakra-ui/react'
921
921
 
922
- interface ChakraLinkProps
923
- extends Omit<React.ComponentPropsWithoutRef<typeof Link>, 'href'> {
922
+ interface ChakraLinkProps extends Omit<
923
+ React.ComponentPropsWithoutRef<typeof Link>,
924
+ 'href'
925
+ > {
924
926
  // Add any additional props you want to pass to the link
925
927
  }
926
928
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/react-router",
3
- "version": "1.151.1",
3
+ "version": "1.151.3",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -82,7 +82,7 @@
82
82
  "tiny-invariant": "^1.3.3",
83
83
  "tiny-warning": "^1.0.3",
84
84
  "@tanstack/history": "1.151.1",
85
- "@tanstack/router-core": "1.151.1"
85
+ "@tanstack/router-core": "1.151.3"
86
86
  },
87
87
  "devDependencies": {
88
88
  "@testing-library/jest-dom": "^6.6.3",
package/src/fileRoute.ts CHANGED
@@ -51,8 +51,8 @@ export function createFileRoute<
51
51
  TParentRoute extends AnyRoute = FileRoutesByPath[TFilePath]['parentRoute'],
52
52
  TId extends RouteConstraints['TId'] = FileRoutesByPath[TFilePath]['id'],
53
53
  TPath extends RouteConstraints['TPath'] = FileRoutesByPath[TFilePath]['path'],
54
- TFullPath extends
55
- RouteConstraints['TFullPath'] = FileRoutesByPath[TFilePath]['fullPath'],
54
+ TFullPath extends RouteConstraints['TFullPath'] =
55
+ FileRoutesByPath[TFilePath]['fullPath'],
56
56
  >(
57
57
  path?: TFilePath,
58
58
  ): FileRoute<TFilePath, TParentRoute, TId, TPath, TFullPath>['createRoute'] {
@@ -75,8 +75,8 @@ export class FileRoute<
75
75
  TParentRoute extends AnyRoute = FileRoutesByPath[TFilePath]['parentRoute'],
76
76
  TId extends RouteConstraints['TId'] = FileRoutesByPath[TFilePath]['id'],
77
77
  TPath extends RouteConstraints['TPath'] = FileRoutesByPath[TFilePath]['path'],
78
- TFullPath extends
79
- RouteConstraints['TFullPath'] = FileRoutesByPath[TFilePath]['fullPath'],
78
+ TFullPath extends RouteConstraints['TFullPath'] =
79
+ FileRoutesByPath[TFilePath]['fullPath'],
80
80
  > {
81
81
  silent?: boolean
82
82
 
package/src/link.tsx CHANGED
@@ -530,7 +530,7 @@ export type LinkComponent<
530
530
  export interface LinkComponentRoute<
531
531
  in out TDefaultFrom extends string = string,
532
532
  > {
533
- defaultFrom: TDefaultFrom
533
+ defaultFrom: TDefaultFrom;
534
534
  <
535
535
  TRouter extends AnyRouter = RegisteredRouter,
536
536
  const TTo extends string | undefined = undefined,
package/src/route.tsx CHANGED
@@ -168,32 +168,32 @@ export class RouteApi<
168
168
  }
169
169
 
170
170
  export class Route<
171
- in out TRegister = unknown,
172
- in out TParentRoute extends RouteConstraints['TParentRoute'] = AnyRoute,
173
- in out TPath extends RouteConstraints['TPath'] = '/',
174
- in out TFullPath extends RouteConstraints['TFullPath'] = ResolveFullPath<
175
- TParentRoute,
176
- TPath
177
- >,
178
- in out TCustomId extends RouteConstraints['TCustomId'] = string,
179
- in out TId extends RouteConstraints['TId'] = ResolveId<
180
- TParentRoute,
181
- TCustomId,
182
- TPath
183
- >,
184
- in out TSearchValidator = undefined,
185
- in out TParams = ResolveParams<TPath>,
186
- in out TRouterContext = AnyContext,
187
- in out TRouteContextFn = AnyContext,
188
- in out TBeforeLoadFn = AnyContext,
189
- in out TLoaderDeps extends Record<string, any> = {},
190
- in out TLoaderFn = undefined,
191
- in out TChildren = unknown,
192
- in out TFileRouteTypes = unknown,
193
- in out TSSR = unknown,
194
- in out TServerMiddlewares = unknown,
195
- in out THandlers = undefined,
196
- >
171
+ in out TRegister = unknown,
172
+ in out TParentRoute extends RouteConstraints['TParentRoute'] = AnyRoute,
173
+ in out TPath extends RouteConstraints['TPath'] = '/',
174
+ in out TFullPath extends RouteConstraints['TFullPath'] = ResolveFullPath<
175
+ TParentRoute,
176
+ TPath
177
+ >,
178
+ in out TCustomId extends RouteConstraints['TCustomId'] = string,
179
+ in out TId extends RouteConstraints['TId'] = ResolveId<
180
+ TParentRoute,
181
+ TCustomId,
182
+ TPath
183
+ >,
184
+ in out TSearchValidator = undefined,
185
+ in out TParams = ResolveParams<TPath>,
186
+ in out TRouterContext = AnyContext,
187
+ in out TRouteContextFn = AnyContext,
188
+ in out TBeforeLoadFn = AnyContext,
189
+ in out TLoaderDeps extends Record<string, any> = {},
190
+ in out TLoaderFn = undefined,
191
+ in out TChildren = unknown,
192
+ in out TFileRouteTypes = unknown,
193
+ in out TSSR = unknown,
194
+ in out TServerMiddlewares = unknown,
195
+ in out THandlers = undefined,
196
+ >
197
197
  extends BaseRoute<
198
198
  TRegister,
199
199
  TParentRoute,
@@ -475,19 +475,19 @@ export function createRootRouteWithContext<TRouterContext extends {}>() {
475
475
  export const rootRouteWithContext = createRootRouteWithContext
476
476
 
477
477
  export class RootRoute<
478
- in out TRegister = unknown,
479
- in out TSearchValidator = undefined,
480
- in out TRouterContext = {},
481
- in out TRouteContextFn = AnyContext,
482
- in out TBeforeLoadFn = AnyContext,
483
- in out TLoaderDeps extends Record<string, any> = {},
484
- in out TLoaderFn = undefined,
485
- in out TChildren = unknown,
486
- in out TFileRouteTypes = unknown,
487
- in out TSSR = unknown,
488
- in out TServerMiddlewares = unknown,
489
- in out THandlers = undefined,
490
- >
478
+ in out TRegister = unknown,
479
+ in out TSearchValidator = undefined,
480
+ in out TRouterContext = {},
481
+ in out TRouteContextFn = AnyContext,
482
+ in out TBeforeLoadFn = AnyContext,
483
+ in out TLoaderDeps extends Record<string, any> = {},
484
+ in out TLoaderFn = undefined,
485
+ in out TChildren = unknown,
486
+ in out TFileRouteTypes = unknown,
487
+ in out TSSR = unknown,
488
+ in out TServerMiddlewares = unknown,
489
+ in out THandlers = undefined,
490
+ >
491
491
  extends BaseRootRoute<
492
492
  TRegister,
493
493
  TSearchValidator,