Socket
Socket
Sign inDemoInstall

@tanstack/router-core

Package Overview
Dependencies
Maintainers
2
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tanstack/router-core - npm Package Compare versions

Comparing version 0.0.1-beta.161 to 0.0.1-beta.162

228

build/stats-react.json

@@ -14,7 +14,7 @@ {

"name": "tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js",
"uid": "4c32-43"
"uid": "1c86-43"
},
{
"name": "tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js",
"uid": "4c32-45"
"uid": "1c86-45"
}

@@ -30,35 +30,35 @@ ]

{
"uid": "4c32-47",
"uid": "1c86-47",
"name": "history.ts"
},
{
"uid": "4c32-49",
"uid": "1c86-49",
"name": "utils.ts"
},
{
"uid": "4c32-51",
"uid": "1c86-51",
"name": "path.ts"
},
{
"uid": "4c32-53",
"uid": "1c86-53",
"name": "qss.ts"
},
{
"uid": "4c32-55",
"uid": "1c86-55",
"name": "route.ts"
},
{
"uid": "4c32-57",
"uid": "1c86-57",
"name": "fileRoute.ts"
},
{
"uid": "4c32-61",
"uid": "1c86-61",
"name": "searchParams.ts"
},
{
"uid": "4c32-63",
"uid": "1c86-63",
"name": "router.ts"
},
{
"uid": "4c32-65",
"uid": "1c86-65",
"name": "index.ts"

@@ -70,3 +70,3 @@ }

"name": "store/build/esm/index.js",
"uid": "4c32-59"
"uid": "1c86-59"
}

@@ -81,80 +81,80 @@ ]

