Socket
Socket
Sign inDemoInstall

@tanstack/router

Package Overview
Dependencies
Maintainers
2
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.113 to 0.0.1-beta.114

302

build/stats-react.json

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

"name": "tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js",
"uid": "5eea-49"
"uid": "2184-49"
},
{
"name": "tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js",
"uid": "5eea-51"
"uid": "2184-51"
}

@@ -30,39 +30,39 @@ ]

{
"uid": "5eea-53",
"uid": "2184-53",
"name": "history.ts"
},
{
"uid": "5eea-55",
"uid": "2184-55",
"name": "utils.ts"
},
{
"uid": "5eea-57",
"uid": "2184-57",
"name": "path.ts"
},
{
"uid": "5eea-59",
"uid": "2184-59",
"name": "qss.ts"
},
{
"uid": "5eea-67",
"uid": "2184-67",
"name": "react.tsx"
},
{
"uid": "5eea-69",
"uid": "2184-69",
"name": "route.ts"
},
{
"uid": "5eea-71",
"uid": "2184-71",
"name": "searchParams.ts"
},
{
"uid": "5eea-73",
"uid": "2184-73",
"name": "router.ts"
},
{
"uid": "5eea-75",
"uid": "2184-75",
"name": "routeMatch.ts"
},
{
"uid": "5eea-77",
"uid": "2184-77",
"name": "index.ts"

@@ -74,7 +74,7 @@ }

"name": "store/build/esm/index.js",
"uid": "5eea-63"
"uid": "2184-63"
},
{
"name": "react-store/build/esm/index.js",
"uid": "5eea-65"
"uid": "2184-65"
}

@@ -84,3 +84,3 @@ ]

{
"uid": "5eea-61",
"uid": "2184-61",
"name": "\u0000rollupPluginBabelHelpers.js"

@@ -94,98 +94,98 @@ }

