Socket
Socket
Sign inDemoInstall

@tanstack/router

Package Overview
Dependencies
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tanstack/router - npm Package Compare versions

Comparing version 0.0.1-beta.65 to 0.0.1-beta.66

216

build/stats-react.json

@@ -11,3 +11,3 @@ {

"name": "node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js",
"uid": "1f39-30"
"uid": "ff97-30"
},

@@ -21,35 +21,35 @@ {

{
"uid": "1f39-32",
"uid": "ff97-32",
"name": "history.ts"
},
{
"uid": "1f39-34",
"uid": "ff97-34",
"name": "utils.ts"
},
{
"uid": "1f39-36",
"uid": "ff97-36",
"name": "path.ts"
},
{
"uid": "1f39-38",
"uid": "ff97-38",
"name": "qss.ts"
},
{
"uid": "1f39-40",
"uid": "ff97-40",
"name": "route.ts"
},
{
"uid": "1f39-44",
"uid": "ff97-44",
"name": "routeMatch.ts"
},
{
"uid": "1f39-46",
"uid": "ff97-46",
"name": "searchParams.ts"
},
{
"uid": "1f39-48",
"uid": "ff97-48",
"name": "router.ts"
},
{
"uid": "1f39-50",
"uid": "ff97-50",
"name": "index.ts"

@@ -61,3 +61,3 @@ }

"name": "store/build/esm/index.js",
"uid": "1f39-42"
"uid": "ff97-42"
}

@@ -72,74 +72,74 @@ ]

