@tanstack/react-router 1.57.12 → 1.57.14

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/react-router",
3
- "version": "1.57.12",
3
+ "version": "1.57.14",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -55,8 +55,8 @@
55
55
  "@tanstack/history": "1.57.6"
56
56
  },
57
57
  "devDependencies": {
58
- "@testing-library/jest-dom": "^6.4.8",
59
- "@testing-library/react": "^16.0.0",
58
+ "@testing-library/jest-dom": "^6.5.0",
59
+ "@testing-library/react": "^16.0.1",
60
60
  "@vitejs/plugin-react": "^4.3.1",
61
61
  "combinate": "^1.1.11",
62
62
  "react": "^18.2.0",
@@ -66,7 +66,7 @@
66
66
  "peerDependencies": {
67
67
  "react": ">=18",
68
68
  "react-dom": ">=18",
69
- "@tanstack/router-generator": "1.57.9"
69
+ "@tanstack/router-generator": "1.57.14"
70
70
  },
71
71
  "peerDependenciesMeta": {
72
72
  "@tanstack/react-generator": {
@@ -36,9 +36,7 @@ export type NavigateFn = <
36
36
  TMaskFrom extends RoutePaths<TRouter['routeTree']> | string = TFrom,
37
37
  TMaskTo extends string = '',
38
38
  >(
39
- opts: NavigateOptions<TRouter, TFrom, TTo, TMaskFrom, TMaskTo> & {
40
- __isRedirect?: boolean
41
- },
39
+ opts: NavigateOptions<TRouter, TFrom, TTo, TMaskFrom, TMaskTo>,
42
40
  ) => Promise<void>
43
41
 
44
42
  export type BuildLocationFn = <
package/src/router.ts CHANGED
@@ -306,7 +306,7 @@ export interface RouterOptions<
306
306
  */
307
307
  notFoundMode?: 'root' | 'fuzzy'
308
308
  /**
309
- * The default `gcTime` a route should use if no
309
+ * The default `gcTime` a route should use if no gcTime is provided.
310
310
  *
311
311
  * @default 1_800_000 `(30 minutes)`
312
312
  * @link [API Docs](https://tanstack.com/router/latest/docs/framework/react/api/router/RouterOptionsType#defaultgctime-property)
@@ -322,7 +322,6 @@ export interface RouterOptions<
322
322
  */
323
323
  caseSensitive?: boolean
324
324
  /**
325
- * __Required*__
326
325
  *
327
326
  * The route tree that will be used to configure the router instance.
328
327
  *
@@ -1615,7 +1614,7 @@ export class Router<
1615
1614
  })
1616
1615
  }
1617
1616
 
1618
- navigate: NavigateFn = ({ to, __isRedirect, ...rest }) => {
1617
+ navigate: NavigateFn = ({ to, ...rest }) => {
1619
1618
  // If this link simply reloads the current route,
1620
1619
  // make sure it has a new key so it will trigger a data refresh
1621
1620
 
@@ -1770,7 +1769,6 @@ export class Router<
1770
1769
  this.navigate({
1771
1770
  ...err,
1772
1771
  replace: true,
1773
- __isRedirect: true,
1774
1772
  ignoreBlocker: true,
1775
1773
  })
1776
1774
  }