@tanstack/router
Advanced tools
Comparing version 0.0.1-beta.58 to 0.0.1-beta.60
@@ -11,3 +11,3 @@ { | ||
"name": "node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js", | ||
"uid": "c2ff-30" | ||
"uid": "5334-30" | ||
}, | ||
@@ -21,35 +21,35 @@ { | ||
{ | ||
"uid": "c2ff-32", | ||
"uid": "5334-32", | ||
"name": "history.ts" | ||
}, | ||
{ | ||
"uid": "c2ff-34", | ||
"uid": "5334-34", | ||
"name": "utils.ts" | ||
}, | ||
{ | ||
"uid": "c2ff-36", | ||
"uid": "5334-36", | ||
"name": "path.ts" | ||
}, | ||
{ | ||
"uid": "c2ff-38", | ||
"uid": "5334-38", | ||
"name": "qss.ts" | ||
}, | ||
{ | ||
"uid": "c2ff-40", | ||
"uid": "5334-40", | ||
"name": "route.ts" | ||
}, | ||
{ | ||
"uid": "c2ff-44", | ||
"uid": "5334-44", | ||
"name": "routeMatch.ts" | ||
}, | ||
{ | ||
"uid": "c2ff-46", | ||
"uid": "5334-46", | ||
"name": "searchParams.ts" | ||
}, | ||
{ | ||
"uid": "c2ff-48", | ||
"uid": "5334-48", | ||
"name": "router.ts" | ||
}, | ||
{ | ||
"uid": "c2ff-50", | ||
"uid": "5334-50", | ||
"name": "index.ts" | ||
@@ -61,3 +61,3 @@ } | ||
"name": "store/build/esm/index.js", | ||
"uid": "c2ff-42" | ||
"uid": "5334-42" | ||
} | ||
@@ -72,74 +72,74 @@ ] | ||
"nodeParts": { | ||
"c2ff-30": { | ||
"5334-30": { | ||
"renderedLength": 199, | ||
"gzipLength": 134, | ||
"brotliLength": 0, | ||
"mainUid": "c2ff-29" | ||
"mainUid": "5334-29" | ||
}, | ||
"c2ff-32": { | ||
"5334-32": { | ||
"renderedLength": 4236, | ||
"gzipLength": 1085, | ||
"brotliLength": 0, | ||
"mainUid": "c2ff-31" | ||
"mainUid": "5334-31" | ||
}, | ||
"c2ff-34": { | ||
"5334-34": { | ||
"renderedLength": 2572, | ||
"gzipLength": 950, | ||
"brotliLength": 0, | ||
"mainUid": "c2ff-33" | ||
"mainUid": "5334-33" | ||
}, | ||
"c2ff-36": { | ||
"5334-36": { | ||
"renderedLength": 5601, | ||
"gzipLength": 1328, | ||
"brotliLength": 0, | ||
"mainUid": "c2ff-35" | ||
"mainUid": "5334-35" | ||
}, | ||
"c2ff-38": { | ||
"5334-38": { | ||
"renderedLength": 1395, | ||
"gzipLength": 558, | ||
"brotliLength": 0, | ||
"mainUid": "c2ff-37" | ||
"mainUid": "5334-37" | ||
}, | ||
"c2ff-40": { | ||
"5334-40": { | ||
"renderedLength": 2936, | ||
"gzipLength": 885, | ||
"brotliLength": 0, | ||
"mainUid": "c2ff-39" | ||
"mainUid": "5334-39" | ||
}, | ||
"c2ff-42": { | ||
"5334-42": { | ||
"renderedLength": 1386, | ||
"gzipLength": 501, | ||
"brotliLength": 0, | ||
"mainUid": "c2ff-41" | ||
"mainUid": "5334-41" | ||
}, | ||
"c2ff-44": { | ||
"5334-44": { | ||
"renderedLength": 4873, | ||
"gzipLength": 1357, | ||
"brotliLength": 0, | ||
"mainUid": "c2ff-43" | ||
"mainUid": "5334-43" | ||
}, | ||
"c2ff-46": { | ||
"5334-46": { | ||
"renderedLength": 1387, | ||
"gzipLength": 483, | ||
"brotliLength": 0, | ||
"mainUid": "c2ff-45" | ||
"mainUid": "5334-45" | ||
}, | ||
"c2ff-48": { | ||
"5334-48": { | ||
"renderedLength": 24146, | ||
"gzipLength": 5621, | ||
"brotliLength": 0, | ||
"mainUid": "c2ff-47" | ||
"mainUid": "5334-47" | ||
}, | ||
"c2ff-50": { | ||
"5334-50": { | ||
"renderedLength": 0, | ||
"gzipLength": 0, | ||
"brotliLength": 0, | ||
"mainUid": "c2ff-49" | ||
"mainUid": "5334-49" | ||
} | ||
}, | ||
"nodeMetas": { | ||
"c2ff-29": { | ||
"5334-29": { | ||
"id": "/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js", | ||
"moduleParts": { | ||
"index.production.js": "c2ff-30" | ||
"index.production.js": "5334-30" | ||
}, | ||
@@ -149,16 +149,16 @@ "imported": [], | ||
{ | ||
"uid": "c2ff-49" | ||
"uid": "5334-49" | ||
}, | ||
{ | ||
"uid": "c2ff-39" | ||
"uid": "5334-39" | ||
}, | ||
{ | ||
"uid": "c2ff-47" | ||
"uid": "5334-47" | ||
} | ||
] | ||
}, | ||
"c2ff-31": { | ||
"5334-31": { | ||
"id": "/packages/router/src/history.ts", | ||
"moduleParts": { | ||
"index.production.js": "c2ff-32" | ||
"index.production.js": "5334-32" | ||
}, | ||
@@ -168,13 +168,13 @@ "imported": [], | ||
{ | ||
"uid": "c2ff-49" | ||
"uid": "5334-49" | ||
}, | ||
{ | ||
"uid": "c2ff-47" | ||
"uid": "5334-47" | ||
} | ||
] | ||
}, | ||
"c2ff-33": { | ||
"5334-33": { | ||
"id": "/packages/router/src/utils.ts", | ||
"moduleParts": { | ||
"index.production.js": "c2ff-34" | ||
"index.production.js": "5334-34" | ||
}, | ||
@@ -184,20 +184,20 @@ "imported": [], | ||
{ | ||
"uid": "c2ff-49" | ||
"uid": "5334-49" | ||
}, | ||
{ | ||
"uid": "c2ff-35" | ||
"uid": "5334-35" | ||
}, | ||
{ | ||
"uid": "c2ff-47" | ||
"uid": "5334-47" | ||
} | ||
] | ||
}, | ||
"c2ff-35": { | ||
"5334-35": { | ||
"id": "/packages/router/src/path.ts", | ||
"moduleParts": { | ||
"index.production.js": "c2ff-36" | ||
"index.production.js": "5334-36" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "c2ff-33" | ||
"uid": "5334-33" | ||
} | ||
@@ -207,16 +207,16 @@ ], | ||
{ | ||
"uid": "c2ff-49" | ||
"uid": "5334-49" | ||
}, | ||
{ | ||
"uid": "c2ff-39" | ||
"uid": "5334-39" | ||
}, | ||
{ | ||
"uid": "c2ff-47" | ||
"uid": "5334-47" | ||
} | ||
] | ||
}, | ||
"c2ff-37": { | ||
"5334-37": { | ||
"id": "/packages/router/src/qss.ts", | ||
"moduleParts": { | ||
"index.production.js": "c2ff-38" | ||
"index.production.js": "5334-38" | ||
}, | ||
@@ -226,20 +226,20 @@ "imported": [], | ||
{ | ||
"uid": "c2ff-49" | ||
"uid": "5334-49" | ||
}, | ||
{ | ||
"uid": "c2ff-45" | ||
"uid": "5334-45" | ||
} | ||
] | ||
}, | ||
"c2ff-39": { | ||
"5334-39": { | ||
"id": "/packages/router/src/route.ts", | ||
"moduleParts": { | ||
"index.production.js": "c2ff-40" | ||
"index.production.js": "5334-40" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "c2ff-29" | ||
"uid": "5334-29" | ||
}, | ||
{ | ||
"uid": "c2ff-35" | ||
"uid": "5334-35" | ||
} | ||
@@ -249,10 +249,10 @@ ], | ||
{ | ||
"uid": "c2ff-49" | ||
"uid": "5334-49" | ||
} | ||
] | ||
}, | ||
"c2ff-41": { | ||
"5334-41": { | ||
"id": "/packages/store/build/esm/index.js", | ||
"moduleParts": { | ||
"index.production.js": "c2ff-42" | ||
"index.production.js": "5334-42" | ||
}, | ||
@@ -262,17 +262,17 @@ "imported": [], | ||
{ | ||
"uid": "c2ff-43" | ||
"uid": "5334-43" | ||
}, | ||
{ | ||
"uid": "c2ff-47" | ||
"uid": "5334-47" | ||
} | ||
] | ||
}, | ||
"c2ff-43": { | ||
"5334-43": { | ||
"id": "/packages/router/src/routeMatch.ts", | ||
"moduleParts": { | ||
"index.production.js": "c2ff-44" | ||
"index.production.js": "5334-44" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "c2ff-41" | ||
"uid": "5334-41" | ||
} | ||
@@ -282,17 +282,17 @@ ], | ||
{ | ||
"uid": "c2ff-49" | ||
"uid": "5334-49" | ||
}, | ||
{ | ||
"uid": "c2ff-47" | ||
"uid": "5334-47" | ||
} | ||
] | ||
}, | ||
"c2ff-45": { | ||
"5334-45": { | ||
"id": "/packages/router/src/searchParams.ts", | ||
"moduleParts": { | ||
"index.production.js": "c2ff-46" | ||
"index.production.js": "5334-46" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "c2ff-37" | ||
"uid": "5334-37" | ||
} | ||
@@ -302,35 +302,35 @@ ], | ||
{ | ||
"uid": "c2ff-49" | ||
"uid": "5334-49" | ||
}, | ||
{ | ||
"uid": "c2ff-47" | ||
"uid": "5334-47" | ||
} | ||
] | ||
}, | ||
"c2ff-47": { | ||
"5334-47": { | ||
"id": "/packages/router/src/router.ts", | ||
"moduleParts": { | ||
"index.production.js": "c2ff-48" | ||
"index.production.js": "5334-48" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "c2ff-41" | ||
"uid": "5334-41" | ||
}, | ||
{ | ||
"uid": "c2ff-29" | ||
"uid": "5334-29" | ||
}, | ||
{ | ||
"uid": "c2ff-35" | ||
"uid": "5334-35" | ||
}, | ||
{ | ||
"uid": "c2ff-43" | ||
"uid": "5334-43" | ||
}, | ||
{ | ||
"uid": "c2ff-45" | ||
"uid": "5334-45" | ||
}, | ||
{ | ||
"uid": "c2ff-33" | ||
"uid": "5334-33" | ||
}, | ||
{ | ||
"uid": "c2ff-31" | ||
"uid": "5334-31" | ||
} | ||
@@ -340,47 +340,47 @@ ], | ||
{ | ||
"uid": "c2ff-49" | ||
"uid": "5334-49" | ||
} | ||
] | ||
}, | ||
"c2ff-49": { | ||
"5334-49": { | ||
"id": "/packages/router/src/index.ts", | ||
"moduleParts": { | ||
"index.production.js": "c2ff-50" | ||
"index.production.js": "5334-50" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "c2ff-29" | ||
"uid": "5334-29" | ||
}, | ||
{ | ||
"uid": "c2ff-31" | ||
"uid": "5334-31" | ||
}, | ||
{ | ||
"uid": "c2ff-51" | ||
"uid": "5334-51" | ||
}, | ||
{ | ||
"uid": "c2ff-52" | ||
"uid": "5334-52" | ||
}, | ||
{ | ||
"uid": "c2ff-35" | ||
"uid": "5334-35" | ||
}, | ||
{ | ||
"uid": "c2ff-37" | ||
"uid": "5334-37" | ||
}, | ||
{ | ||
"uid": "c2ff-39" | ||
"uid": "5334-39" | ||
}, | ||
{ | ||
"uid": "c2ff-53" | ||
"uid": "5334-53" | ||
}, | ||
{ | ||
"uid": "c2ff-43" | ||
"uid": "5334-43" | ||
}, | ||
{ | ||
"uid": "c2ff-47" | ||
"uid": "5334-47" | ||
}, | ||
{ | ||
"uid": "c2ff-45" | ||
"uid": "5334-45" | ||
}, | ||
{ | ||
"uid": "c2ff-33" | ||
"uid": "5334-33" | ||
} | ||
@@ -391,3 +391,3 @@ ], | ||
}, | ||
"c2ff-51": { | ||
"5334-51": { | ||
"id": "/packages/router/src/frameworks.ts", | ||
@@ -398,7 +398,7 @@ "moduleParts": {}, | ||
{ | ||
"uid": "c2ff-49" | ||
"uid": "5334-49" | ||
} | ||
] | ||
}, | ||
"c2ff-52": { | ||
"5334-52": { | ||
"id": "/packages/router/src/link.ts", | ||
@@ -409,7 +409,7 @@ "moduleParts": {}, | ||
{ | ||
"uid": "c2ff-49" | ||
"uid": "5334-49" | ||
} | ||
] | ||
}, | ||
"c2ff-53": { | ||
"5334-53": { | ||
"id": "/packages/router/src/routeInfo.ts", | ||
@@ -420,3 +420,3 @@ "moduleParts": {}, | ||
{ | ||
"uid": "c2ff-49" | ||
"uid": "5334-49" | ||
} | ||
@@ -423,0 +423,0 @@ ] |
@@ -119,3 +119,3 @@ /** | ||
type FilterRoutesFn = <TRoute extends AnyRoute>(routes: TRoute[]) => TRoute[]; | ||
interface RouterOptions<TRouteTree extends AnyRoute, TRouterContext> { | ||
interface RouterOptions<TRouteTree extends AnyRootRoute, TRouterContext> { | ||
history?: RouterHistory; | ||
@@ -226,3 +226,3 @@ stringifySearch?: SearchSerializer; | ||
mount: () => () => void; | ||
update: <TRoute extends Route<AnyRoute, string, "/", string, "__root__", {}, any, Record<never, string>, any, unknown, DefaultRoutesInfo> = Route<AnyRoute, string, "/", string, "__root__", {}, any, Record<never, string>, any, unknown, DefaultRoutesInfo>, TRoutesInfo_1 extends AnyRoutesInfo = RoutesInfo<TRoute>, TRouterContext_1 = unknown>(opts?: RouterOptions<TRoute, TRouterContext_1> | undefined) => this; | ||
update: <TRoute extends AnyRootRoute = AnyRootRoute, TRoutesInfo_1 extends AnyRoutesInfo = RoutesInfo<TRoute>, TRouterContext_1 = unknown>(opts?: RouterOptions<TRoute, TRouterContext_1> | undefined) => this; | ||
buildNext: (opts: BuildNextOptions) => ParsedLocation<{}, LocationState>; | ||
@@ -402,2 +402,3 @@ cancelMatches: () => void; | ||
} | ||
type AnyRootRoute = RootRoute<any>; | ||
declare class RootRoute<TSearchSchema extends AnySearchSchema = {}> extends Route<any, '/', '/', string, RootRouteId, TSearchSchema, TSearchSchema, {}, {}> { | ||
@@ -569,2 +570,2 @@ constructor(options?: Omit<RouteOptions<AnyRoute, RootRouteId, '', {}, TSearchSchema, NoInfer<TSearchSchema>, {}, {}, {}>, 'path' | 'id' | 'getParentRoute' | 'caseSensitive'>); | ||
export { ActiveOptions, AnyLoaderData, AnyPathParams, AnyRoute, AnyRouter, AnyRoutesInfo, AnySearchSchema, BuildNextOptions, CheckId, CheckIdError, CheckPath, CheckPathError, CheckRelativePath, DeepAwaited, DefaultRoutesInfo, DefinedPathParamWarning, DehydratedRouter, DehydratedRouterState, Expand, FilterRoutesFn, FrameworkGenerics, FromLocation, GetFrameworkGeneric, InferFullSearchSchema, IsAny, IsAnyBoolean, IsKnown, LinkInfo, LinkOptions, ListenerFn, LoaderContext, LoaderState, LocationState, MatchCache, MatchCacheEntry, MatchLocation, MatchRouteOptions, NavigateOptions, NoInfer, OnLoadFn, ParentParams, ParsePathParams, ParseRoute, ParseRouteChild, ParseRouteChildren, ParsedLocation, ParsedPath, PathParamMask, PathParamOptions, PickAsPartial, PickAsRequired, PickExclude, PickExtra, PickExtract, PickRequired, PickUnsafe, RegisterRouter, RegisteredRouter, RegisteredRoutesInfo, RelativeToPathAutoComplete, ResolveFullSearchSchema, ResolveRelativePath, RootRoute, RootRouteId, Route, RouteById, RouteByPath, RouteMatch, RouteMatchStore, RouteMeta, RouteOptions, RouteOptionsBase, RouteOptionsBaseIntersection, RouteWithRoutesInfo, Router, RouterContext, RouterHistory, RouterLocation, RouterOptions, RouterStore, RoutesById, RoutesInfo, RoutesInfoInner, SearchFilter, SearchParamOptions, SearchParser, SearchSchemaValidator, SearchSchemaValidatorFn, SearchSchemaValidatorObj, SearchSerializer, Segment, Split, Timeout, ToIdOption, ToOptions, ToPathOption, UnionToIntersection, UnloaderFn, Updater, ValidFromPath, ValueKeys, Values, cleanPath, createBrowserHistory, createHashHistory, createMemoryHistory, decode, defaultFetchServerDataFn, defaultParseSearch, defaultStringifySearch, encode, functionalUpdate, interpolatePath, isPlainObject, joinPaths, last, matchByPath, matchPathname, parsePathname, parseSearchWith, pick, replaceEqualDeep, resolvePath, rootRouteId, stringifySearchWith, trimPath, trimPathLeft, trimPathRight, warning }; | ||
export { ActiveOptions, AnyLoaderData, AnyPathParams, AnyRootRoute, AnyRoute, AnyRouter, AnyRoutesInfo, AnySearchSchema, BuildNextOptions, CheckId, CheckIdError, CheckPath, CheckPathError, CheckRelativePath, DeepAwaited, DefaultRoutesInfo, DefinedPathParamWarning, DehydratedRouter, DehydratedRouterState, Expand, FilterRoutesFn, FrameworkGenerics, FromLocation, GetFrameworkGeneric, InferFullSearchSchema, IsAny, IsAnyBoolean, IsKnown, LinkInfo, LinkOptions, ListenerFn, LoaderContext, LoaderState, LocationState, MatchCache, MatchCacheEntry, MatchLocation, MatchRouteOptions, NavigateOptions, NoInfer, OnLoadFn, ParentParams, ParsePathParams, ParseRoute, ParseRouteChild, ParseRouteChildren, ParsedLocation, ParsedPath, PathParamMask, PathParamOptions, PickAsPartial, PickAsRequired, PickExclude, PickExtra, PickExtract, PickRequired, PickUnsafe, RegisterRouter, RegisteredRouter, RegisteredRoutesInfo, RelativeToPathAutoComplete, ResolveFullSearchSchema, ResolveRelativePath, RootRoute, RootRouteId, Route, RouteById, RouteByPath, RouteMatch, RouteMatchStore, RouteMeta, RouteOptions, RouteOptionsBase, RouteOptionsBaseIntersection, RouteWithRoutesInfo, Router, RouterContext, RouterHistory, RouterLocation, RouterOptions, RouterStore, RoutesById, RoutesInfo, RoutesInfoInner, SearchFilter, SearchParamOptions, SearchParser, SearchSchemaValidator, SearchSchemaValidatorFn, SearchSchemaValidatorObj, SearchSerializer, Segment, Split, Timeout, ToIdOption, ToOptions, ToPathOption, UnionToIntersection, UnloaderFn, Updater, ValidFromPath, ValueKeys, Values, cleanPath, createBrowserHistory, createHashHistory, createMemoryHistory, decode, defaultFetchServerDataFn, defaultParseSearch, defaultStringifySearch, encode, functionalUpdate, interpolatePath, isPlainObject, joinPaths, last, matchByPath, matchPathname, parsePathname, parseSearchWith, pick, replaceEqualDeep, resolvePath, rootRouteId, stringifySearchWith, trimPath, trimPathLeft, trimPathRight, warning }; |
{ | ||
"name": "@tanstack/router", | ||
"author": "Tanner Linsley", | ||
"version": "0.0.1-beta.58", | ||
"version": "0.0.1-beta.60", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "repository": "tanstack/router", |
@@ -386,2 +386,4 @@ import { GetFrameworkGeneric } from './frameworks' | ||
export type AnyRootRoute = RootRoute<any> | ||
export class RootRoute< | ||
@@ -388,0 +390,0 @@ TSearchSchema extends AnySearchSchema = {}, |
@@ -31,2 +31,3 @@ import { Store } from '@tanstack/store' | ||
SearchFilter, | ||
AnyRootRoute, | ||
} from './route' | ||
@@ -99,3 +100,6 @@ import { RoutesInfo, AnyRoutesInfo, RoutesById } from './routeInfo' | ||
export interface RouterOptions<TRouteTree extends AnyRoute, TRouterContext> { | ||
export interface RouterOptions< | ||
TRouteTree extends AnyRootRoute, | ||
TRouterContext, | ||
> { | ||
history?: RouterHistory | ||
@@ -324,3 +328,3 @@ stringifySearch?: SearchSerializer | ||
update = < | ||
TRoute extends Route = Route, | ||
TRoute extends AnyRootRoute = AnyRootRoute, | ||
TRoutesInfo extends AnyRoutesInfo = RoutesInfo<TRoute>, | ||
@@ -327,0 +331,0 @@ TRouterContext = unknown, |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
911726
8287