@tanstack/router-core 1.131.14 → 1.131.17
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/router.cjs +587 -491
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/cjs/router.d.cts +18 -5
- package/dist/esm/router.d.ts +18 -5
- package/dist/esm/router.js +587 -491
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/router.ts +843 -686
package/dist/cjs/router.d.cts
CHANGED
|
@@ -12,7 +12,6 @@ import { BuildLocationFn, CommitLocationOptions, NavigateFn } from './RouterProv
|
|
|
12
12
|
import { Manifest } from './manifest.cjs';
|
|
13
13
|
import { AnySchema } from './validators.cjs';
|
|
14
14
|
import { NavigateOptions, ResolveRelativePath, ToOptions } from './link.cjs';
|
|
15
|
-
import { NotFoundError } from './not-found.cjs';
|
|
16
15
|
export type ControllablePromise<T = any> = Promise<T> & {
|
|
17
16
|
resolve: (value: T) => void;
|
|
18
17
|
reject: (value?: any) => void;
|
|
@@ -529,13 +528,27 @@ export declare class RouterCore<in out TRouteTree extends AnyRoute, in out TTrai
|
|
|
529
528
|
startViewTransition: (fn: () => Promise<void>) => void;
|
|
530
529
|
updateMatch: UpdateMatchFn;
|
|
531
530
|
getMatch: GetMatchFn;
|
|
532
|
-
|
|
531
|
+
private triggerOnReady;
|
|
532
|
+
private resolvePreload;
|
|
533
|
+
private handleRedirectAndNotFound;
|
|
534
|
+
private shouldSkipLoader;
|
|
535
|
+
private handleSerialError;
|
|
536
|
+
private isBeforeLoadSsr;
|
|
537
|
+
private setupPendingTimeout;
|
|
538
|
+
private shouldExecuteBeforeLoad;
|
|
539
|
+
private executeBeforeLoad;
|
|
540
|
+
private handleBeforeLoad;
|
|
541
|
+
private executeHead;
|
|
542
|
+
private potentialPendingMinPromise;
|
|
543
|
+
private getLoaderContext;
|
|
544
|
+
private runLoader;
|
|
545
|
+
private loadRouteMatch;
|
|
546
|
+
loadMatches: (baseContext: {
|
|
533
547
|
location: ParsedLocation;
|
|
534
548
|
matches: Array<AnyRouteMatch>;
|
|
535
549
|
preload?: boolean;
|
|
536
550
|
onReady?: () => Promise<void>;
|
|
537
|
-
updateMatch?:
|
|
538
|
-
getMatch?: (matchId: string) => AnyRouteMatch | undefined;
|
|
551
|
+
updateMatch?: UpdateMatchFn;
|
|
539
552
|
sync?: boolean;
|
|
540
553
|
}) => Promise<Array<MakeRouteMatch>>;
|
|
541
554
|
invalidate: InvalidateFn<RouterCore<TRouteTree, TTrailingSlashOption, TDefaultStructuralSharingOption, TRouterHistory, TDehydrated>>;
|
|
@@ -549,7 +562,7 @@ export declare class RouterCore<in out TRouteTree extends AnyRoute, in out TTrai
|
|
|
549
562
|
manifest: Manifest | undefined;
|
|
550
563
|
};
|
|
551
564
|
serverSsr?: ServerSsr;
|
|
552
|
-
_handleNotFound
|
|
565
|
+
private _handleNotFound;
|
|
553
566
|
hasNotFoundMatch: () => boolean;
|
|
554
567
|
}
|
|
555
568
|
export declare class SearchParamError extends Error {
|
package/dist/esm/router.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ import { BuildLocationFn, CommitLocationOptions, NavigateFn } from './RouterProv
|
|
|
12
12
|
import { Manifest } from './manifest.js';
|
|
13
13
|
import { AnySchema } from './validators.js';
|
|
14
14
|
import { NavigateOptions, ResolveRelativePath, ToOptions } from './link.js';
|
|
15
|
-
import { NotFoundError } from './not-found.js';
|
|
16
15
|
export type ControllablePromise<T = any> = Promise<T> & {
|
|
17
16
|
resolve: (value: T) => void;
|
|
18
17
|
reject: (value?: any) => void;
|
|
@@ -529,13 +528,27 @@ export declare class RouterCore<in out TRouteTree extends AnyRoute, in out TTrai
|
|
|
529
528
|
startViewTransition: (fn: () => Promise<void>) => void;
|
|
530
529
|
updateMatch: UpdateMatchFn;
|
|
531
530
|
getMatch: GetMatchFn;
|
|
532
|
-
|
|
531
|
+
private triggerOnReady;
|
|
532
|
+
private resolvePreload;
|
|
533
|
+
private handleRedirectAndNotFound;
|
|
534
|
+
private shouldSkipLoader;
|
|
535
|
+
private handleSerialError;
|
|
536
|
+
private isBeforeLoadSsr;
|
|
537
|
+
private setupPendingTimeout;
|
|
538
|
+
private shouldExecuteBeforeLoad;
|
|
539
|
+
private executeBeforeLoad;
|
|
540
|
+
private handleBeforeLoad;
|
|
541
|
+
private executeHead;
|
|
542
|
+
private potentialPendingMinPromise;
|
|
543
|
+
private getLoaderContext;
|
|
544
|
+
private runLoader;
|
|
545
|
+
private loadRouteMatch;
|
|
546
|
+
loadMatches: (baseContext: {
|
|
533
547
|
location: ParsedLocation;
|
|
534
548
|
matches: Array<AnyRouteMatch>;
|
|
535
549
|
preload?: boolean;
|
|
536
550
|
onReady?: () => Promise<void>;
|
|
537
|
-
updateMatch?:
|
|
538
|
-
getMatch?: (matchId: string) => AnyRouteMatch | undefined;
|
|
551
|
+
updateMatch?: UpdateMatchFn;
|
|
539
552
|
sync?: boolean;
|
|
540
553
|
}) => Promise<Array<MakeRouteMatch>>;
|
|
541
554
|
invalidate: InvalidateFn<RouterCore<TRouteTree, TTrailingSlashOption, TDefaultStructuralSharingOption, TRouterHistory, TDehydrated>>;
|
|
@@ -549,7 +562,7 @@ export declare class RouterCore<in out TRouteTree extends AnyRoute, in out TTrai
|
|
|
549
562
|
manifest: Manifest | undefined;
|
|
550
563
|
};
|
|
551
564
|
serverSsr?: ServerSsr;
|
|
552
|
-
_handleNotFound
|
|
565
|
+
private _handleNotFound;
|
|
553
566
|
hasNotFoundMatch: () => boolean;
|
|
554
567
|
}
|
|
555
568
|
export declare class SearchParamError extends Error {
|