"nodeParts": {
"1f39-30": {
"ff97-30": {
"renderedLength": 199,
"gzipLength": 134,
"brotliLength": 0,
"mainUid": "1f39-29"
"mainUid": "ff97-29"
},
"1f39-32": {
"ff97-32": {
"renderedLength": 4236,
"gzipLength": 1085,
"brotliLength": 0,
"mainUid": "1f39-31"
"mainUid": "ff97-31"
},
"1f39-34": {
"ff97-34": {
"renderedLength": 3046,
"gzipLength": 1062,
"brotliLength": 0,
"mainUid": "1f39-33"
"mainUid": "ff97-33"
},
"1f39-36": {
"ff97-36": {
"renderedLength": 5601,
"gzipLength": 1328,
"brotliLength": 0,
"mainUid": "1f39-35"
"mainUid": "ff97-35"
},
"1f39-38": {
"ff97-38": {
"renderedLength": 1395,
"gzipLength": 558,
"brotliLength": 0,
"mainUid": "1f39-37"
"mainUid": "ff97-37"
},
"1f39-40": {
"ff97-40": {
"renderedLength": 2963,
"gzipLength": 847,
"brotliLength": 0,
"mainUid": "1f39-39"
"mainUid": "ff97-39"
},
"1f39-42": {
"ff97-42": {
"renderedLength": 1384,
"gzipLength": 502,
"brotliLength": 0,
"mainUid": "1f39-41"
"mainUid": "ff97-41"
},
"1f39-44": {
"ff97-44": {
"renderedLength": 6383,
"gzipLength": 1646,
"brotliLength": 0,
"mainUid": "1f39-43"
"mainUid": "ff97-43"
},
"1f39-46": {
"ff97-46": {
"renderedLength": 1387,
"gzipLength": 483,
"brotliLength": 0,
"mainUid": "1f39-45"
"mainUid": "ff97-45"
},
"1f39-48": {
"ff97-48": {
"renderedLength": 23024,
"gzipLength": 5366,
"brotliLength": 0,
"mainUid": "1f39-47"
"mainUid": "ff97-47"
},
"1f39-50": {
"ff97-50": {
"renderedLength": 0,
"gzipLength": 0,
"brotliLength": 0,
"mainUid": "1f39-49"
"mainUid": "ff97-49"
}
},
"nodeMetas": {
"1f39-29": {
"ff97-29": {
"id": "/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js",
"moduleParts": {
"index.production.js": "1f39-30"
"index.production.js": "ff97-30"
},

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

{
"uid": "1f39-49"
"uid": "ff97-49"
},
{
"uid": "1f39-39"
"uid": "ff97-39"
},
{
"uid": "1f39-47"
"uid": "ff97-47"
}
]
},
"1f39-31": {
"ff97-31": {
"id": "/packages/router/src/history.ts",
"moduleParts": {
"index.production.js": "1f39-32"
"index.production.js": "ff97-32"
},

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

{
"uid": "1f39-49"
"uid": "ff97-49"
},
{
"uid": "1f39-47"
"uid": "ff97-47"
}
]
},
"1f39-33": {
"ff97-33": {
"id": "/packages/router/src/utils.ts",
"moduleParts": {
"index.production.js": "1f39-34"
"index.production.js": "ff97-34"
},

@@ -184,23 +184,23 @@ "imported": [],

{
"uid": "1f39-49"
"uid": "ff97-49"
},
{
"uid": "1f39-35"
"uid": "ff97-35"
},
{
"uid": "1f39-43"
"uid": "ff97-43"
},
{
"uid": "1f39-47"
"uid": "ff97-47"
}
]
},
"1f39-35": {
"ff97-35": {
"id": "/packages/router/src/path.ts",
"moduleParts": {
"index.production.js": "1f39-36"
"index.production.js": "ff97-36"
},
"imported": [
{
"uid": "1f39-33"
"uid": "ff97-33"
}

@@ -210,16 +210,16 @@ ],

{
"uid": "1f39-49"
"uid": "ff97-49"
},
{
"uid": "1f39-39"
"uid": "ff97-39"
},
{
"uid": "1f39-47"
"uid": "ff97-47"
}
]
},
"1f39-37": {
"ff97-37": {
"id": "/packages/router/src/qss.ts",
"moduleParts": {
"index.production.js": "1f39-38"
"index.production.js": "ff97-38"
},

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

{
"uid": "1f39-49"
"uid": "ff97-49"
},
{
"uid": "1f39-45"
"uid": "ff97-45"
}
]
},
"1f39-39": {
"ff97-39": {
"id": "/packages/router/src/route.ts",
"moduleParts": {
"index.production.js": "1f39-40"
"index.production.js": "ff97-40"
},
"imported": [
{
"uid": "1f39-29"
"uid": "ff97-29"
},
{
"uid": "1f39-35"
"uid": "ff97-35"
}

@@ -252,10 +252,10 @@ ],

{
"uid": "1f39-49"
"uid": "ff97-49"
}
]
},
"1f39-41": {
"ff97-41": {
"id": "/packages/store/build/esm/index.js",
"moduleParts": {
"index.production.js": "1f39-42"
"index.production.js": "ff97-42"
},

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

{
"uid": "1f39-43"
"uid": "ff97-43"
},
{
"uid": "1f39-47"
"uid": "ff97-47"
}
]
},
"1f39-43": {
"ff97-43": {
"id": "/packages/router/src/routeMatch.ts",
"moduleParts": {
"index.production.js": "1f39-44"
"index.production.js": "ff97-44"
},
"imported": [
{
"uid": "1f39-41"
"uid": "ff97-41"
},
{
"uid": "1f39-33"
"uid": "ff97-33"
}

@@ -288,17 +288,17 @@ ],

{
"uid": "1f39-49"
"uid": "ff97-49"
},
{
"uid": "1f39-47"
"uid": "ff97-47"
}
]
},
"1f39-45": {
"ff97-45": {
"id": "/packages/router/src/searchParams.ts",
"moduleParts": {
"index.production.js": "1f39-46"
"index.production.js": "ff97-46"
},
"imported": [
{
"uid": "1f39-37"
"uid": "ff97-37"
}

@@ -308,35 +308,35 @@ ],

{
"uid": "1f39-49"
"uid": "ff97-49"
},
{
"uid": "1f39-47"
"uid": "ff97-47"
}
]
},
"1f39-47": {
"ff97-47": {
"id": "/packages/router/src/router.ts",
"moduleParts": {
"index.production.js": "1f39-48"
"index.production.js": "ff97-48"
},
"imported": [
{
"uid": "1f39-41"
"uid": "ff97-41"
},
{
"uid": "1f39-29"
"uid": "ff97-29"
},
{
"uid": "1f39-35"
"uid": "ff97-35"
},
{
"uid": "1f39-43"
"uid": "ff97-43"
},
{
"uid": "1f39-45"
"uid": "ff97-45"
},
{
"uid": "1f39-33"
"uid": "ff97-33"
},
{
"uid": "1f39-31"
"uid": "ff97-31"
}

@@ -346,47 +346,47 @@ ],

{
"uid": "1f39-49"
"uid": "ff97-49"
}
]
},
"1f39-49": {
"ff97-49": {
"id": "/packages/router/src/index.ts",
"moduleParts": {
"index.production.js": "1f39-50"
"index.production.js": "ff97-50"
},
"imported": [
{
"uid": "1f39-29"
"uid": "ff97-29"
},
{
"uid": "1f39-31"
"uid": "ff97-31"
},
{
"uid": "1f39-51"
"uid": "ff97-51"
},
{
"uid": "1f39-52"
"uid": "ff97-52"
},
{
"uid": "1f39-35"
"uid": "ff97-35"
},
{
"uid": "1f39-37"
"uid": "ff97-37"
},
{
"uid": "1f39-39"
"uid": "ff97-39"
},
{
"uid": "1f39-53"
"uid": "ff97-53"
},
{
"uid": "1f39-43"
"uid": "ff97-43"
},
{
"uid": "1f39-47"
"uid": "ff97-47"
},
{
"uid": "1f39-45"
"uid": "ff97-45"
},
{
"uid": "1f39-33"
"uid": "ff97-33"
}

@@ -397,3 +397,3 @@ ],

},
"1f39-51": {
"ff97-51": {
"id": "/packages/router/src/frameworks.ts",

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

{
"uid": "1f39-49"
"uid": "ff97-49"
}
]
},
"1f39-52": {
"ff97-52": {
"id": "/packages/router/src/link.ts",

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

{
"uid": "1f39-49"
"uid": "ff97-49"
}
]
},
"1f39-53": {
"ff97-53": {
"id": "/packages/router/src/routeInfo.ts",

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

{
"uid": "1f39-49"
"uid": "ff97-49"
}

@@ -429,0 +429,0 @@ ]

@@ -323,3 +323,3 @@ /**

}
type RouteOptions<TParentRoute extends AnyRoute = AnyRoute, TCustomId extends string = string, TPath extends string = string, TParentSearchSchema extends {} = {}, TSearchSchema extends AnySearchSchema = {}, TFullSearchSchema extends AnySearchSchema = TSearchSchema, TParentParams extends AnyPathParams = {}, TParams extends Record<ParsePathParams<TPath>, unknown> = Record<ParsePathParams<TPath>, unknown>, TAllParams extends AnyPathParams = {}, TParentContext extends AnyContext = AnyContext, TAllParentContext extends AnyContext = AnyContext, TRouteContext extends AnyContext = AnyContext, TContext extends AnyContext = TRouteContext> = RouteOptionsBase<TCustomId, TPath> & FrameworkRouteOptions & {
type RouteOptions<TParentRoute extends AnyRoute = AnyRoute, TCustomId extends string = string, TPath extends string = string, TParentSearchSchema extends {} = {}, TSearchSchema extends AnySearchSchema = {}, TFullSearchSchema extends AnySearchSchema = TSearchSchema, TParentParams extends AnyPathParams = {}, TParams extends Record<ParsePathParams<TPath>, any> = Record<ParsePathParams<TPath>, string>, TAllParams = TParams, TParentContext extends AnyContext = AnyContext, TAllParentContext extends AnyContext = AnyContext, TRouteContext extends AnyContext = AnyContext, TContext extends AnyContext = TRouteContext, TStringifiedParams = unknown> = RouteOptionsBase<TCustomId, TPath> & FrameworkRouteOptions & {
getParentRoute: () => TParentRoute;

@@ -361,7 +361,7 @@ caseSensitive?: boolean;

} & ({
parseParams?: (rawParams: IsAny<TPath, any, Record<ParsePathParams<TPath>, string>>) => TParams extends Record<string, any> ? TParams : 'parseParams must return a Record<string, any>';
stringifyParams?: (params: NoInfer<TParams>) => TStringifiedParams;
} | {
stringifyParams?: never;
parseParams?: never;
stringifyParams?: never;
} | {
parseParams: (rawParams: IsAny<TPath, any, Record<ParsePathParams<TPath>, string>>) => TParams;
stringifyParams: (params: NoInfer<TParams>) => Record<ParsePathParams<TPath>, string>;
}) & (PickUnsafe<TParentParams, ParsePathParams<TPath>> extends never ? {} : 'Cannot redefined path params in child routes!');

@@ -380,4 +380,4 @@ type SearchSchemaValidator<TReturn, TParentSchema> = SearchSchemaValidatorObj<TReturn, TParentSchema> | SearchSchemaValidatorFn<TReturn, TParentSchema>;

};
type OnLoadFn<TSearchSchema extends AnySearchSchema = {}, TFullSearchSchema extends AnySearchSchema = {}, TAllParams extends AnyPathParams = {}, TContext extends AnyContext = AnyContext, TAllContext extends AnyContext = AnyContext> = (loaderContext: LoaderContext<TSearchSchema, TFullSearchSchema, TAllParams, TContext, TAllContext>) => Promise<any> | void;
interface LoaderContext<TSearchSchema extends AnySearchSchema = {}, TFullSearchSchema extends AnySearchSchema = {}, TAllParams extends AnyPathParams = {}, TContext extends AnyContext = AnyContext, TAllContext extends AnyContext = AnyContext> {
type OnLoadFn<TSearchSchema extends AnySearchSchema = {}, TFullSearchSchema extends AnySearchSchema = {}, TAllParams = {}, TContext extends AnyContext = AnyContext, TAllContext extends AnyContext = AnyContext> = (loaderContext: LoaderContext<TSearchSchema, TFullSearchSchema, TAllParams, TContext, TAllContext>) => Promise<any> | void;
interface LoaderContext<TSearchSchema extends AnySearchSchema = {}, TFullSearchSchema extends AnySearchSchema = {}, TAllParams = {}, TContext extends AnyContext = AnyContext, TAllContext extends AnyContext = AnyContext> {
params: TAllParams;

@@ -410,3 +410,3 @@ routeSearch: TSearchSchema;

type MergeFromParent<T, U> = IsAny<T, U, T & U>;
declare class Route<TParentRoute extends AnyRoute = AnyRoute, TPath extends string = string, TFullPath extends ResolveFullPath<TParentRoute, TPath> = ResolveFullPath<TParentRoute, TPath>, TCustomId extends string = string, TId extends ResolveId<TParentRoute, TCustomId, TPath> = ResolveId<TParentRoute, TCustomId, TPath>, TSearchSchema extends AnySearchSchema = {}, TFullSearchSchema extends AnySearchSchema = ResolveFullSearchSchema<TParentRoute, TSearchSchema>, TParams extends Record<ParsePathParams<TPath>, unknown> = Record<ParsePathParams<TPath>, string>, TAllParams extends MergeFromParent<TParentRoute['__types']['allParams'], TParams> = MergeFromParent<TParentRoute['__types']['allParams'], TParams>, TParentContext extends TParentRoute['__types']['routeContext'] = TParentRoute['__types']['routeContext'], TAllParentContext extends TParentRoute['__types']['context'] = TParentRoute['__types']['context'], TRouteContext extends AnyContext = AnyContext, TContext extends MergeFromParent<TParentRoute['__types']['context'], TRouteContext> = MergeFromParent<TParentRoute['__types']['context'], TRouteContext>, TRouterContext extends AnyContext = AnyContext, TChildren extends unknown = unknown, TRoutesInfo extends DefaultRoutesInfo = DefaultRoutesInfo> {
declare class Route<TParentRoute extends AnyRoute = AnyRoute, TPath extends string = string, TFullPath extends ResolveFullPath<TParentRoute, TPath> = ResolveFullPath<TParentRoute, TPath>, TCustomId extends string = string, TId extends ResolveId<TParentRoute, TCustomId, TPath> = ResolveId<TParentRoute, TCustomId, TPath>, TSearchSchema extends AnySearchSchema = {}, TFullSearchSchema extends AnySearchSchema = ResolveFullSearchSchema<TParentRoute, TSearchSchema>, TParams extends Record<ParsePathParams<TPath>, any> = Record<ParsePathParams<TPath>, string>, TAllParams extends MergeFromParent<TParentRoute['__types']['allParams'], TParams> = MergeFromParent<TParentRoute['__types']['allParams'], TParams>, TParentContext extends TParentRoute['__types']['routeContext'] = TParentRoute['__types']['routeContext'], TAllParentContext extends TParentRoute['__types']['context'] = TParentRoute['__types']['context'], TRouteContext extends AnyContext = AnyContext, TContext extends MergeFromParent<TParentRoute['__types']['context'], TRouteContext> = MergeFromParent<TParentRoute['__types']['context'], TRouteContext>, TRouterContext extends AnyContext = AnyContext, TChildren extends unknown = unknown, TRoutesInfo extends DefaultRoutesInfo = DefaultRoutesInfo> {
__types: {

@@ -449,4 +449,4 @@ parentRoute: TParentRoute;

declare class RootRoute<TSearchSchema extends AnySearchSchema = {}, TContext extends AnyContext = AnyContext, TRouterContext extends AnyContext = AnyContext> extends Route<any, '/', '/', string, RootRouteId, TSearchSchema, TSearchSchema, {}, {}, TRouterContext, TRouterContext, TContext, MergeFromParent<TRouterContext, TContext>, TRouterContext> {
constructor(options?: Omit<RouteOptions<AnyRoute, RootRouteId, '', {}, TSearchSchema, NoInfer<TSearchSchema>, {}, TRouterContext, TRouterContext, TContext, NoInfer<TContext>>, 'path' | 'id' | 'getParentRoute' | 'caseSensitive'>);
static withRouterContext: <TRouterContext_1 extends AnyContext>() => <TSearchSchema_1 extends AnySearchSchema = {}, TContext_1 extends AnyContext = AnyContext>(options?: Omit<RouteOptions<AnyRoute, "__root__", "", {}, TSearchSchema_1, NoInfer<TSearchSchema_1>, {}, TRouterContext_1, TRouterContext_1, TContext_1, TRouterContext_1 & TContext_1, AnyContext, AnyContext>, "caseSensitive" | "id" | "path" | "getParentRoute"> | undefined) => RootRoute<TSearchSchema_1, TContext_1, TRouterContext_1>;
constructor(options?: Omit<RouteOptions<AnyRoute, RootRouteId, '', {}, TSearchSchema, NoInfer<TSearchSchema>, {}, TRouterContext, TRouterContext, TContext, NoInfer<TContext>>, 'path' | 'id' | 'getParentRoute' | 'caseSensitive' | 'parseParams' | 'stringifyParams'>);
static withRouterContext: <TRouterContext_1 extends AnyContext>() => <TSearchSchema_1 extends AnySearchSchema = {}, TContext_1 extends AnyContext = AnyContext>(options?: Omit<RouteOptions<AnyRoute, "__root__", "", {}, TSearchSchema_1, NoInfer<TSearchSchema_1>, {}, TRouterContext_1, TRouterContext_1, TContext_1, TRouterContext_1 & TContext_1, AnyContext, AnyContext, unknown>, "caseSensitive" | "id" | "path" | "getParentRoute"> | undefined) => RootRoute<TSearchSchema_1, TContext_1, TRouterContext_1>;
}

@@ -453,0 +453,0 @@ type ResolveFullPath<TParentRoute extends AnyRoute, TPath extends string, TPrefixed extends RoutePrefix<TParentRoute['fullPath'], TPath> = RoutePrefix<TParentRoute['fullPath'], TPath>> = TPrefixed extends RootRouteId ? '/' : TrimPathRight<`${TPrefixed}`>;

{
"name": "@tanstack/router",
"author": "Tanner Linsley",
"version": "0.0.1-beta.65",
"version": "0.0.1-beta.66",
"license": "MIT",

@@ -6,0 +6,0 @@ "repository": "tanstack/router",

@@ -46,7 +46,7 @@ import { GetFrameworkGeneric } from './frameworks'

TParentParams extends AnyPathParams = {},
TParams extends Record<ParsePathParams<TPath>, unknown> = Record<
TParams extends Record<ParsePathParams<TPath>, any> = Record<
ParsePathParams<TPath>,
unknown
string
>,
TAllParams extends AnyPathParams = {},
TAllParams = TParams,
TParentContext extends AnyContext = AnyContext,

@@ -56,2 +56,3 @@ TAllParentContext extends AnyContext = AnyContext,

TContext extends AnyContext = TRouteContext,
TStringifiedParams = unknown,
> = RouteOptionsBase<TCustomId, TPath> &

@@ -128,14 +129,14 @@ FrameworkRouteOptions & {

| {
parseParams?: never
stringifyParams?: never
}
| {
// Parse params optionally receives path params as strings and returns them in a parsed format (like a number or boolean)
parseParams: (
parseParams?: (
rawParams: IsAny<TPath, any, Record<ParsePathParams<TPath>, string>>,
) => TParams
stringifyParams: (
params: NoInfer<TParams>,
) => Record<ParsePathParams<TPath>, string>
) => TParams extends Record<string, any>
? TParams
: 'parseParams must return a Record<string, any>'
stringifyParams?: (params: NoInfer<TParams>) => TStringifiedParams
}
| {
stringifyParams?: never
parseParams?: never
}
) &

@@ -178,3 +179,3 @@ (PickUnsafe<TParentParams, ParsePathParams<TPath>> extends never // Detect if an existing path param is being redefined

TFullSearchSchema extends AnySearchSchema = {},
TAllParams extends AnyPathParams = {},
TAllParams = {},
TContext extends AnyContext = AnyContext,

@@ -195,3 +196,3 @@ TAllContext extends AnyContext = AnyContext,

TFullSearchSchema extends AnySearchSchema = {},
TAllParams extends AnyPathParams = {},
TAllParams = {},
TContext extends AnyContext = AnyContext,

@@ -281,3 +282,3 @@ TAllContext extends AnyContext = AnyContext,

>,
TParams extends Record<ParsePathParams<TPath>, unknown> = Record<
TParams extends Record<ParsePathParams<TPath>, any> = Record<
ParsePathParams<TPath>,

@@ -527,3 +528,8 @@ string

>,
'path' | 'id' | 'getParentRoute' | 'caseSensitive'
| 'path'
| 'id'
| 'getParentRoute'
| 'caseSensitive'
| 'parseParams'
| 'stringifyParams'
>,

@@ -530,0 +536,0 @@ ) {

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

findInRouteTree([this.routeTree])
findInRouteTree([this.routeTree as any])

@@ -674,0 +674,0 @@ return matches

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