@tanstack/react-router 0.0.1-beta.34 → 0.0.1-beta.35
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/build/stats-html.html
CHANGED
|
@@ -4024,7 +4024,7 @@ var drawChart = (function (exports) {
|
|
|
4024
4024
|
</script>
|
|
4025
4025
|
<script>
|
|
4026
4026
|
/*<!--*/
|
|
4027
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"uid":"
|
|
4027
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"uid":"3fab-59","name":"\u0000rollupPluginBabelHelpers.js"},{"name":"node_modules/.pnpm","children":[{"name":"@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js","uid":"3fab-61"},{"name":"history@5.3.0/node_modules/history/index.js","uid":"3fab-63"},{"name":"tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","uid":"3fab-65"}]},{"name":"packages","children":[{"name":"router-core/build/esm/index.js","uid":"3fab-67"},{"name":"react-router/src/index.tsx","uid":"3fab-69"}]}]}],"isRoot":true},"nodeParts":{"3fab-59":{"renderedLength":793,"gzipLength":363,"brotliLength":0,"mainUid":"3fab-58"},"3fab-61":{"renderedLength":435,"gzipLength":241,"brotliLength":0,"mainUid":"3fab-60"},"3fab-63":{"renderedLength":20630,"gzipLength":3800,"brotliLength":0,"mainUid":"3fab-62"},"3fab-65":{"renderedLength":181,"gzipLength":129,"brotliLength":0,"mainUid":"3fab-64"},"3fab-67":{"renderedLength":55144,"gzipLength":12425,"brotliLength":0,"mainUid":"3fab-66"},"3fab-69":{"renderedLength":14166,"gzipLength":3535,"brotliLength":0,"mainUid":"3fab-68"}},"nodeMetas":{"3fab-58":{"id":"\u0000rollupPluginBabelHelpers.js","moduleParts":{"index.production.js":"3fab-59"},"imported":[],"importedBy":[{"uid":"3fab-68"}]},"3fab-60":{"id":"/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js","moduleParts":{"index.production.js":"3fab-61"},"imported":[],"importedBy":[{"uid":"3fab-62"}]},"3fab-62":{"id":"/node_modules/.pnpm/history@5.3.0/node_modules/history/index.js","moduleParts":{"index.production.js":"3fab-63"},"imported":[{"uid":"3fab-60"}],"importedBy":[{"uid":"3fab-66"}]},"3fab-64":{"id":"/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","moduleParts":{"index.production.js":"3fab-65"},"imported":[],"importedBy":[{"uid":"3fab-66"}]},"3fab-66":{"id":"/packages/router-core/build/esm/index.js","moduleParts":{"index.production.js":"3fab-67"},"imported":[{"uid":"3fab-62"},{"uid":"3fab-64"}],"importedBy":[{"uid":"3fab-68"}]},"3fab-68":{"id":"/packages/react-router/src/index.tsx","moduleParts":{"index.production.js":"3fab-69"},"imported":[{"uid":"3fab-58"},{"uid":"3fab-70"},{"uid":"3fab-71"},{"uid":"3fab-66"}],"importedBy":[],"isEntry":true},"3fab-70":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"3fab-68"}],"isExternal":true},"3fab-71":{"id":"use-sync-external-store/shim","moduleParts":{},"imported":[],"importedBy":[{"uid":"3fab-68"}],"isExternal":true}},"env":{"rollup":"2.79.1"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
4028
4028
|
|
|
4029
4029
|
const run = () => {
|
|
4030
4030
|
const width = window.innerWidth;
|
package/build/stats-react.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"name": "index.production.js",
|
|
8
8
|
"children": [
|
|
9
9
|
{
|
|
10
|
-
"uid": "
|
|
10
|
+
"uid": "3fab-73",
|
|
11
11
|
"name": "\u0000rollupPluginBabelHelpers.js"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
"children": [
|
|
16
16
|
{
|
|
17
17
|
"name": "@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js",
|
|
18
|
-
"uid": "
|
|
18
|
+
"uid": "3fab-75"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"name": "history@5.3.0/node_modules/history/index.js",
|
|
22
|
-
"uid": "
|
|
22
|
+
"uid": "3fab-77"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"name": "tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js",
|
|
26
|
-
"uid": "
|
|
26
|
+
"uid": "3fab-79"
|
|
27
27
|
}
|
|
28
28
|
]
|
|
29
29
|
},
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"children": [
|
|
33
33
|
{
|
|
34
34
|
"name": "router-core/build/esm/index.js",
|
|
35
|
-
"uid": "
|
|
35
|
+
"uid": "3fab-81"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"name": "react-router/src/index.tsx",
|
|
39
|
-
"uid": "
|
|
39
|
+
"uid": "3fab-83"
|
|
40
40
|
}
|
|
41
41
|
]
|
|
42
42
|
}
|
|
@@ -46,155 +46,155 @@
|
|
|
46
46
|
"isRoot": true
|
|
47
47
|
},
|
|
48
48
|
"nodeParts": {
|
|
49
|
-
"
|
|
49
|
+
"3fab-73": {
|
|
50
50
|
"renderedLength": 793,
|
|
51
51
|
"gzipLength": 363,
|
|
52
52
|
"brotliLength": 0,
|
|
53
|
-
"mainUid": "
|
|
53
|
+
"mainUid": "3fab-72"
|
|
54
54
|
},
|
|
55
|
-
"
|
|
55
|
+
"3fab-75": {
|
|
56
56
|
"renderedLength": 435,
|
|
57
57
|
"gzipLength": 241,
|
|
58
58
|
"brotliLength": 0,
|
|
59
|
-
"mainUid": "
|
|
59
|
+
"mainUid": "3fab-74"
|
|
60
60
|
},
|
|
61
|
-
"
|
|
61
|
+
"3fab-77": {
|
|
62
62
|
"renderedLength": 20630,
|
|
63
63
|
"gzipLength": 3800,
|
|
64
64
|
"brotliLength": 0,
|
|
65
|
-
"mainUid": "
|
|
65
|
+
"mainUid": "3fab-76"
|
|
66
66
|
},
|
|
67
|
-
"
|
|
67
|
+
"3fab-79": {
|
|
68
68
|
"renderedLength": 181,
|
|
69
69
|
"gzipLength": 129,
|
|
70
70
|
"brotliLength": 0,
|
|
71
|
-
"mainUid": "
|
|
71
|
+
"mainUid": "3fab-78"
|
|
72
72
|
},
|
|
73
|
-
"
|
|
74
|
-
"renderedLength":
|
|
75
|
-
"gzipLength":
|
|
73
|
+
"3fab-81": {
|
|
74
|
+
"renderedLength": 55144,
|
|
75
|
+
"gzipLength": 12425,
|
|
76
76
|
"brotliLength": 0,
|
|
77
|
-
"mainUid": "
|
|
77
|
+
"mainUid": "3fab-80"
|
|
78
78
|
},
|
|
79
|
-
"
|
|
79
|
+
"3fab-83": {
|
|
80
80
|
"renderedLength": 14166,
|
|
81
81
|
"gzipLength": 3535,
|
|
82
82
|
"brotliLength": 0,
|
|
83
|
-
"mainUid": "
|
|
83
|
+
"mainUid": "3fab-82"
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
"nodeMetas": {
|
|
87
|
-
"
|
|
87
|
+
"3fab-72": {
|
|
88
88
|
"id": "\u0000rollupPluginBabelHelpers.js",
|
|
89
89
|
"moduleParts": {
|
|
90
|
-
"index.production.js": "
|
|
90
|
+
"index.production.js": "3fab-73"
|
|
91
91
|
},
|
|
92
92
|
"imported": [],
|
|
93
93
|
"importedBy": [
|
|
94
94
|
{
|
|
95
|
-
"uid": "
|
|
95
|
+
"uid": "3fab-82"
|
|
96
96
|
}
|
|
97
97
|
]
|
|
98
98
|
},
|
|
99
|
-
"
|
|
99
|
+
"3fab-74": {
|
|
100
100
|
"id": "/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js",
|
|
101
101
|
"moduleParts": {
|
|
102
|
-
"index.production.js": "
|
|
102
|
+
"index.production.js": "3fab-75"
|
|
103
103
|
},
|
|
104
104
|
"imported": [],
|
|
105
105
|
"importedBy": [
|
|
106
106
|
{
|
|
107
|
-
"uid": "
|
|
107
|
+
"uid": "3fab-76"
|
|
108
108
|
}
|
|
109
109
|
]
|
|
110
110
|
},
|
|
111
|
-
"
|
|
111
|
+
"3fab-76": {
|
|
112
112
|
"id": "/node_modules/.pnpm/history@5.3.0/node_modules/history/index.js",
|
|
113
113
|
"moduleParts": {
|
|
114
|
-
"index.production.js": "
|
|
114
|
+
"index.production.js": "3fab-77"
|
|
115
115
|
},
|
|
116
116
|
"imported": [
|
|
117
117
|
{
|
|
118
|
-
"uid": "
|
|
118
|
+
"uid": "3fab-74"
|
|
119
119
|
}
|
|
120
120
|
],
|
|
121
121
|
"importedBy": [
|
|
122
122
|
{
|
|
123
|
-
"uid": "
|
|
123
|
+
"uid": "3fab-80"
|
|
124
124
|
}
|
|
125
125
|
]
|
|
126
126
|
},
|
|
127
|
-
"
|
|
127
|
+
"3fab-78": {
|
|
128
128
|
"id": "/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js",
|
|
129
129
|
"moduleParts": {
|
|
130
|
-
"index.production.js": "
|
|
130
|
+
"index.production.js": "3fab-79"
|
|
131
131
|
},
|
|
132
132
|
"imported": [],
|
|
133
133
|
"importedBy": [
|
|
134
134
|
{
|
|
135
|
-
"uid": "
|
|
135
|
+
"uid": "3fab-80"
|
|
136
136
|
}
|
|
137
137
|
]
|
|
138
138
|
},
|
|
139
|
-
"
|
|
139
|
+
"3fab-80": {
|
|
140
140
|
"id": "/packages/router-core/build/esm/index.js",
|
|
141
141
|
"moduleParts": {
|
|
142
|
-
"index.production.js": "
|
|
142
|
+
"index.production.js": "3fab-81"
|
|
143
143
|
},
|
|
144
144
|
"imported": [
|
|
145
145
|
{
|
|
146
|
-
"uid": "
|
|
146
|
+
"uid": "3fab-76"
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
|
-
"uid": "
|
|
149
|
+
"uid": "3fab-78"
|
|
150
150
|
}
|
|
151
151
|
],
|
|
152
152
|
"importedBy": [
|
|
153
153
|
{
|
|
154
|
-
"uid": "
|
|
154
|
+
"uid": "3fab-82"
|
|
155
155
|
}
|
|
156
156
|
]
|
|
157
157
|
},
|
|
158
|
-
"
|
|
158
|
+
"3fab-82": {
|
|
159
159
|
"id": "/packages/react-router/src/index.tsx",
|
|
160
160
|
"moduleParts": {
|
|
161
|
-
"index.production.js": "
|
|
161
|
+
"index.production.js": "3fab-83"
|
|
162
162
|
},
|
|
163
163
|
"imported": [
|
|
164
164
|
{
|
|
165
|
-
"uid": "
|
|
165
|
+
"uid": "3fab-72"
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
|
-
"uid": "
|
|
168
|
+
"uid": "3fab-84"
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
|
-
"uid": "
|
|
171
|
+
"uid": "3fab-85"
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
|
-
"uid": "
|
|
174
|
+
"uid": "3fab-80"
|
|
175
175
|
}
|
|
176
176
|
],
|
|
177
177
|
"importedBy": [],
|
|
178
178
|
"isEntry": true
|
|
179
179
|
},
|
|
180
|
-
"
|
|
180
|
+
"3fab-84": {
|
|
181
181
|
"id": "react",
|
|
182
182
|
"moduleParts": {},
|
|
183
183
|
"imported": [],
|
|
184
184
|
"importedBy": [
|
|
185
185
|
{
|
|
186
|
-
"uid": "
|
|
186
|
+
"uid": "3fab-82"
|
|
187
187
|
}
|
|
188
188
|
],
|
|
189
189
|
"isExternal": true
|
|
190
190
|
},
|
|
191
|
-
"
|
|
191
|
+
"3fab-85": {
|
|
192
192
|
"id": "use-sync-external-store/shim",
|
|
193
193
|
"moduleParts": {},
|
|
194
194
|
"imported": [],
|
|
195
195
|
"importedBy": [
|
|
196
196
|
{
|
|
197
|
-
"uid": "
|
|
197
|
+
"uid": "3fab-82"
|
|
198
198
|
}
|
|
199
199
|
],
|
|
200
200
|
"isExternal": true
|
|
@@ -1089,10 +1089,10 @@
|
|
|
1089
1089
|
}
|
|
1090
1090
|
function matchByPath(basepath, from, matchLocation) {
|
|
1091
1091
|
var _matchLocation$to;
|
|
1092
|
-
if (
|
|
1092
|
+
if (!from.startsWith(basepath)) {
|
|
1093
1093
|
return undefined;
|
|
1094
1094
|
}
|
|
1095
|
-
from =
|
|
1095
|
+
from = basepath != '/' ? from.substring(basepath.length) : from;
|
|
1096
1096
|
const baseSegments = parsePathname(from);
|
|
1097
1097
|
const to = "" + ((_matchLocation$to = matchLocation.to) != null ? _matchLocation$to : '*');
|
|
1098
1098
|
const routeSegments = parsePathname(to);
|
|
@@ -1810,10 +1810,8 @@
|
|
|
1810
1810
|
match
|
|
1811
1811
|
})));
|
|
1812
1812
|
} catch (err) {
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
}
|
|
1816
|
-
throw err;
|
|
1813
|
+
console.info(err);
|
|
1814
|
+
invariant(false, "A route's beforeLoad middleware failed! \uD83D\uDC46");
|
|
1817
1815
|
}
|
|
1818
1816
|
router.notify();
|
|
1819
1817
|
|
|
@@ -1962,6 +1960,7 @@
|
|
|
1962
1960
|
fuzzy,
|
|
1963
1961
|
caseSensitive: (_route$options$caseSe = route.options.caseSensitive) != null ? _route$options$caseSe : router.options.caseSensitive
|
|
1964
1962
|
});
|
|
1963
|
+
console.log(router.basepath, route.fullPath, fuzzy, pathname, matchParams);
|
|
1965
1964
|
if (matchParams) {
|
|
1966
1965
|
let parsedParams;
|
|
1967
1966
|
try {
|