"nodeParts": {
"4c32-43": {
"1c86-43": {
"renderedLength": 199,
"gzipLength": 134,
"brotliLength": 0,
"mainUid": "4c32-42"
"mainUid": "1c86-42"
},
"4c32-45": {
"1c86-45": {
"renderedLength": 48,
"gzipLength": 65,
"brotliLength": 0,
"mainUid": "4c32-44"
"mainUid": "1c86-44"
},
"4c32-47": {
"1c86-47": {
"renderedLength": 6426,
"gzipLength": 1539,
"brotliLength": 0,
"mainUid": "4c32-46"
"mainUid": "1c86-46"
},
"4c32-49": {
"1c86-49": {
"renderedLength": 2821,
"gzipLength": 990,
"brotliLength": 0,
"mainUid": "4c32-48"
"mainUid": "1c86-48"
},
"4c32-51": {
"1c86-51": {
"renderedLength": 6028,
"gzipLength": 1423,
"brotliLength": 0,
"mainUid": "4c32-50"
"mainUid": "1c86-50"
},
"4c32-53": {
"1c86-53": {
"renderedLength": 1371,
"gzipLength": 552,
"brotliLength": 0,
"mainUid": "4c32-52"
"mainUid": "1c86-52"
},
"4c32-55": {
"1c86-55": {
"renderedLength": 2251,
"gzipLength": 784,
"brotliLength": 0,
"mainUid": "4c32-54"
"mainUid": "1c86-54"
},
"4c32-57": {
"1c86-57": {
"renderedLength": 223,
"gzipLength": 143,
"brotliLength": 0,
"mainUid": "4c32-56"
"mainUid": "1c86-56"
},
"4c32-59": {
"1c86-59": {
"renderedLength": 1969,
"gzipLength": 653,
"brotliLength": 0,
"mainUid": "4c32-58"
"mainUid": "1c86-58"
},
"4c32-61": {
"1c86-61": {
"renderedLength": 1924,
"gzipLength": 603,
"brotliLength": 0,
"mainUid": "4c32-60"
"mainUid": "1c86-60"
},
"4c32-63": {
"1c86-63": {
"renderedLength": 39065,
"gzipLength": 8585,
"brotliLength": 0,
"mainUid": "4c32-62"
"mainUid": "1c86-62"
},
"4c32-65": {
"1c86-65": {
"renderedLength": 0,
"gzipLength": 0,
"brotliLength": 0,
"mainUid": "4c32-64"
"mainUid": "1c86-64"
}
},
"nodeMetas": {
"4c32-42": {
"1c86-42": {
"id": "/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js",
"moduleParts": {
"index.production.js": "4c32-43"
"index.production.js": "1c86-43"
},

@@ -164,16 +164,16 @@ "imported": [],

{
"uid": "4c32-64"
"uid": "1c86-64"
},
{
"uid": "4c32-54"
"uid": "1c86-54"
},
{
"uid": "4c32-62"
"uid": "1c86-62"
}
]
},
"4c32-44": {
"1c86-44": {
"id": "/node_modules/.pnpm/tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js",
"moduleParts": {
"index.production.js": "4c32-45"
"index.production.js": "1c86-45"
},

@@ -183,10 +183,10 @@ "imported": [],

{
"uid": "4c32-64"
"uid": "1c86-64"
}
]
},
"4c32-46": {
"1c86-46": {
"id": "/packages/router-core/src/history.ts",
"moduleParts": {
"index.production.js": "4c32-47"
"index.production.js": "1c86-47"
},

@@ -196,13 +196,13 @@ "imported": [],

{
"uid": "4c32-64"
"uid": "1c86-64"
},
{
"uid": "4c32-62"
"uid": "1c86-62"
}
]
},
"4c32-48": {
"1c86-48": {
"id": "/packages/router-core/src/utils.ts",
"moduleParts": {
"index.production.js": "4c32-49"
"index.production.js": "1c86-49"
},

@@ -212,20 +212,20 @@ "imported": [],

{
"uid": "4c32-64"
"uid": "1c86-64"
},
{
"uid": "4c32-50"
"uid": "1c86-50"
},
{
"uid": "4c32-62"
"uid": "1c86-62"
}
]
},
"4c32-50": {
"1c86-50": {
"id": "/packages/router-core/src/path.ts",
"moduleParts": {
"index.production.js": "4c32-51"
"index.production.js": "1c86-51"
},
"imported": [
{
"uid": "4c32-48"
"uid": "1c86-48"
}

@@ -235,16 +235,16 @@ ],

{
"uid": "4c32-64"
"uid": "1c86-64"
},
{
"uid": "4c32-54"
"uid": "1c86-54"
},
{
"uid": "4c32-62"
"uid": "1c86-62"
}
]
},
"4c32-52": {
"1c86-52": {
"id": "/packages/router-core/src/qss.ts",
"moduleParts": {
"index.production.js": "4c32-53"
"index.production.js": "1c86-53"
},

@@ -254,20 +254,20 @@ "imported": [],

{
"uid": "4c32-64"
"uid": "1c86-64"
},
{
"uid": "4c32-60"
"uid": "1c86-60"
}
]
},
"4c32-54": {
"1c86-54": {
"id": "/packages/router-core/src/route.ts",
"moduleParts": {
"index.production.js": "4c32-55"
"index.production.js": "1c86-55"
},
"imported": [
{
"uid": "4c32-42"
"uid": "1c86-42"
},
{
"uid": "4c32-50"
"uid": "1c86-50"
}

@@ -277,17 +277,17 @@ ],

{
"uid": "4c32-64"
"uid": "1c86-64"
},
{
"uid": "4c32-56"
"uid": "1c86-56"
}
]
},
"4c32-56": {
"1c86-56": {
"id": "/packages/router-core/src/fileRoute.ts",
"moduleParts": {
"index.production.js": "4c32-57"
"index.production.js": "1c86-57"
},
"imported": [
{
"uid": "4c32-54"
"uid": "1c86-54"
}

@@ -297,10 +297,10 @@ ],

{
"uid": "4c32-64"
"uid": "1c86-64"
}
]
},
"4c32-58": {
"1c86-58": {
"id": "/packages/store/build/esm/index.js",
"moduleParts": {
"index.production.js": "4c32-59"
"index.production.js": "1c86-59"
},

@@ -310,14 +310,14 @@ "imported": [],

{
"uid": "4c32-68"
"uid": "1c86-68"
}
]
},
"4c32-60": {
"1c86-60": {
"id": "/packages/router-core/src/searchParams.ts",
"moduleParts": {
"index.production.js": "4c32-61"
"index.production.js": "1c86-61"
},
"imported": [
{
"uid": "4c32-52"
"uid": "1c86-52"
}

@@ -327,32 +327,32 @@ ],

{
"uid": "4c32-64"
"uid": "1c86-64"
},
{
"uid": "4c32-62"
"uid": "1c86-62"
}
]
},
"4c32-62": {
"1c86-62": {
"id": "/packages/router-core/src/router.ts",
"moduleParts": {
"index.production.js": "4c32-63"
"index.production.js": "1c86-63"
},
"imported": [
{
"uid": "4c32-68"
"uid": "1c86-68"
},
{
"uid": "4c32-42"
"uid": "1c86-42"
},
{
"uid": "4c32-50"
"uid": "1c86-50"
},
{
"uid": "4c32-60"
"uid": "1c86-60"
},
{
"uid": "4c32-48"
"uid": "1c86-48"
},
{
"uid": "4c32-46"
"uid": "1c86-46"
}

@@ -362,47 +362,47 @@ ],

{
"uid": "4c32-64"
"uid": "1c86-64"
}
]
},
"4c32-64": {
"1c86-64": {
"id": "/packages/router-core/src/index.ts",
"moduleParts": {
"index.production.js": "4c32-65"
"index.production.js": "1c86-65"
},
"imported": [
{
"uid": "4c32-42"
"uid": "1c86-42"
},
{
"uid": "4c32-44"
"uid": "1c86-44"
},
{
"uid": "4c32-46"
"uid": "1c86-46"
},
{
"uid": "4c32-66"
"uid": "1c86-66"
},
{
"uid": "4c32-50"
"uid": "1c86-50"
},
{
"uid": "4c32-52"
"uid": "1c86-52"
},
{
"uid": "4c32-54"
"uid": "1c86-54"
},
{
"uid": "4c32-56"
"uid": "1c86-56"
},
{
"uid": "4c32-67"
"uid": "1c86-67"
},
{
"uid": "4c32-62"
"uid": "1c86-62"
},
{
"uid": "4c32-60"
"uid": "1c86-60"
},
{
"uid": "4c32-48"
"uid": "1c86-48"
}

@@ -413,3 +413,3 @@ ],

},
"4c32-66": {
"1c86-66": {
"id": "/packages/router-core/src/link.ts",

@@ -420,7 +420,7 @@ "moduleParts": {},

{
"uid": "4c32-64"
"uid": "1c86-64"
}
]
},
"4c32-67": {
"1c86-67": {
"id": "/packages/router-core/src/routeInfo.ts",

@@ -431,7 +431,7 @@ "moduleParts": {},

{
"uid": "4c32-64"
"uid": "1c86-64"
}
]
},
"4c32-68": {
"1c86-68": {
"id": "/packages/react-store/build/esm/index.js",

@@ -441,6 +441,6 @@ "moduleParts": {},

{
"uid": "4c32-69"
"uid": "1c86-69"
},
{
"uid": "4c32-58"
"uid": "1c86-58"
}

@@ -450,7 +450,7 @@ ],

{
"uid": "4c32-62"
"uid": "1c86-62"
}
]
},
"4c32-69": {
"1c86-69": {
"id": "use-sync-external-store/shim/with-selector",

@@ -461,3 +461,3 @@ "moduleParts": {},

{
"uid": "4c32-68"
"uid": "1c86-68"
}

@@ -464,0 +464,0 @@ ],

@@ -117,4 +117,4 @@ /**

type RoutePaths<TRouteTree extends AnyRoute> = ParseRoute<TRouteTree>['fullPath'] | '/';
type FullSearchSchema<TRouteTree extends AnyRoute> = MergeUnion<ParseRoute<TRouteTree>['__types']['fullSearchSchema']> & {};
type AllParams<TRouteTree extends AnyRoute> = MergeUnion<ParseRoute<TRouteTree>['__types']['allParams']>;
type FullSearchSchema<TRouteTree extends AnyRoute> = MergeUnion<ParseRoute<TRouteTree>['types']['fullSearchSchema']> & {};
type AllParams<TRouteTree extends AnyRoute> = MergeUnion<ParseRoute<TRouteTree>['types']['allParams']>;

@@ -160,3 +160,3 @@ declare global {

pathname: string;
params: TRoute['__types']['allParams'];
params: TRoute['types']['allParams'];
status: 'pending' | 'success' | 'error';

@@ -171,9 +171,9 @@ isFetching: boolean;

preloadInvalidAt: number;
loaderData: TRoute['__types']['loader'];
loaderData: TRoute['types']['loader'];
loadPromise?: Promise<void>;
__resolveLoadPromise?: () => void;
routeContext: TRoute['__types']['routeContext'];
context: TRoute['__types']['context'];
routeSearch: TRoute['__types']['searchSchema'];
search: FullSearchSchema<TRouteTree> & TRoute['__types']['fullSearchSchema'];
routeContext: TRoute['types']['routeContext'];
context: TRoute['types']['context'];
routeSearch: TRoute['types']['searchSchema'];
search: FullSearchSchema<TRouteTree> & TRoute['types']['fullSearchSchema'];
fetchedAt: number;

@@ -183,6 +183,6 @@ abortController: AbortController;

type AnyRouteMatch = RouteMatch<AnyRoute, AnyRoute>;
type RouterContextOptions<TRouteTree extends AnyRoute> = AnyContext extends TRouteTree['__types']['routerContext'] ? {
context?: TRouteTree['__types']['routerContext'];
type RouterContextOptions<TRouteTree extends AnyRoute> = AnyContext extends TRouteTree['types']['routerContext'] ? {
context?: TRouteTree['types']['routerContext'];
} : {
context: TRouteTree['__types']['routerContext'];
context: TRouteTree['types']['routerContext'];
};

@@ -209,3 +209,3 @@ interface RouterOptions<TRouteTree extends AnyRoute, TDehydrated extends Record<string, any>> {

onRouteChange?: () => void;
context?: TRouteTree['__types']['routerContext'];
context?: TRouteTree['types']['routerContext'];
Wrap?: React.ComponentType<{

@@ -311,3 +311,3 @@ children: React.ReactNode;

navigate: <TFrom extends RoutePaths<TRouteTree> = "/", TTo extends string = "">({ from, to, search, hash, replace, params, }: NavigateOptions<TRouteTree, TFrom, TTo>) => Promise<void>;
matchRoute: <TFrom extends RoutePaths<TRouteTree> = "/", TTo extends string = "", TResolved extends string = ResolveRelativePath<TFrom, NoInfer<TTo>>>(location: ToOptions<TRouteTree, TFrom, TTo, ResolveRelativePath<TFrom, NoInfer<TTo>>>, opts?: MatchRouteOptions) => false | RouteById<TRouteTree, TResolved>["__types"]["allParams"];
matchRoute: <TFrom extends RoutePaths<TRouteTree> = "/", TTo extends string = "", TResolved extends string = ResolveRelativePath<TFrom, NoInfer<TTo>>>(location: ToOptions<TRouteTree, TFrom, TTo, ResolveRelativePath<TFrom, NoInfer<TTo>>>, opts?: MatchRouteOptions) => false | RouteById<TRouteTree, TResolved>["types"]["allParams"];
buildLink: <TFrom extends RoutePaths<TRouteTree> = "/", TTo extends string = "">({ from, to, search, params, hash, target, replace, activeOptions, preload, preloadDelay: userPreloadDelay, disabled, state, }: LinkOptions<TRouteTree, TFrom, TTo>) => LinkInfo;

@@ -383,3 +383,3 @@ dehydrate: () => DehydratedRouter;

type ComponentFromRoute<TRoute> = RegisteredRouteComponent<ComponentPropsFromRoute<TRoute>>;
type RouteLoaderFromRoute<TRoute extends AnyRoute> = LoaderFn<TRoute['__types']['loader'], TRoute['__types']['searchSchema'], TRoute['__types']['fullSearchSchema'], TRoute['__types']['allParams'], TRoute['__types']['routeContext'], TRoute['__types']['context']>;
type RouteLoaderFromRoute<TRoute extends AnyRoute> = LoaderFn<TRoute['types']['loader'], TRoute['types']['searchSchema'], TRoute['types']['fullSearchSchema'], TRoute['types']['allParams'], TRoute['types']['routeContext'], TRoute['types']['context']>;
type RouteProps<TLoader extends any = unknown, TFullSearchSchema extends AnySearchSchema = AnySearchSchema, TAllParams extends AnyPathParams = AnyPathParams, TRouteContext extends AnyContext = AnyContext, TContext extends AnyContext = AnyContext> = {

@@ -501,7 +501,7 @@ useMatch: () => RouteMatch<any, any>;

isRoot: true;
__types: {
types: {
searchSchema: infer TSearchSchema;
};
} ? TSearchSchema : TRoute extends {
__types: {
types: {
fullSearchSchema: infer TFullSearchSchema;

@@ -542,4 +542,4 @@ };

};
declare class Route<TParentRoute extends RouteConstraints['TParentRoute'] = AnyRoute, TPath extends RouteConstraints['TPath'] = '/', TFullPath extends RouteConstraints['TFullPath'] = ResolveFullPath<TParentRoute, TPath>, TCustomId extends RouteConstraints['TCustomId'] = string, TId extends RouteConstraints['TId'] = ResolveId<TParentRoute, TCustomId, TPath>, TLoader = unknown, TSearchSchema extends RouteConstraints['TSearchSchema'] = {}, TFullSearchSchema extends RouteConstraints['TFullSearchSchema'] = ResolveFullSearchSchema<TParentRoute, TSearchSchema>, TParams extends RouteConstraints['TParams'] = Record<ParsePathParams<TPath>, string>, TAllParams extends RouteConstraints['TAllParams'] = MergeParamsFromParent<TParentRoute['__types']['allParams'], TParams>, TParentContext extends RouteConstraints['TParentContext'] = TParentRoute['__types']['routeContext'], TAllParentContext extends RouteConstraints['TAllParentContext'] = TParentRoute['__types']['context'], TRouteContext extends RouteConstraints['TRouteContext'] = RouteContext, TAllContext extends RouteConstraints['TAllContext'] = MergeParamsFromParent<TParentRoute['__types']['context'], TRouteContext>, TRouterContext extends RouteConstraints['TRouterContext'] = AnyContext, TChildren extends RouteConstraints['TChildren'] = unknown, TRouteTree extends RouteConstraints['TRouteTree'] = AnyRoute> {
__types: {
declare class Route<TParentRoute extends RouteConstraints['TParentRoute'] = AnyRoute, TPath extends RouteConstraints['TPath'] = '/', TFullPath extends RouteConstraints['TFullPath'] = ResolveFullPath<TParentRoute, TPath>, TCustomId extends RouteConstraints['TCustomId'] = string, TId extends RouteConstraints['TId'] = ResolveId<TParentRoute, TCustomId, TPath>, TLoader = unknown, TSearchSchema extends RouteConstraints['TSearchSchema'] = {}, TFullSearchSchema extends RouteConstraints['TFullSearchSchema'] = ResolveFullSearchSchema<TParentRoute, TSearchSchema>, TParams extends RouteConstraints['TParams'] = Record<ParsePathParams<TPath>, string>, TAllParams extends RouteConstraints['TAllParams'] = MergeParamsFromParent<TParentRoute['types']['allParams'], TParams>, TParentContext extends RouteConstraints['TParentContext'] = TParentRoute['types']['routeContext'], TAllParentContext extends RouteConstraints['TAllParentContext'] = TParentRoute['types']['context'], TRouteContext extends RouteConstraints['TRouteContext'] = RouteContext, TAllContext extends RouteConstraints['TAllContext'] = MergeParamsFromParent<TParentRoute['types']['context'], TRouteContext>, TRouterContext extends RouteConstraints['TRouterContext'] = AnyContext, TChildren extends RouteConstraints['TChildren'] = unknown, TRouteTree extends RouteConstraints['TRouteTree'] = AnyRoute> {
types: {
parentRoute: TParentRoute;

@@ -605,3 +605,3 @@ path: TPath;

type RemoveUnderScores<T extends string> = Replace<Replace<TrimRight<TrimLeft<T, '/_'>, '_'>, '_/', '/'>, '/_', '/'>;
type ResolveFilePath<TParentRoute extends AnyRoute, TFilePath extends string> = TParentRoute['id'] extends RootRouteId ? TrimPathLeft<TFilePath> : Replace<TrimPathLeft<TFilePath>, TrimPathLeft<TParentRoute['__types']['customId']>, ''>;
type ResolveFilePath<TParentRoute extends AnyRoute, TFilePath extends string> = TParentRoute['id'] extends RootRouteId ? TrimPathLeft<TFilePath> : Replace<TrimPathLeft<TFilePath>, TrimPathLeft<TParentRoute['types']['customId']>, ''>;
type FileRoutePath<TParentRoute extends AnyRoute, TFilePath extends string> = ResolveFilePath<TParentRoute, TFilePath> extends `_${infer _}` ? string : ResolveFilePath<TParentRoute, TFilePath>;

@@ -611,3 +611,3 @@ declare class FileRoute<TFilePath extends keyof FileRoutesByPath, TParentRoute extends AnyRoute = FileRoutesByPath[TFilePath]['parentRoute'], TId extends RouteConstraints['TId'] = TFilePath, TPath extends RouteConstraints['TPath'] = FileRoutePath<TParentRoute, TFilePath>, TFullPath extends RouteConstraints['TFullPath'] = ResolveFullPath<TParentRoute, RemoveUnderScores<TPath>>> {

constructor(path: TFilePath);
createRoute: <TLoader = unknown, TSearchSchema extends AnySearchSchema = {}, TFullSearchSchema extends AnySearchSchema = ResolveFullSearchSchema<TParentRoute, TSearchSchema>, TParams extends Record<string, any> = (TrimLeft<TrimRight<Split<TPath, true>[number], "_">, "_"> extends infer T ? T extends TrimLeft<TrimRight<Split<TPath, true>[number], "_">, "_"> ? T extends `$${infer L}` ? L : never : never : never) extends never ? AnyPathParams : Record<TrimLeft<TrimRight<Split<TPath, true>[number], "_">, "_"> extends infer T ? T extends TrimLeft<TrimRight<Split<TPath, true>[number], "_">, "_"> ? T extends `$${infer L}` ? L : never : never : never, string>, TAllParams extends Record<string, any> = IsAny<TParentRoute["__types"]["allParams"], TParams, TParentRoute["__types"]["allParams"] & TParams>, TParentContext extends AnyContext = TParentRoute["__types"]["routeContext"], TAllParentContext extends string = TParentRoute["__types"]["context"], TRouteContext extends RouteContext = RouteContext, TContext extends AnyContext = IsAny<TParentRoute["__types"]["context"], TRouteContext, TParentRoute["__types"]["context"] & TRouteContext>, TRouterContext extends AnyContext = AnyContext, TChildren extends unknown = unknown, TRouteTree extends AnyRoute = AnyRoute>(options: Omit<RouteOptions<TParentRoute, string, string, TLoader, InferFullSearchSchema<TParentRoute>, TSearchSchema, TFullSearchSchema, TParams, TAllParams, TParentContext, TAllParentContext, TRouteContext, TContext>, "id" | "path" | "getParentRoute"> & {
createRoute: <TLoader = unknown, TSearchSchema extends AnySearchSchema = {}, TFullSearchSchema extends AnySearchSchema = ResolveFullSearchSchema<TParentRoute, TSearchSchema>, TParams extends Record<string, any> = (TrimLeft<TrimRight<Split<TPath, true>[number], "_">, "_"> extends infer T ? T extends TrimLeft<TrimRight<Split<TPath, true>[number], "_">, "_"> ? T extends `$${infer L}` ? L : never : never : never) extends never ? AnyPathParams : Record<TrimLeft<TrimRight<Split<TPath, true>[number], "_">, "_"> extends infer T ? T extends TrimLeft<TrimRight<Split<TPath, true>[number], "_">, "_"> ? T extends `$${infer L}` ? L : never : never : never, string>, TAllParams extends Record<string, any> = IsAny<TParentRoute["types"]["allParams"], TParams, TParentRoute["types"]["allParams"] & TParams>, TParentContext extends AnyContext = TParentRoute["types"]["routeContext"], TAllParentContext extends string = TParentRoute["types"]["context"], TRouteContext extends RouteContext = RouteContext, TContext extends AnyContext = IsAny<TParentRoute["types"]["context"], TRouteContext, TParentRoute["types"]["context"] & TRouteContext>, TRouterContext extends AnyContext = AnyContext, TChildren extends unknown = unknown, TRouteTree extends AnyRoute = AnyRoute>(options: Omit<RouteOptions<TParentRoute, string, string, TLoader, InferFullSearchSchema<TParentRoute>, TSearchSchema, TFullSearchSchema, TParams, TAllParams, TParentContext, TAllParentContext, TRouteContext, TContext>, "id" | "path" | "getParentRoute"> & {
meta?: RouteMeta | undefined;

@@ -691,3 +691,3 @@ } & {

} & CheckPath<TRouteTree, NoInfer<TResolvedTo>, {}> & SearchParamOptions<TRouteTree, TFrom, TResolvedTo> & PathParamOptions<TRouteTree, TFrom, TResolvedTo>;
type SearchParamOptions<TRouteTree extends AnyRoute, TFrom, TTo, TFromSchema = UnionToIntersection<FullSearchSchema<TRouteTree> & RouteByPath<TRouteTree, TFrom> extends never ? {} : RouteByPath<TRouteTree, TFrom>['__types']['fullSearchSchema']>, TToSchema = Partial<RouteByPath<TRouteTree, TFrom>['__types']['fullSearchSchema']> & Omit<RouteByPath<TRouteTree, TTo>['__types']['fullSearchSchema'], keyof PickRequired<RouteByPath<TRouteTree, TFrom>['__types']['fullSearchSchema']>>, TFromFullSchema = UnionToIntersection<FullSearchSchema<TRouteTree> & TFromSchema>, TToFullSchema = UnionToIntersection<FullSearchSchema<TRouteTree> & TToSchema>> = keyof PickRequired<TToSchema> extends never ? {
type SearchParamOptions<TRouteTree extends AnyRoute, TFrom, TTo, TFromSchema = UnionToIntersection<FullSearchSchema<TRouteTree> & RouteByPath<TRouteTree, TFrom> extends never ? {} : RouteByPath<TRouteTree, TFrom>['types']['fullSearchSchema']>, TToSchema = Partial<RouteByPath<TRouteTree, TFrom>['types']['fullSearchSchema']> & Omit<RouteByPath<TRouteTree, TTo>['types']['fullSearchSchema'], keyof PickRequired<RouteByPath<TRouteTree, TFrom>['types']['fullSearchSchema']>>, TFromFullSchema = UnionToIntersection<FullSearchSchema<TRouteTree> & TFromSchema>, TToFullSchema = UnionToIntersection<FullSearchSchema<TRouteTree> & TToSchema>> = keyof PickRequired<TToSchema> extends never ? {
search?: true | SearchReducer<TFromFullSchema, TToFullSchema>;

@@ -700,3 +700,3 @@ } : {

} | ((current: TFrom) => TTo);
type PathParamOptions<TRouteTree extends AnyRoute, TFrom, TTo, TFromSchema = UnionToIntersection<RouteByPath<TRouteTree, TFrom> extends never ? {} : RouteByPath<TRouteTree, TFrom>['__types']['allParams']>, TToSchema = Partial<RouteByPath<TRouteTree, TFrom>['__types']['allParams']> & Omit<RouteByPath<TRouteTree, TTo>['__types']['allParams'], keyof PickRequired<RouteByPath<TRouteTree, TFrom>['__types']['allParams']>>, TFromFullParams = UnionToIntersection<AllParams<TRouteTree> & TFromSchema>, TToFullParams = UnionToIntersection<AllParams<TRouteTree> & TToSchema>> = keyof PickRequired<TToSchema> extends never ? {
type PathParamOptions<TRouteTree extends AnyRoute, TFrom, TTo, TFromSchema = UnionToIntersection<RouteByPath<TRouteTree, TFrom> extends never ? {} : RouteByPath<TRouteTree, TFrom>['types']['allParams']>, TToSchema = Partial<RouteByPath<TRouteTree, TFrom>['types']['allParams']> & Omit<RouteByPath<TRouteTree, TTo>['types']['allParams'], keyof PickRequired<RouteByPath<TRouteTree, TFrom>['types']['allParams']>>, TFromFullParams = UnionToIntersection<AllParams<TRouteTree> & TFromSchema>, TToFullParams = UnionToIntersection<AllParams<TRouteTree> & TToSchema>> = keyof PickRequired<TToSchema> extends never ? {
params?: ParamsReducer<TFromFullParams, TToFullParams>;

@@ -703,0 +703,0 @@ } : {

{
"name": "@tanstack/router-core",
"author": "Tanner Linsley",
"version": "0.0.1-beta.161",
"version": "0.0.1-beta.162",
"license": "MIT",

@@ -46,3 +46,3 @@ "repository": "tanstack/router",

"@gisatcz/cross-package-react-context": "^0.2.0",
"@tanstack/react-store": "0.0.1-beta.161"
"@tanstack/react-store": "0.0.1-beta.162"
},

@@ -49,0 +49,0 @@ "scripts": {

@@ -62,3 +62,3 @@ import { ParsePathParams } from './link'

TrimPathLeft<TFilePath>,
TrimPathLeft<TParentRoute['__types']['customId']>,
TrimPathLeft<TParentRoute['types']['customId']>,
''

@@ -100,10 +100,10 @@ >

TAllParams extends RouteConstraints['TAllParams'] = MergeParamsFromParent<
TParentRoute['__types']['allParams'],
TParentRoute['types']['allParams'],
TParams
>,
TParentContext extends RouteConstraints['TParentContext'] = TParentRoute['__types']['routeContext'],
TAllParentContext extends RouteConstraints['TId'] = TParentRoute['__types']['context'],
TParentContext extends RouteConstraints['TParentContext'] = TParentRoute['types']['routeContext'],
TAllParentContext extends RouteConstraints['TId'] = TParentRoute['types']['context'],
TRouteContext extends RouteConstraints['TRouteContext'] = RouteContext,
TContext extends RouteConstraints['TAllContext'] = MergeParamsFromParent<
TParentRoute['__types']['context'],
TParentRoute['types']['context'],
TRouteContext

@@ -110,0 +110,0 @@ >,

@@ -155,3 +155,3 @@ import { Trim } from './fileRoute'

? {}
: RouteByPath<TRouteTree, TFrom>['__types']['fullSearchSchema']
: RouteByPath<TRouteTree, TFrom>['types']['fullSearchSchema']
>,

@@ -161,8 +161,8 @@ // Find the schema for the new path, and make optional any keys

TToSchema = Partial<
RouteByPath<TRouteTree, TFrom>['__types']['fullSearchSchema']
RouteByPath<TRouteTree, TFrom>['types']['fullSearchSchema']
> &
Omit<
RouteByPath<TRouteTree, TTo>['__types']['fullSearchSchema'],
RouteByPath<TRouteTree, TTo>['types']['fullSearchSchema'],
keyof PickRequired<
RouteByPath<TRouteTree, TFrom>['__types']['fullSearchSchema']
RouteByPath<TRouteTree, TFrom>['types']['fullSearchSchema']
>

@@ -193,10 +193,10 @@ >,

? {}
: RouteByPath<TRouteTree, TFrom>['__types']['allParams']
: RouteByPath<TRouteTree, TFrom>['types']['allParams']
>,
// Find the schema for the new path, and make optional any keys
// that are already defined in the current schema
TToSchema = Partial<RouteByPath<TRouteTree, TFrom>['__types']['allParams']> &
TToSchema = Partial<RouteByPath<TRouteTree, TFrom>['types']['allParams']> &
Omit<
RouteByPath<TRouteTree, TTo>['__types']['allParams'],
keyof PickRequired<RouteByPath<TRouteTree, TFrom>['__types']['allParams']>
RouteByPath<TRouteTree, TTo>['types']['allParams'],
keyof PickRequired<RouteByPath<TRouteTree, TFrom>['types']['allParams']>
>,

@@ -203,0 +203,0 @@ TFromFullParams = UnionToIntersection<AllParams<TRouteTree> & TFromSchema>,

@@ -84,8 +84,8 @@ import { ParsePathParams } from './link'

export type RouteLoaderFromRoute<TRoute extends AnyRoute> = LoaderFn<
TRoute['__types']['loader'],
TRoute['__types']['searchSchema'],
TRoute['__types']['fullSearchSchema'],
TRoute['__types']['allParams'],
TRoute['__types']['routeContext'],
TRoute['__types']['context']
TRoute['types']['loader'],
TRoute['types']['searchSchema'],
TRoute['types']['fullSearchSchema'],
TRoute['types']['allParams'],
TRoute['types']['routeContext'],
TRoute['types']['context']
>

@@ -447,3 +447,3 @@

isRoot: true
__types: {
types: {
searchSchema: infer TSearchSchema

@@ -454,3 +454,3 @@ }

: TRoute extends {
__types: {
types: {
fullSearchSchema: infer TFullSearchSchema

@@ -548,10 +548,10 @@ }

TAllParams extends RouteConstraints['TAllParams'] = MergeParamsFromParent<
TParentRoute['__types']['allParams'],
TParentRoute['types']['allParams'],
TParams
>,
TParentContext extends RouteConstraints['TParentContext'] = TParentRoute['__types']['routeContext'],
TAllParentContext extends RouteConstraints['TAllParentContext'] = TParentRoute['__types']['context'],
TParentContext extends RouteConstraints['TParentContext'] = TParentRoute['types']['routeContext'],
TAllParentContext extends RouteConstraints['TAllParentContext'] = TParentRoute['types']['context'],
TRouteContext extends RouteConstraints['TRouteContext'] = RouteContext,
TAllContext extends RouteConstraints['TAllContext'] = MergeParamsFromParent<
TParentRoute['__types']['context'],
TParentRoute['types']['context'],
TRouteContext

@@ -563,3 +563,3 @@ >,

> {
__types!: {
types!: {
parentRoute: TParentRoute

@@ -566,0 +566,0 @@ path: TPath

@@ -66,7 +66,7 @@ import { AnyRoute, Route } from './route'

export type FullSearchSchema<TRouteTree extends AnyRoute> = MergeUnion<
ParseRoute<TRouteTree>['__types']['fullSearchSchema']
ParseRoute<TRouteTree>['types']['fullSearchSchema']
> & {}
export type AllParams<TRouteTree extends AnyRoute> = MergeUnion<
ParseRoute<TRouteTree>['__types']['allParams']
ParseRoute<TRouteTree>['types']['allParams']
>

@@ -117,3 +117,3 @@ import { Store } from '@tanstack/react-store'

pathname: string
params: TRoute['__types']['allParams']
params: TRoute['types']['allParams']
status: 'pending' | 'success' | 'error'

@@ -128,9 +128,9 @@ isFetching: boolean

preloadInvalidAt: number
loaderData: TRoute['__types']['loader']
loaderData: TRoute['types']['loader']
loadPromise?: Promise<void>
__resolveLoadPromise?: () => void
routeContext: TRoute['__types']['routeContext']
context: TRoute['__types']['context']
routeSearch: TRoute['__types']['searchSchema']
search: FullSearchSchema<TRouteTree> & TRoute['__types']['fullSearchSchema']
routeContext: TRoute['types']['routeContext']
context: TRoute['types']['context']
routeSearch: TRoute['types']['searchSchema']
search: FullSearchSchema<TRouteTree> & TRoute['types']['fullSearchSchema']
fetchedAt: number

@@ -143,8 +143,8 @@ abortController: AbortController

export type RouterContextOptions<TRouteTree extends AnyRoute> =
AnyContext extends TRouteTree['__types']['routerContext']
AnyContext extends TRouteTree['types']['routerContext']
? {
context?: TRouteTree['__types']['routerContext']
context?: TRouteTree['types']['routerContext']
}
: {
context: TRouteTree['__types']['routerContext']
context: TRouteTree['types']['routerContext']
}

@@ -178,3 +178,3 @@

onRouteChange?: () => void
context?: TRouteTree['__types']['routerContext']
context?: TRouteTree['types']['routerContext']
Wrap?: React.ComponentType<{

@@ -1096,3 +1096,3 @@ children: React.ReactNode

opts?: MatchRouteOptions,
): false | RouteById<TRouteTree, TResolved>['__types']['allParams'] => {
): false | RouteById<TRouteTree, TResolved>['types']['allParams'] => {
location = {

@@ -1099,0 +1099,0 @@ ...location,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc