@tanstack/router-core 1.129.4 → 1.129.5

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.129.4",
3
+ "version": "1.129.5",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -30,7 +30,7 @@ export type NavigateFn = <
30
30
  TMaskTo extends string = '',
31
31
  >(
32
32
  opts: NavigateOptions<TRouter, TFrom, TTo, TMaskFrom, TMaskTo>,
33
- ) => Promise<void> | void
33
+ ) => Promise<void>
34
34
 
35
35
  export type BuildLocationFn = <
36
36
  TRouter extends RegisteredRouter,
package/src/router.ts CHANGED
@@ -1755,7 +1755,7 @@ export class RouterCore<
1755
1755
  } else {
1756
1756
  window.location.href = href
1757
1757
  }
1758
- return
1758
+ return Promise.resolve()
1759
1759
  }
1760
1760
 
1761
1761
  return this.buildAndCommitLocation({