@bleedingdev/modern-js-runtime 3.2.0-ultramodern.94 → 3.2.0-ultramodern.96
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.
|
@@ -489,9 +489,11 @@ function createRouteTreeFromRouteObjects(routes) {
|
|
|
489
489
|
}
|
|
490
490
|
function getModernRouteIdsFromMatches(router) {
|
|
491
491
|
const matches = router.state.matches || [];
|
|
492
|
+
const routesById = router.routesById;
|
|
492
493
|
const ids = matches.map((match)=>{
|
|
493
|
-
const
|
|
494
|
-
|
|
494
|
+
const normalizedMatch = match;
|
|
495
|
+
const routeId = 'string' == typeof normalizedMatch.routeId ? normalizedMatch.routeId : void 0;
|
|
496
|
+
return normalizedMatch.route?.options?.staticData?.modernRouteId ?? (routeId ? routesById?.[routeId]?.options?.staticData?.modernRouteId : void 0);
|
|
495
497
|
}).filter((id)=>'string' == typeof id);
|
|
496
498
|
return Array.from(new Set(ids));
|
|
497
499
|
}
|
|
@@ -459,9 +459,11 @@ function createRouteTreeFromRouteObjects(routes) {
|
|
|
459
459
|
}
|
|
460
460
|
function getModernRouteIdsFromMatches(router) {
|
|
461
461
|
const matches = router.state.matches || [];
|
|
462
|
+
const routesById = router.routesById;
|
|
462
463
|
const ids = matches.map((match)=>{
|
|
463
|
-
const
|
|
464
|
-
|
|
464
|
+
const normalizedMatch = match;
|
|
465
|
+
const routeId = 'string' == typeof normalizedMatch.routeId ? normalizedMatch.routeId : void 0;
|
|
466
|
+
return normalizedMatch.route?.options?.staticData?.modernRouteId ?? (routeId ? routesById?.[routeId]?.options?.staticData?.modernRouteId : void 0);
|
|
465
467
|
}).filter((id)=>'string' == typeof id);
|
|
466
468
|
return Array.from(new Set(ids));
|
|
467
469
|
}
|
|
@@ -460,9 +460,11 @@ function createRouteTreeFromRouteObjects(routes) {
|
|
|
460
460
|
}
|
|
461
461
|
function getModernRouteIdsFromMatches(router) {
|
|
462
462
|
const matches = router.state.matches || [];
|
|
463
|
+
const routesById = router.routesById;
|
|
463
464
|
const ids = matches.map((match)=>{
|
|
464
|
-
const
|
|
465
|
-
|
|
465
|
+
const normalizedMatch = match;
|
|
466
|
+
const routeId = 'string' == typeof normalizedMatch.routeId ? normalizedMatch.routeId : void 0;
|
|
467
|
+
return normalizedMatch.route?.options?.staticData?.modernRouteId ?? (routeId ? routesById?.[routeId]?.options?.staticData?.modernRouteId : void 0);
|
|
466
468
|
}).filter((id)=>'string' == typeof id);
|
|
467
469
|
return Array.from(new Set(ids));
|
|
468
470
|
}
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"modern",
|
|
18
18
|
"modern.js"
|
|
19
19
|
],
|
|
20
|
-
"version": "3.2.0-ultramodern.
|
|
20
|
+
"version": "3.2.0-ultramodern.96",
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=20"
|
|
23
23
|
},
|
|
@@ -233,12 +233,12 @@
|
|
|
233
233
|
"isbot": "5.1.40",
|
|
234
234
|
"react-helmet-async": "3.0.0",
|
|
235
235
|
"react-is": "^19.2.6",
|
|
236
|
-
"@modern-js/plugin
|
|
237
|
-
"@modern-js/
|
|
238
|
-
"@modern-js/render": "npm:@bleedingdev/modern-js-render@3.2.0-ultramodern.
|
|
239
|
-
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.2.0-ultramodern.
|
|
240
|
-
"@modern-js/
|
|
241
|
-
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.
|
|
236
|
+
"@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.2.0-ultramodern.96",
|
|
237
|
+
"@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.2.0-ultramodern.96",
|
|
238
|
+
"@modern-js/render": "npm:@bleedingdev/modern-js-render@3.2.0-ultramodern.96",
|
|
239
|
+
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.2.0-ultramodern.96",
|
|
240
|
+
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.96",
|
|
241
|
+
"@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.2.0-ultramodern.96"
|
|
242
242
|
},
|
|
243
243
|
"peerDependencies": {
|
|
244
244
|
"react": "^19.2.6",
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
"react": "^19.2.6",
|
|
259
259
|
"react-dom": "^19.2.6",
|
|
260
260
|
"@scripts/rstest-config": "2.66.0",
|
|
261
|
-
"@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.2.0-ultramodern.
|
|
261
|
+
"@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.2.0-ultramodern.96"
|
|
262
262
|
},
|
|
263
263
|
"sideEffects": false,
|
|
264
264
|
"publishConfig": {
|