@tanstack/router-core 0.0.1-beta.19 → 0.0.1-beta.191
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.
- package/LICENSE +21 -0
- package/build/cjs/defer.js +39 -0
- package/build/cjs/defer.js.map +1 -0
- package/build/cjs/fileRoute.js +29 -0
- package/build/cjs/fileRoute.js.map +1 -0
- package/build/cjs/history.js +228 -0
- package/build/cjs/history.js.map +1 -0
- package/build/cjs/index.js +86 -0
- package/build/cjs/{packages/router-core/src/index.js.map → index.js.map} +1 -1
- package/build/cjs/{packages/router-core/src/path.js → path.js} +45 -56
- package/build/cjs/path.js.map +1 -0
- package/build/cjs/{packages/router-core/src/qss.js → qss.js} +10 -16
- package/build/cjs/qss.js.map +1 -0
- package/build/cjs/route.js +114 -0
- package/build/cjs/route.js.map +1 -0
- package/build/cjs/router.js +1267 -0
- package/build/cjs/router.js.map +1 -0
- package/build/cjs/scroll-restoration.js +139 -0
- package/build/cjs/scroll-restoration.js.map +1 -0
- package/build/cjs/{packages/router-core/src/searchParams.js → searchParams.js} +32 -19
- package/build/cjs/searchParams.js.map +1 -0
- package/build/cjs/{packages/router-core/src/utils.js → utils.js} +69 -64
- package/build/cjs/utils.js.map +1 -0
- package/build/esm/index.js +1746 -2121
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +59 -49
- package/build/stats-react.json +197 -211
- package/build/types/defer.d.ts +19 -0
- package/build/types/fileRoute.d.ts +35 -0
- package/build/types/history.d.ts +36 -0
- package/build/types/index.d.ts +13 -609
- package/build/types/link.d.ts +96 -0
- package/build/types/path.d.ts +16 -0
- package/build/types/qss.d.ts +2 -0
- package/build/types/route.d.ts +251 -0
- package/build/types/routeInfo.d.ts +22 -0
- package/build/types/router.d.ts +260 -0
- package/build/types/scroll-restoration.d.ts +6 -0
- package/build/types/searchParams.d.ts +5 -0
- package/build/types/utils.d.ts +44 -0
- package/build/umd/index.development.js +1978 -2243
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +13 -2
- package/build/umd/index.production.js.map +1 -1
- package/package.json +11 -7
- package/src/defer.ts +55 -0
- package/src/fileRoute.ts +161 -0
- package/src/history.ts +300 -0
- package/src/index.ts +5 -10
- package/src/link.ts +136 -125
- package/src/path.ts +37 -17
- package/src/qss.ts +1 -2
- package/src/route.ts +948 -218
- package/src/routeInfo.ts +45 -211
- package/src/router.ts +1778 -1075
- package/src/scroll-restoration.ts +179 -0
- package/src/searchParams.ts +31 -9
- package/src/utils.ts +84 -49
- package/build/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -33
- package/build/cjs/_virtual/_rollupPluginBabelHelpers.js.map +0 -1
- package/build/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +0 -33
- package/build/cjs/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
- package/build/cjs/node_modules/history/index.js +0 -815
- package/build/cjs/node_modules/history/index.js.map +0 -1
- package/build/cjs/node_modules/tiny-invariant/dist/esm/tiny-invariant.js +0 -30
- package/build/cjs/node_modules/tiny-invariant/dist/esm/tiny-invariant.js.map +0 -1
- package/build/cjs/packages/router-core/src/index.js +0 -58
- package/build/cjs/packages/router-core/src/path.js.map +0 -1
- package/build/cjs/packages/router-core/src/qss.js.map +0 -1
- package/build/cjs/packages/router-core/src/route.js +0 -147
- package/build/cjs/packages/router-core/src/route.js.map +0 -1
- package/build/cjs/packages/router-core/src/routeConfig.js +0 -69
- package/build/cjs/packages/router-core/src/routeConfig.js.map +0 -1
- package/build/cjs/packages/router-core/src/routeMatch.js +0 -220
- package/build/cjs/packages/router-core/src/routeMatch.js.map +0 -1
- package/build/cjs/packages/router-core/src/router.js +0 -870
- package/build/cjs/packages/router-core/src/router.js.map +0 -1
- package/build/cjs/packages/router-core/src/searchParams.js.map +0 -1
- package/build/cjs/packages/router-core/src/utils.js.map +0 -1
- package/src/frameworks.ts +0 -11
- package/src/routeConfig.ts +0 -511
- package/src/routeMatch.ts +0 -312
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* router-core
|
|
2
|
+
* @tanstack/router-core/src/index.ts
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) TanStack
|
|
5
5
|
*
|
|
@@ -12,114 +12,119 @@
|
|
|
12
12
|
|
|
13
13
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
14
14
|
|
|
15
|
-
// type
|
|
16
|
-
|
|
17
|
-
//
|
|
18
|
-
|
|
19
|
-
//
|
|
15
|
+
// type Compute<T> = { [K in keyof T]: T[K] } | never
|
|
16
|
+
|
|
17
|
+
// type AllKeys<T> = T extends any ? keyof T : never
|
|
18
|
+
|
|
19
|
+
// export type MergeUnion<T, Keys extends keyof T = keyof T> = Compute<
|
|
20
|
+
// {
|
|
21
|
+
// [K in Keys]: T[Keys]
|
|
22
|
+
// } & {
|
|
23
|
+
// [K in AllKeys<T>]?: T extends any
|
|
24
|
+
// ? K extends keyof T
|
|
25
|
+
// ? T[K]
|
|
26
|
+
// : never
|
|
27
|
+
// : never
|
|
28
|
+
// }
|
|
29
|
+
// >
|
|
30
|
+
function last(arr) {
|
|
31
|
+
return arr[arr.length - 1];
|
|
32
|
+
}
|
|
33
|
+
function isFunction(d) {
|
|
34
|
+
return typeof d === 'function';
|
|
35
|
+
}
|
|
36
|
+
function functionalUpdate(updater, previous) {
|
|
37
|
+
if (isFunction(updater)) {
|
|
38
|
+
return updater(previous);
|
|
39
|
+
}
|
|
40
|
+
return updater;
|
|
41
|
+
}
|
|
42
|
+
function pick(parent, keys) {
|
|
43
|
+
return keys.reduce((obj, key) => {
|
|
44
|
+
obj[key] = parent[key];
|
|
45
|
+
return obj;
|
|
46
|
+
}, {});
|
|
47
|
+
}
|
|
20
48
|
|
|
21
49
|
/**
|
|
22
50
|
* This function returns `a` if `b` is deeply equal.
|
|
23
51
|
* If not, it will replace any deeply equal children of `b` with those of `a`.
|
|
24
|
-
* This can be used for structural sharing between JSON values for example.
|
|
52
|
+
* This can be used for structural sharing between immutable JSON values for example.
|
|
53
|
+
* Do not use this with signals
|
|
25
54
|
*/
|
|
26
|
-
function replaceEqualDeep(prev,
|
|
27
|
-
if (prev ===
|
|
55
|
+
function replaceEqualDeep(prev, _next) {
|
|
56
|
+
if (prev === _next) {
|
|
28
57
|
return prev;
|
|
29
58
|
}
|
|
30
|
-
|
|
59
|
+
const next = _next;
|
|
31
60
|
const array = Array.isArray(prev) && Array.isArray(next);
|
|
32
|
-
|
|
33
61
|
if (array || isPlainObject(prev) && isPlainObject(next)) {
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
62
|
+
const prevSize = array ? prev.length : Object.keys(prev).length;
|
|
63
|
+
const nextItems = array ? next : Object.keys(next);
|
|
64
|
+
const nextSize = nextItems.length;
|
|
37
65
|
const copy = array ? [] : {};
|
|
38
66
|
let equalItems = 0;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
const key = array ? i : bItems[i];
|
|
67
|
+
for (let i = 0; i < nextSize; i++) {
|
|
68
|
+
const key = array ? i : nextItems[i];
|
|
42
69
|
copy[key] = replaceEqualDeep(prev[key], next[key]);
|
|
43
|
-
|
|
44
70
|
if (copy[key] === prev[key]) {
|
|
45
71
|
equalItems++;
|
|
46
72
|
}
|
|
47
73
|
}
|
|
48
|
-
|
|
49
|
-
return aSize === bSize && equalItems === aSize ? prev : copy;
|
|
74
|
+
return prevSize === nextSize && equalItems === prevSize ? prev : copy;
|
|
50
75
|
}
|
|
51
|
-
|
|
52
76
|
return next;
|
|
53
|
-
}
|
|
77
|
+
}
|
|
54
78
|
|
|
79
|
+
// Copied from: https://github.com/jonschlinkert/is-plain-object
|
|
55
80
|
function isPlainObject(o) {
|
|
56
81
|
if (!hasObjectPrototype(o)) {
|
|
57
82
|
return false;
|
|
58
|
-
}
|
|
59
|
-
|
|
83
|
+
}
|
|
60
84
|
|
|
85
|
+
// If has modified constructor
|
|
61
86
|
const ctor = o.constructor;
|
|
62
|
-
|
|
63
87
|
if (typeof ctor === 'undefined') {
|
|
64
88
|
return true;
|
|
65
|
-
}
|
|
66
|
-
|
|
89
|
+
}
|
|
67
90
|
|
|
91
|
+
// If has modified prototype
|
|
68
92
|
const prot = ctor.prototype;
|
|
69
|
-
|
|
70
93
|
if (!hasObjectPrototype(prot)) {
|
|
71
94
|
return false;
|
|
72
|
-
}
|
|
73
|
-
|
|
95
|
+
}
|
|
74
96
|
|
|
97
|
+
// If constructor does not have an Object-specific method
|
|
75
98
|
if (!prot.hasOwnProperty('isPrototypeOf')) {
|
|
76
99
|
return false;
|
|
77
|
-
}
|
|
78
|
-
|
|
100
|
+
}
|
|
79
101
|
|
|
102
|
+
// Most likely a plain Object
|
|
80
103
|
return true;
|
|
81
104
|
}
|
|
82
|
-
|
|
83
105
|
function hasObjectPrototype(o) {
|
|
84
106
|
return Object.prototype.toString.call(o) === '[object Object]';
|
|
85
107
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
function warning(cond, message) {
|
|
91
|
-
if (cond) {
|
|
92
|
-
if (typeof console !== 'undefined') console.warn(message);
|
|
93
|
-
|
|
94
|
-
try {
|
|
95
|
-
throw new Error(message);
|
|
96
|
-
} catch (_unused) {}
|
|
108
|
+
function partialDeepEqual(a, b) {
|
|
109
|
+
if (a === b) {
|
|
110
|
+
return true;
|
|
97
111
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
function isFunction(d) {
|
|
103
|
-
return typeof d === 'function';
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
function functionalUpdate(updater, previous) {
|
|
107
|
-
if (isFunction(updater)) {
|
|
108
|
-
return updater(previous);
|
|
112
|
+
if (typeof a !== typeof b) {
|
|
113
|
+
return false;
|
|
109
114
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}, {});
|
|
115
|
+
if (isPlainObject(a) && isPlainObject(b)) {
|
|
116
|
+
return !Object.keys(b).some(key => !partialDeepEqual(a[key], b[key]));
|
|
117
|
+
}
|
|
118
|
+
if (Array.isArray(a) && Array.isArray(b)) {
|
|
119
|
+
return a.length === b.length && a.every((item, index) => partialDeepEqual(item, b[index]));
|
|
120
|
+
}
|
|
121
|
+
return false;
|
|
118
122
|
}
|
|
119
123
|
|
|
120
124
|
exports.functionalUpdate = functionalUpdate;
|
|
125
|
+
exports.isPlainObject = isPlainObject;
|
|
121
126
|
exports.last = last;
|
|
127
|
+
exports.partialDeepEqual = partialDeepEqual;
|
|
122
128
|
exports.pick = pick;
|
|
123
129
|
exports.replaceEqualDeep = replaceEqualDeep;
|
|
124
|
-
exports.warning = warning;
|
|
125
130
|
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../src/utils.ts"],"sourcesContent":["export type NoInfer<T> = [T][T extends any ? 0 : never]\nexport type IsAny<T, Y, N> = 1 extends 0 & T ? Y : N\nexport type IsAnyBoolean<T> = 1 extends 0 & T ? true : false\nexport type IsKnown<T, Y, N> = unknown extends T ? N : Y\nexport type PickAsRequired<T, K extends keyof T> = Omit<T, K> &\n Required<Pick<T, K>>\nexport type PickAsPartial<T, K extends keyof T> = Omit<T, K> &\n Partial<Pick<T, K>>\nexport type PickUnsafe<T, K> = K extends keyof T ? Pick<T, K> : never\nexport type PickExtra<T, K> = {\n [TKey in keyof K as string extends TKey\n ? never\n : TKey extends keyof T\n ? never\n : TKey]: K[TKey]\n}\n\nexport type PickRequired<T> = {\n [K in keyof T as undefined extends T[K] ? never : K]: T[K]\n}\n\nexport type Expand<T> = T extends object\n ? T extends infer O\n ? { [K in keyof O]: O[K] }\n : never\n : T\n\nexport type UnionToIntersection<U> = (\n U extends any ? (k: U) => void : never\n) extends (k: infer I) => any\n ? I\n : never\n\n// type Compute<T> = { [K in keyof T]: T[K] } | never\n\n// type AllKeys<T> = T extends any ? keyof T : never\n\n// export type MergeUnion<T, Keys extends keyof T = keyof T> = Compute<\n// {\n// [K in Keys]: T[Keys]\n// } & {\n// [K in AllKeys<T>]?: T extends any\n// ? K extends keyof T\n// ? T[K]\n// : never\n// : never\n// }\n// >\n\nexport type Values<O> = O[ValueKeys<O>]\nexport type ValueKeys<O> = Extract<keyof O, PropertyKey>\n\nexport type DeepAwaited<T> = T extends Promise<infer A>\n ? DeepAwaited<A>\n : T extends Record<infer A, Promise<infer B>>\n ? { [K in A]: DeepAwaited<B> }\n : T\n\nexport type PathParamMask<TRoutePath extends string> =\n TRoutePath extends `${infer L}/$${infer C}/${infer R}`\n ? PathParamMask<`${L}/${string}/${R}`>\n : TRoutePath extends `${infer L}/$${infer C}`\n ? PathParamMask<`${L}/${string}`>\n : TRoutePath\n\nexport type Timeout = ReturnType<typeof setTimeout>\n\nexport type Updater<TPrevious, TResult = TPrevious> =\n | TResult\n | ((prev?: TPrevious) => TResult)\n\nexport type NonNullableUpdater<TPrevious, TResult = TPrevious> =\n | TResult\n | ((prev: TPrevious) => TResult)\n\nexport type PickExtract<T, U> = {\n [K in keyof T as T[K] extends U ? K : never]: T[K]\n}\n\nexport type PickExclude<T, U> = {\n [K in keyof T as T[K] extends U ? never : K]: T[K]\n}\n\nexport function last<T>(arr: T[]) {\n return arr[arr.length - 1]\n}\n\nfunction isFunction(d: any): d is Function {\n return typeof d === 'function'\n}\n\nexport function functionalUpdate<TResult>(\n updater: Updater<TResult> | NonNullableUpdater<TResult>,\n previous: TResult,\n): TResult {\n if (isFunction(updater)) {\n return updater(previous as TResult)\n }\n\n return updater\n}\n\nexport function pick<T, K extends keyof T>(parent: T, keys: K[]): Pick<T, K> {\n return keys.reduce((obj: any, key: K) => {\n obj[key] = parent[key]\n return obj\n }, {} as any)\n}\n\n/**\n * This function returns `a` if `b` is deeply equal.\n * If not, it will replace any deeply equal children of `b` with those of `a`.\n * This can be used for structural sharing between immutable JSON values for example.\n * Do not use this with signals\n */\nexport function replaceEqualDeep<T>(prev: any, _next: T): T {\n if (prev === _next) {\n return prev\n }\n\n const next = _next as any\n\n const array = Array.isArray(prev) && Array.isArray(next)\n\n if (array || (isPlainObject(prev) && isPlainObject(next))) {\n const prevSize = array ? prev.length : Object.keys(prev).length\n const nextItems = array ? next : Object.keys(next)\n const nextSize = nextItems.length\n const copy: any = array ? [] : {}\n\n let equalItems = 0\n\n for (let i = 0; i < nextSize; i++) {\n const key = array ? i : nextItems[i]\n copy[key] = replaceEqualDeep(prev[key], next[key])\n if (copy[key] === prev[key]) {\n equalItems++\n }\n }\n\n return prevSize === nextSize && equalItems === prevSize ? prev : copy\n }\n\n return next\n}\n\n// Copied from: https://github.com/jonschlinkert/is-plain-object\nexport function isPlainObject(o: any) {\n if (!hasObjectPrototype(o)) {\n return false\n }\n\n // If has modified constructor\n const ctor = o.constructor\n if (typeof ctor === 'undefined') {\n return true\n }\n\n // If has modified prototype\n const prot = ctor.prototype\n if (!hasObjectPrototype(prot)) {\n return false\n }\n\n // If constructor does not have an Object-specific method\n if (!prot.hasOwnProperty('isPrototypeOf')) {\n return false\n }\n\n // Most likely a plain Object\n return true\n}\n\nfunction hasObjectPrototype(o: any) {\n return Object.prototype.toString.call(o) === '[object Object]'\n}\n\nexport function partialDeepEqual(a: any, b: any): boolean {\n if (a === b) {\n return true\n }\n\n if (typeof a !== typeof b) {\n return false\n }\n\n if (isPlainObject(a) && isPlainObject(b)) {\n return !Object.keys(b).some((key) => !partialDeepEqual(a[key], b[key]))\n }\n\n if (Array.isArray(a) && Array.isArray(b)) {\n return (\n a.length === b.length &&\n a.every((item, index) => partialDeepEqual(item, b[index]))\n )\n }\n\n return false\n}\n"],"names":["last","arr","length","isFunction","d","functionalUpdate","updater","previous","pick","parent","keys","reduce","obj","key","replaceEqualDeep","prev","_next","next","array","Array","isArray","isPlainObject","prevSize","Object","nextItems","nextSize","copy","equalItems","i","o","hasObjectPrototype","ctor","constructor","prot","prototype","hasOwnProperty","toString","call","partialDeepEq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