@tanstack/react-router 0.0.1-beta.53 → 0.0.1-beta.54

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.
@@ -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":"a738-67","name":"\u0000rollupPluginBabelHelpers.js"},{"name":"node_modules/.pnpm","children":[{"name":"tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","uid":"a738-69"},{"name":"immer@9.0.16/node_modules/immer/dist/immer.esm.mjs","uid":"a738-71"}]},{"name":"packages","children":[{"name":"router-core/build/esm/index.js","uid":"a738-73"},{"name":"react-router/src","children":[{"uid":"a738-75","name":"useStore.ts"},{"uid":"a738-77","name":"index.tsx"}]}]}]}],"isRoot":true},"nodeParts":{"a738-67":{"renderedLength":429,"gzipLength":238,"brotliLength":0,"mainUid":"a738-66"},"a738-69":{"renderedLength":181,"gzipLength":129,"brotliLength":0,"mainUid":"a738-68"},"a738-71":{"renderedLength":8203,"gzipLength":3238,"brotliLength":0,"mainUid":"a738-70"},"a738-73":{"renderedLength":56569,"gzipLength":13422,"brotliLength":0,"mainUid":"a738-72"},"a738-75":{"renderedLength":1347,"gzipLength":484,"brotliLength":0,"mainUid":"a738-74"},"a738-77":{"renderedLength":12608,"gzipLength":3327,"brotliLength":0,"mainUid":"a738-76"}},"nodeMetas":{"a738-66":{"id":"\u0000rollupPluginBabelHelpers.js","moduleParts":{"index.production.js":"a738-67"},"imported":[],"importedBy":[{"uid":"a738-76"}]},"a738-68":{"id":"/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","moduleParts":{"index.production.js":"a738-69"},"imported":[],"importedBy":[{"uid":"a738-72"}]},"a738-70":{"id":"/node_modules/.pnpm/immer@9.0.16/node_modules/immer/dist/immer.esm.mjs","moduleParts":{"index.production.js":"a738-71"},"imported":[],"importedBy":[{"uid":"a738-72"}]},"a738-72":{"id":"/packages/router-core/build/esm/index.js","moduleParts":{"index.production.js":"a738-73"},"imported":[{"uid":"a738-68"},{"uid":"a738-70"}],"importedBy":[{"uid":"a738-76"}]},"a738-74":{"id":"/packages/react-router/src/useStore.ts","moduleParts":{"index.production.js":"a738-75"},"imported":[{"uid":"a738-79"}],"importedBy":[{"uid":"a738-76"}]},"a738-76":{"id":"/packages/react-router/src/index.tsx","moduleParts":{"index.production.js":"a738-77"},"imported":[{"uid":"a738-66"},{"uid":"a738-78"},{"uid":"a738-72"},{"uid":"a738-74"}],"importedBy":[],"isEntry":true},"a738-78":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"a738-76"}],"isExternal":true},"a738-79":{"id":"use-sync-external-store/shim/with-selector","moduleParts":{},"imported":[],"importedBy":[{"uid":"a738-74"}],"isExternal":true}},"env":{"rollup":"2.79.1"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
4027
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"uid":"1cd1-67","name":"\u0000rollupPluginBabelHelpers.js"},{"name":"node_modules/.pnpm","children":[{"name":"tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","uid":"1cd1-69"},{"name":"immer@9.0.16/node_modules/immer/dist/immer.esm.mjs","uid":"1cd1-71"}]},{"name":"packages","children":[{"name":"router-core/build/esm/index.js","uid":"1cd1-73"},{"name":"react-router/src","children":[{"uid":"1cd1-75","name":"useStore.ts"},{"uid":"1cd1-77","name":"index.tsx"}]}]}]}],"isRoot":true},"nodeParts":{"1cd1-67":{"renderedLength":429,"gzipLength":238,"brotliLength":0,"mainUid":"1cd1-66"},"1cd1-69":{"renderedLength":181,"gzipLength":129,"brotliLength":0,"mainUid":"1cd1-68"},"1cd1-71":{"renderedLength":8203,"gzipLength":3238,"brotliLength":0,"mainUid":"1cd1-70"},"1cd1-73":{"renderedLength":56606,"gzipLength":13435,"brotliLength":0,"mainUid":"1cd1-72"},"1cd1-75":{"renderedLength":1347,"gzipLength":484,"brotliLength":0,"mainUid":"1cd1-74"},"1cd1-77":{"renderedLength":12608,"gzipLength":3327,"brotliLength":0,"mainUid":"1cd1-76"}},"nodeMetas":{"1cd1-66":{"id":"\u0000rollupPluginBabelHelpers.js","moduleParts":{"index.production.js":"1cd1-67"},"imported":[],"importedBy":[{"uid":"1cd1-76"}]},"1cd1-68":{"id":"/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","moduleParts":{"index.production.js":"1cd1-69"},"imported":[],"importedBy":[{"uid":"1cd1-72"}]},"1cd1-70":{"id":"/node_modules/.pnpm/immer@9.0.16/node_modules/immer/dist/immer.esm.mjs","moduleParts":{"index.production.js":"1cd1-71"},"imported":[],"importedBy":[{"uid":"1cd1-72"}]},"1cd1-72":{"id":"/packages/router-core/build/esm/index.js","moduleParts":{"index.production.js":"1cd1-73"},"imported":[{"uid":"1cd1-68"},{"uid":"1cd1-70"}],"importedBy":[{"uid":"1cd1-76"}]},"1cd1-74":{"id":"/packages/react-router/src/useStore.ts","moduleParts":{"index.production.js":"1cd1-75"},"imported":[{"uid":"1cd1-79"}],"importedBy":[{"uid":"1cd1-76"}]},"1cd1-76":{"id":"/packages/react-router/src/index.tsx","moduleParts":{"index.production.js":"1cd1-77"},"imported":[{"uid":"1cd1-66"},{"uid":"1cd1-78"},{"uid":"1cd1-72"},{"uid":"1cd1-74"}],"importedBy":[],"isEntry":true},"1cd1-78":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"1cd1-76"}],"isExternal":true},"1cd1-79":{"id":"use-sync-external-store/shim/with-selector","moduleParts":{},"imported":[],"importedBy":[{"uid":"1cd1-74"}],"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;
@@ -7,7 +7,7 @@
7
7
  "name": "index.production.js",
8
8
  "children": [
9
9
  {
10
- "uid": "a738-81",
10
+ "uid": "1cd1-81",
11
11
  "name": "\u0000rollupPluginBabelHelpers.js"
12
12
  },
13
13
  {
@@ -15,11 +15,11 @@
15
15
  "children": [
16
16
  {
17
17
  "name": "tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js",
18
- "uid": "a738-83"
18
+ "uid": "1cd1-83"
19
19
  },
20
20
  {
21
21
  "name": "immer@9.0.16/node_modules/immer/dist/immer.esm.mjs",
22
- "uid": "a738-85"
22
+ "uid": "1cd1-85"
23
23
  }
24
24
  ]
25
25
  },
@@ -28,17 +28,17 @@
28
28
  "children": [
29
29
  {
30
30
  "name": "router-core/build/esm/index.js",
31
- "uid": "a738-87"
31
+ "uid": "1cd1-87"
32
32
  },
33
33
  {
34
34
  "name": "react-router/src",
35
35
  "children": [
36
36
  {
37
- "uid": "a738-89",
37
+ "uid": "1cd1-89",
38
38
  "name": "useStore.ts"
39
39
  },
40
40
  {
41
- "uid": "a738-91",
41
+ "uid": "1cd1-91",
42
42
  "name": "index.tsx"
43
43
  }
44
44
  ]
@@ -51,155 +51,155 @@
51
51
  "isRoot": true
52
52
  },
53
53
  "nodeParts": {
54
- "a738-81": {
54
+ "1cd1-81": {
55
55
  "renderedLength": 429,
56
56
  "gzipLength": 238,
57
57
  "brotliLength": 0,
58
- "mainUid": "a738-80"
58
+ "mainUid": "1cd1-80"
59
59
  },
60
- "a738-83": {
60
+ "1cd1-83": {
61
61
  "renderedLength": 181,
62
62
  "gzipLength": 129,
63
63
  "brotliLength": 0,
64
- "mainUid": "a738-82"
64
+ "mainUid": "1cd1-82"
65
65
  },
66
- "a738-85": {
66
+ "1cd1-85": {
67
67
  "renderedLength": 8203,
68
68
  "gzipLength": 3238,
69
69
  "brotliLength": 0,
70
- "mainUid": "a738-84"
70
+ "mainUid": "1cd1-84"
71
71
  },
72
- "a738-87": {
73
- "renderedLength": 56569,
74
- "gzipLength": 13422,
72
+ "1cd1-87": {
73
+ "renderedLength": 56606,
74
+ "gzipLength": 13435,
75
75
  "brotliLength": 0,
76
- "mainUid": "a738-86"
76
+ "mainUid": "1cd1-86"
77
77
  },
78
- "a738-89": {
78
+ "1cd1-89": {
79
79
  "renderedLength": 1347,
80
80
  "gzipLength": 484,
81
81
  "brotliLength": 0,
82
- "mainUid": "a738-88"
82
+ "mainUid": "1cd1-88"
83
83
  },
84
- "a738-91": {
84
+ "1cd1-91": {
85
85
  "renderedLength": 12608,
86
86
  "gzipLength": 3327,
87
87
  "brotliLength": 0,
88
- "mainUid": "a738-90"
88
+ "mainUid": "1cd1-90"
89
89
  }
90
90
  },
91
91
  "nodeMetas": {
92
- "a738-80": {
92
+ "1cd1-80": {
93
93
  "id": "\u0000rollupPluginBabelHelpers.js",
94
94
  "moduleParts": {
95
- "index.production.js": "a738-81"
95
+ "index.production.js": "1cd1-81"
96
96
  },
97
97
  "imported": [],
98
98
  "importedBy": [
99
99
  {
100
- "uid": "a738-90"
100
+ "uid": "1cd1-90"
101
101
  }
102
102
  ]
103
103
  },
104
- "a738-82": {
104
+ "1cd1-82": {
105
105
  "id": "/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js",
106
106
  "moduleParts": {
107
- "index.production.js": "a738-83"
107
+ "index.production.js": "1cd1-83"
108
108
  },
109
109
  "imported": [],
110
110
  "importedBy": [
111
111
  {
112
- "uid": "a738-86"
112
+ "uid": "1cd1-86"
113
113
  }
114
114
  ]
115
115
  },
116
- "a738-84": {
116
+ "1cd1-84": {
117
117
  "id": "/node_modules/.pnpm/immer@9.0.16/node_modules/immer/dist/immer.esm.mjs",
118
118
  "moduleParts": {
119
- "index.production.js": "a738-85"
119
+ "index.production.js": "1cd1-85"
120
120
  },
121
121
  "imported": [],
122
122
  "importedBy": [
123
123
  {
124
- "uid": "a738-86"
124
+ "uid": "1cd1-86"
125
125
  }
126
126
  ]
127
127
  },
128
- "a738-86": {
128
+ "1cd1-86": {
129
129
  "id": "/packages/router-core/build/esm/index.js",
130
130
  "moduleParts": {
131
- "index.production.js": "a738-87"
131
+ "index.production.js": "1cd1-87"
132
132
  },
133
133
  "imported": [
134
134
  {
135
- "uid": "a738-82"
135
+ "uid": "1cd1-82"
136
136
  },
137
137
  {
138
- "uid": "a738-84"
138
+ "uid": "1cd1-84"
139
139
  }
140
140
  ],
141
141
  "importedBy": [
142
142
  {
143
- "uid": "a738-90"
143
+ "uid": "1cd1-90"
144
144
  }
145
145
  ]
146
146
  },
147
- "a738-88": {
147
+ "1cd1-88": {
148
148
  "id": "/packages/react-router/src/useStore.ts",
149
149
  "moduleParts": {
150
- "index.production.js": "a738-89"
150
+ "index.production.js": "1cd1-89"
151
151
  },
152
152
  "imported": [
153
153
  {
154
- "uid": "a738-93"
154
+ "uid": "1cd1-93"
155
155
  }
156
156
  ],
157
157
  "importedBy": [
158
158
  {
159
- "uid": "a738-90"
159
+ "uid": "1cd1-90"
160
160
  }
161
161
  ]
162
162
  },
163
- "a738-90": {
163
+ "1cd1-90": {
164
164
  "id": "/packages/react-router/src/index.tsx",
165
165
  "moduleParts": {
166
- "index.production.js": "a738-91"
166
+ "index.production.js": "1cd1-91"
167
167
  },
168
168
  "imported": [
169
169
  {
170
- "uid": "a738-80"
170
+ "uid": "1cd1-80"
171
171
  },
172
172
  {
173
- "uid": "a738-92"
173
+ "uid": "1cd1-92"
174
174
  },
175
175
  {
176
- "uid": "a738-86"
176
+ "uid": "1cd1-86"
177
177
  },
178
178
  {
179
- "uid": "a738-88"
179
+ "uid": "1cd1-88"
180
180
  }
181
181
  ],
182
182
  "importedBy": [],
183
183
  "isEntry": true
184
184
  },
185
- "a738-92": {
185
+ "1cd1-92": {
186
186
  "id": "react",
187
187
  "moduleParts": {},
188
188
  "imported": [],
189
189
  "importedBy": [
190
190
  {
191
- "uid": "a738-90"
191
+ "uid": "1cd1-90"
192
192
  }
193
193
  ],
194
194
  "isExternal": true
195
195
  },
196
- "a738-93": {
196
+ "1cd1-93": {
197
197
  "id": "use-sync-external-store/shim/with-selector",
198
198
  "moduleParts": {},
199
199
  "imported": [],
200
200
  "importedBy": [
201
201
  {
202
- "uid": "a738-88"
202
+ "uid": "1cd1-88"
203
203
  }
204
204
  ],
205
205
  "isExternal": true
@@ -1401,7 +1401,7 @@
1401
1401
  // If this `to` is a valid external URL, return
1402
1402
  // null for LinkUtils
1403
1403
  const toString = String(to);
1404
- const fromString = String(from);
1404
+ const fromString = typeof from === 'undefined' ? from : String(from);
1405
1405
  let isExternal;
1406
1406
  try {
1407
1407
  new URL(`${toString}`);