"nodeParts": {
"5eea-49": {
"2184-49": {
"renderedLength": 199,
"gzipLength": 134,
"brotliLength": 0,
"mainUid": "5eea-48"
"mainUid": "2184-48"
},
"5eea-51": {
"2184-51": {
"renderedLength": 48,
"gzipLength": 65,
"brotliLength": 0,
"mainUid": "5eea-50"
"mainUid": "2184-50"
},
"5eea-53": {
"2184-53": {
"renderedLength": 5643,
"gzipLength": 1404,
"brotliLength": 0,
"mainUid": "5eea-52"
"mainUid": "2184-52"
},
"5eea-55": {
"2184-55": {
"renderedLength": 2821,
"gzipLength": 990,
"brotliLength": 0,
"mainUid": "5eea-54"
"mainUid": "2184-54"
},
"5eea-57": {
"2184-57": {
"renderedLength": 6028,
"gzipLength": 1423,
"brotliLength": 0,
"mainUid": "5eea-56"
"mainUid": "2184-56"
},
"5eea-59": {
"2184-59": {
"renderedLength": 1395,
"gzipLength": 558,
"brotliLength": 0,
"mainUid": "5eea-58"
"mainUid": "2184-58"
},
"5eea-61": {
"2184-61": {
"renderedLength": 457,
"gzipLength": 241,
"brotliLength": 0,
"mainUid": "5eea-60"
"mainUid": "2184-60"
},
"5eea-63": {
"2184-63": {
"renderedLength": 1459,
"gzipLength": 543,
"brotliLength": 0,
"mainUid": "5eea-62"
"mainUid": "2184-62"
},
"5eea-65": {
"2184-65": {
"renderedLength": 1066,
"gzipLength": 481,
"brotliLength": 0,
"mainUid": "5eea-64"
"mainUid": "2184-64"
},
"5eea-67": {
"2184-67": {
"renderedLength": 14227,
"gzipLength": 3360,
"brotliLength": 0,
"mainUid": "5eea-66"
"mainUid": "2184-66"
},
"5eea-69": {
"2184-69": {
"renderedLength": 3556,
"gzipLength": 903,
"brotliLength": 0,
"mainUid": "5eea-68"
"mainUid": "2184-68"
},
"5eea-71": {
"2184-71": {
"renderedLength": 1387,
"gzipLength": 483,
"brotliLength": 0,
"mainUid": "5eea-70"
"mainUid": "2184-70"
},
"5eea-73": {
"2184-73": {
"renderedLength": 27746,
"gzipLength": 6708,
"brotliLength": 0,
"mainUid": "5eea-72"
"mainUid": "2184-72"
},
"5eea-75": {
"2184-75": {
"renderedLength": 8914,
"gzipLength": 1932,
"brotliLength": 0,
"mainUid": "5eea-74"
"mainUid": "2184-74"
},
"5eea-77": {
"2184-77": {
"renderedLength": 0,
"gzipLength": 0,
"brotliLength": 0,
"mainUid": "5eea-76"
"mainUid": "2184-76"
}
},
"nodeMetas": {
"5eea-48": {
"2184-48": {
"id": "/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js",
"moduleParts": {
"index.production.js": "5eea-49"
"index.production.js": "2184-49"
},

@@ -195,19 +195,19 @@ "imported": [],

{
"uid": "5eea-76"
"uid": "2184-76"
},
{
"uid": "5eea-68"
"uid": "2184-68"
},
{
"uid": "5eea-72"
"uid": "2184-72"
},
{
"uid": "5eea-66"
"uid": "2184-66"
}
]
},
"5eea-50": {
"2184-50": {
"id": "/node_modules/.pnpm/tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js",
"moduleParts": {
"index.production.js": "5eea-51"
"index.production.js": "2184-51"
},

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

{
"uid": "5eea-76"
"uid": "2184-76"
},
{
"uid": "5eea-66"
"uid": "2184-66"
}
]
},
"5eea-52": {
"2184-52": {
"id": "/packages/router/src/history.ts",
"moduleParts": {
"index.production.js": "5eea-53"
"index.production.js": "2184-53"
},

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

{
"uid": "5eea-76"
"uid": "2184-76"
},
{
"uid": "5eea-72"
"uid": "2184-72"
}
]
},
"5eea-54": {
"2184-54": {
"id": "/packages/router/src/utils.ts",
"moduleParts": {
"index.production.js": "5eea-55"
"index.production.js": "2184-55"
},

@@ -249,26 +249,26 @@ "imported": [],

{
"uid": "5eea-76"
"uid": "2184-76"
},
{
"uid": "5eea-56"
"uid": "2184-56"
},
{
"uid": "5eea-74"
"uid": "2184-74"
},
{
"uid": "5eea-72"
"uid": "2184-72"
},
{
"uid": "5eea-66"
"uid": "2184-66"
}
]
},
"5eea-56": {
"2184-56": {
"id": "/packages/router/src/path.ts",
"moduleParts": {
"index.production.js": "5eea-57"
"index.production.js": "2184-57"
},
"imported": [
{
"uid": "5eea-54"
"uid": "2184-54"
}

@@ -278,16 +278,16 @@ ],

{
"uid": "5eea-76"
"uid": "2184-76"
},
{
"uid": "5eea-68"
"uid": "2184-68"
},
{
"uid": "5eea-72"
"uid": "2184-72"
}
]
},
"5eea-58": {
"2184-58": {
"id": "/packages/router/src/qss.ts",
"moduleParts": {
"index.production.js": "5eea-59"
"index.production.js": "2184-59"
},

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

{
"uid": "5eea-76"
"uid": "2184-76"
},
{
"uid": "5eea-70"
"uid": "2184-70"
}
]
},
"5eea-60": {
"2184-60": {
"id": "\u0000rollupPluginBabelHelpers.js",
"moduleParts": {
"index.production.js": "5eea-61"
"index.production.js": "2184-61"
},

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

{
"uid": "5eea-66"
"uid": "2184-66"
}
]
},
"5eea-62": {
"2184-62": {
"id": "/packages/store/build/esm/index.js",
"moduleParts": {
"index.production.js": "5eea-63"
"index.production.js": "2184-63"
},

@@ -326,17 +326,17 @@ "imported": [],

{
"uid": "5eea-64"
"uid": "2184-64"
}
]
},
"5eea-64": {
"2184-64": {
"id": "/packages/react-store/build/esm/index.js",
"moduleParts": {
"index.production.js": "5eea-65"
"index.production.js": "2184-65"
},
"imported": [
{
"uid": "5eea-81"
"uid": "2184-81"
},
{
"uid": "5eea-62"
"uid": "2184-62"
}

@@ -346,35 +346,35 @@ ],

{
"uid": "5eea-74"
"uid": "2184-74"
},
{
"uid": "5eea-72"
"uid": "2184-72"
},
{
"uid": "5eea-66"
"uid": "2184-66"
}
]
},
"5eea-66": {
"2184-66": {
"id": "/packages/router/src/react.tsx",
"moduleParts": {
"index.production.js": "5eea-67"
"index.production.js": "2184-67"
},
"imported": [
{
"uid": "5eea-60"
"uid": "2184-60"
},
{
"uid": "5eea-80"
"uid": "2184-80"
},
{
"uid": "5eea-64"
"uid": "2184-64"
},
{
"uid": "5eea-48"
"uid": "2184-48"
},
{
"uid": "5eea-50"
"uid": "2184-50"
},
{
"uid": "5eea-54"
"uid": "2184-54"
}

@@ -384,23 +384,23 @@ ],

{
"uid": "5eea-76"
"uid": "2184-76"
},
{
"uid": "5eea-68"
"uid": "2184-68"
}
]
},
"5eea-68": {
"2184-68": {
"id": "/packages/router/src/route.ts",
"moduleParts": {
"index.production.js": "5eea-69"
"index.production.js": "2184-69"
},
"imported": [
{
"uid": "5eea-48"
"uid": "2184-48"
},
{
"uid": "5eea-56"
"uid": "2184-56"
},
{
"uid": "5eea-66"
"uid": "2184-66"
}

@@ -410,14 +410,14 @@ ],

{
"uid": "5eea-76"
"uid": "2184-76"
}
]
},
"5eea-70": {
"2184-70": {
"id": "/packages/router/src/searchParams.ts",
"moduleParts": {
"index.production.js": "5eea-71"
"index.production.js": "2184-71"
},
"imported": [
{
"uid": "5eea-58"
"uid": "2184-58"
}

@@ -427,35 +427,35 @@ ],

{
"uid": "5eea-76"
"uid": "2184-76"
},
{
"uid": "5eea-72"
"uid": "2184-72"
}
]
},
"5eea-72": {
"2184-72": {
"id": "/packages/router/src/router.ts",
"moduleParts": {
"index.production.js": "5eea-73"
"index.production.js": "2184-73"
},
"imported": [
{
"uid": "5eea-64"
"uid": "2184-64"
},
{
"uid": "5eea-48"
"uid": "2184-48"
},
{
"uid": "5eea-56"
"uid": "2184-56"
},
{
"uid": "5eea-74"
"uid": "2184-74"
},
{
"uid": "5eea-70"
"uid": "2184-70"
},
{
"uid": "5eea-54"
"uid": "2184-54"
},
{
"uid": "5eea-52"
"uid": "2184-52"
}

@@ -465,23 +465,23 @@ ],

{
"uid": "5eea-76"
"uid": "2184-76"
},
{
"uid": "5eea-74"
"uid": "2184-74"
}
]
},
"5eea-74": {
"2184-74": {
"id": "/packages/router/src/routeMatch.ts",
"moduleParts": {
"index.production.js": "5eea-75"
"index.production.js": "2184-75"
},
"imported": [
{
"uid": "5eea-64"
"uid": "2184-64"
},
{
"uid": "5eea-72"
"uid": "2184-72"
},
{
"uid": "5eea-54"
"uid": "2184-54"
}

@@ -491,53 +491,53 @@ ],

{
"uid": "5eea-76"
"uid": "2184-76"
},
{
"uid": "5eea-72"
"uid": "2184-72"
}
]
},
"5eea-76": {
"2184-76": {
"id": "/packages/router/src/index.ts",
"moduleParts": {
"index.production.js": "5eea-77"
"index.production.js": "2184-77"
},
"imported": [
{
"uid": "5eea-48"
"uid": "2184-48"
},
{
"uid": "5eea-50"
"uid": "2184-50"
},
{
"uid": "5eea-52"
"uid": "2184-52"
},
{
"uid": "5eea-78"
"uid": "2184-78"
},
{
"uid": "5eea-56"
"uid": "2184-56"
},
{
"uid": "5eea-58"
"uid": "2184-58"
},
{
"uid": "5eea-68"
"uid": "2184-68"
},
{
"uid": "5eea-79"
"uid": "2184-79"
},
{
"uid": "5eea-74"
"uid": "2184-74"
},
{
"uid": "5eea-72"
"uid": "2184-72"
},
{
"uid": "5eea-70"
"uid": "2184-70"
},
{
"uid": "5eea-54"
"uid": "2184-54"
},
{
"uid": "5eea-66"
"uid": "2184-66"
}

@@ -548,3 +548,3 @@ ],

},
"5eea-78": {
"2184-78": {
"id": "/packages/router/src/link.ts",

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

{
"uid": "5eea-76"
"uid": "2184-76"
}
]
},
"5eea-79": {
"2184-79": {
"id": "/packages/router/src/routeInfo.ts",

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

{
"uid": "5eea-76"
"uid": "2184-76"
}
]
},
"5eea-80": {
"2184-80": {
"id": "react",

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

{
"uid": "5eea-66"
"uid": "2184-66"
}

@@ -583,3 +583,3 @@ ],

},
"5eea-81": {
"2184-81": {
"id": "use-sync-external-store/shim/with-selector",

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

{
"uid": "5eea-64"
"uid": "2184-64"
}

@@ -593,0 +593,0 @@ ],

@@ -1,3 +0,3 @@

import { AnyRoutesInfo, DefaultRoutesInfo, RouteByPath } from './routeInfo';
import { ParsedLocation, LocationState } from './router';
import { AnyRoutesInfo, RouteByPath } from './routeInfo';
import { ParsedLocation, LocationState, RegisteredRoutesInfo } from './router';
import { NoInfer, PickRequired, UnionToIntersection, Updater } from './utils';

@@ -35,6 +35,6 @@ export type LinkInfo = {

} ? never : './' : never) | (TFrom extends `/` ? never : '../') | AllPaths;
export type NavigateOptions<TRoutesInfo extends AnyRoutesInfo = DefaultRoutesInfo, TFrom extends TRoutesInfo['routePaths'] = '/', TTo extends string = ''> = ToOptions<TRoutesInfo, TFrom, TTo> & {
export type NavigateOptions<TRoutesInfo extends AnyRoutesInfo = RegisteredRoutesInfo, TFrom extends TRoutesInfo['routePaths'] = '/', TTo extends string = ''> = ToOptions<TRoutesInfo, TFrom, TTo> & {
replace?: boolean;
};
export type ToOptions<TRoutesInfo extends AnyRoutesInfo = DefaultRoutesInfo, TFrom extends TRoutesInfo['routePaths'] = '/', TTo extends string = '', TResolvedTo = ResolveRelativePath<TFrom, NoInfer<TTo>>> = {
export type ToOptions<TRoutesInfo extends AnyRoutesInfo = RegisteredRoutesInfo, TFrom extends TRoutesInfo['routePaths'] = '/', TTo extends string = '', TResolvedTo = ResolveRelativePath<TFrom, NoInfer<TTo>>> = {
to?: ToPathOption<TRoutesInfo, TFrom, TTo>;

@@ -59,4 +59,4 @@ hash?: Updater<string>;

type ParamsReducer<TFrom, TTo> = TTo | ((current: TFrom) => TTo);
export type ToPathOption<TRoutesInfo extends AnyRoutesInfo = DefaultRoutesInfo, TFrom extends TRoutesInfo['routePaths'] = '/', TTo extends string = ''> = TTo | RelativeToPathAutoComplete<TRoutesInfo['routePaths'], NoInfer<TFrom> extends string ? NoInfer<TFrom> : '', NoInfer<TTo> & string>;
export type ToIdOption<TRoutesInfo extends AnyRoutesInfo = DefaultRoutesInfo, TFrom extends TRoutesInfo['routePaths'] = '/', TTo extends string = ''> = TTo | RelativeToPathAutoComplete<TRoutesInfo['routeIds'], NoInfer<TFrom> extends string ? NoInfer<TFrom> : '', NoInfer<TTo> & string>;
export type ToPathOption<TRoutesInfo extends AnyRoutesInfo = RegisteredRoutesInfo, TFrom extends TRoutesInfo['routePaths'] = '/', TTo extends string = ''> = TTo | RelativeToPathAutoComplete<TRoutesInfo['routePaths'], NoInfer<TFrom> extends string ? NoInfer<TFrom> : '', NoInfer<TTo> & string>;
export type ToIdOption<TRoutesInfo extends AnyRoutesInfo = RegisteredRoutesInfo, TFrom extends TRoutesInfo['routePaths'] = '/', TTo extends string = ''> = TTo | RelativeToPathAutoComplete<TRoutesInfo['routeIds'], NoInfer<TFrom> extends string ? NoInfer<TFrom> : '', NoInfer<TTo> & string>;
export interface ActiveOptions {

@@ -67,3 +67,3 @@ exact?: boolean;

}
export type LinkOptions<TRoutesInfo extends AnyRoutesInfo = DefaultRoutesInfo, TFrom extends TRoutesInfo['routePaths'] = '/', TTo extends string = ''> = NavigateOptions<TRoutesInfo, TFrom, TTo> & {
export type LinkOptions<TRoutesInfo extends AnyRoutesInfo = RegisteredRoutesInfo, TFrom extends TRoutesInfo['routePaths'] = '/', TTo extends string = ''> = NavigateOptions<TRoutesInfo, TFrom, TTo> & {
target?: HTMLAnchorElement['target'];

@@ -70,0 +70,0 @@ activeOptions?: ActiveOptions;

@@ -76,5 +76,5 @@ import * as React from 'react';

}): TSelected;
export declare function useNavigate<TDefaultFrom extends keyof RegisteredRoutesInfo['routesById'] = '/'>(defaultOpts?: {
export declare function useNavigate<TDefaultFrom extends RegisteredRoutesInfo['routePaths'] = '/'>(defaultOpts?: {
from?: TDefaultFrom;
}): <TFrom extends string = TDefaultFrom, TTo extends string = "">(opts?: NavigateOptions<AnyRoutesInfo, TFrom, TTo> | undefined) => Promise<void>;
}): <TFrom extends unknown = TDefaultFrom, TTo extends string = "">(opts?: NavigateOptions<AnyRoutesInfo, TFrom, TTo> | undefined) => Promise<void>;
export declare function useMatchRoute(): <TFrom extends string = "/", TTo extends string = "">(opts: MakeUseMatchRouteOptions<TFrom, TTo>) => any;

@@ -81,0 +81,0 @@ export declare function MatchRoute<TFrom extends string = '/', TTo extends string = ''>(props: MakeMatchRouteOptions<TFrom, TTo>): any;

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

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

import { AnyRoutesInfo, DefaultRoutesInfo, RouteByPath } from './routeInfo'
import { ParsedLocation, LocationState } from './router'
import { ParsedLocation, LocationState, RegisteredRoutesInfo } from './router'
import {

@@ -119,3 +119,3 @@ Expand,

export type NavigateOptions<
TRoutesInfo extends AnyRoutesInfo = DefaultRoutesInfo,
TRoutesInfo extends AnyRoutesInfo = RegisteredRoutesInfo,
TFrom extends TRoutesInfo['routePaths'] = '/',

@@ -129,3 +129,3 @@ TTo extends string = '',

export type ToOptions<
TRoutesInfo extends AnyRoutesInfo = DefaultRoutesInfo,
TRoutesInfo extends AnyRoutesInfo = RegisteredRoutesInfo,
TFrom extends TRoutesInfo['routePaths'] = '/',

@@ -218,3 +218,3 @@ TTo extends string = '',

export type ToPathOption<
TRoutesInfo extends AnyRoutesInfo = DefaultRoutesInfo,
TRoutesInfo extends AnyRoutesInfo = RegisteredRoutesInfo,
TFrom extends TRoutesInfo['routePaths'] = '/',

@@ -231,3 +231,3 @@ TTo extends string = '',

export type ToIdOption<
TRoutesInfo extends AnyRoutesInfo = DefaultRoutesInfo,
TRoutesInfo extends AnyRoutesInfo = RegisteredRoutesInfo,
TFrom extends TRoutesInfo['routePaths'] = '/',

@@ -250,3 +250,3 @@ TTo extends string = '',

export type LinkOptions<
TRoutesInfo extends AnyRoutesInfo = DefaultRoutesInfo,
TRoutesInfo extends AnyRoutesInfo = RegisteredRoutesInfo,
TFrom extends TRoutesInfo['routePaths'] = '/',

@@ -253,0 +253,0 @@ TTo extends string = '',

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

#buildRouteTree = (routeTree: AnyRootRoute) => {
#buildRouteTree = (routeTree: TRouteTree) => {
this.routeTree = routeTree

@@ -1055,0 +1055,0 @@ this.routesById = {} as any

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