@tanstack/router-core 1.121.21 → 1.121.33
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/index.d.cts +1 -1
- package/dist/cjs/router.cjs +1 -1
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/router.js +1 -1
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +6 -1
- package/src/router.ts +1 -1
package/dist/cjs/index.d.cts
CHANGED
|
@@ -32,7 +32,7 @@ export type { UseParamsResult, ResolveUseParams } from './useParams.cjs';
|
|
|
32
32
|
export type { UseNavigateResult } from './useNavigate.cjs';
|
|
33
33
|
export type { UseLoaderDepsResult, ResolveUseLoaderDeps } from './useLoaderDeps.cjs';
|
|
34
34
|
export type { UseLoaderDataResult, ResolveUseLoaderData } from './useLoaderData.cjs';
|
|
35
|
-
export type { Redirect, ResolvedRedirect, AnyRedirect } from './redirect.cjs';
|
|
35
|
+
export type { Redirect, RedirectOptions, ResolvedRedirect, AnyRedirect, } from './redirect.cjs';
|
|
36
36
|
export { redirect, isRedirect, isResolvedRedirect, parseRedirect, } from './redirect.cjs';
|
|
37
37
|
export type { NotFoundError } from './not-found.cjs';
|
|
38
38
|
export { isNotFound, notFound } from './not-found.cjs';
|
package/dist/cjs/router.cjs
CHANGED
|
@@ -244,7 +244,7 @@ class RouterCore {
|
|
|
244
244
|
}
|
|
245
245
|
const fromSearch = lastMatch.search;
|
|
246
246
|
const fromParams = { ...lastMatch.params };
|
|
247
|
-
const nextTo = dest.to ? this.resolvePathWithBase(fromPath, `${dest.to}`) : fromPath;
|
|
247
|
+
const nextTo = dest.to ? this.resolvePathWithBase(fromPath, `${dest.to}`) : this.resolvePathWithBase(fromPath, ".");
|
|
248
248
|
let nextParams = (dest.params ?? true) === true ? fromParams : {
|
|
249
249
|
...fromParams,
|
|
250
250
|
...utils.functionalUpdate(dest.params, fromParams)
|