@tanstack/router-core 1.129.0 → 1.129.2

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.
@@ -407,7 +407,10 @@ export type LoadFn = (opts?: {
407
407
  export type CommitLocationFn = ({ viewTransition, ignoreBlocker, ...next }: ParsedLocation & CommitLocationOptions) => Promise<void>;
408
408
  export type StartTransitionFn = (fn: () => void) => void;
409
409
  export interface MatchRoutesFn {
410
- (pathname: string, locationSearch: AnySchema, opts?: MatchRoutesOpts): Array<AnyRouteMatch>;
410
+ (pathname: string, locationSearch?: AnySchema, opts?: MatchRoutesOpts): Array<MakeRouteMatchUnion>;
411
+ /**
412
+ * @deprecated use the following signature instead
413
+ */
411
414
  (next: ParsedLocation, opts?: MatchRoutesOpts): Array<AnyRouteMatch>;
412
415
  (pathnameOrNext: string | ParsedLocation, locationSearchOrOpts?: AnySchema | MatchRoutesOpts, opts?: MatchRoutesOpts): Array<AnyRouteMatch>;
413
416
  }
@@ -491,15 +494,6 @@ export declare class RouterCore<in out TRouteTree extends AnyRoute, in out TTrai
491
494
  parseLocation: ParseLocationFn<TRouteTree>;
492
495
  resolvePathWithBase: (from: string, path: string) => string;
493
496
  get looseRoutesById(): Record<string, AnyRoute>;
494
- /**
495
- @deprecated use the following signature instead
496
- ```ts
497
- matchRoutes (
498
- next: ParsedLocation,
499
- opts?: { preload?: boolean; throwOnError?: boolean },
500
- ): Array<AnyRouteMatch>;
501
- ```
502
- */
503
497
  matchRoutes: MatchRoutesFn;
504
498
  private matchRoutesInternal;
505
499
  getMatchedRoutes: GetMatchRoutesFn;
@@ -407,7 +407,10 @@ export type LoadFn = (opts?: {
407
407
  export type CommitLocationFn = ({ viewTransition, ignoreBlocker, ...next }: ParsedLocation & CommitLocationOptions) => Promise<void>;
408
408
  export type StartTransitionFn = (fn: () => void) => void;
409
409
  export interface MatchRoutesFn {
410
- (pathname: string, locationSearch: AnySchema, opts?: MatchRoutesOpts): Array<AnyRouteMatch>;
410
+ (pathname: string, locationSearch?: AnySchema, opts?: MatchRoutesOpts): Array<MakeRouteMatchUnion>;
411
+ /**
412
+ * @deprecated use the following signature instead
413
+ */
411
414
  (next: ParsedLocation, opts?: MatchRoutesOpts): Array<AnyRouteMatch>;
412
415
  (pathnameOrNext: string | ParsedLocation, locationSearchOrOpts?: AnySchema | MatchRoutesOpts, opts?: MatchRoutesOpts): Array<AnyRouteMatch>;
413
416
  }
@@ -491,15 +494,6 @@ export declare class RouterCore<in out TRouteTree extends AnyRoute, in out TTrai
491
494
  parseLocation: ParseLocationFn<TRouteTree>;
492
495
  resolvePathWithBase: (from: string, path: string) => string;
493
496
  get looseRoutesById(): Record<string, AnyRoute>;
494
- /**
495
- @deprecated use the following signature instead
496
- ```ts
497
- matchRoutes (
498
- next: ParsedLocation,
499
- opts?: { preload?: boolean; throwOnError?: boolean },
500
- ): Array<AnyRouteMatch>;
501
- ```
502
- */
503
497
  matchRoutes: MatchRoutesFn;
504
498
  private matchRoutesInternal;
505
499
  getMatchedRoutes: GetMatchRoutesFn;