@bleedingdev/modern-js-runtime 3.2.0-ultramodern.95 → 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 route = match.route;
494
- return route?.options?.staticData?.modernRouteId;
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 route = match.route;
464
- return route?.options?.staticData?.modernRouteId;
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 route = match.route;
465
- return route?.options?.staticData?.modernRouteId;
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.95",
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": "npm:@bleedingdev/modern-js-plugin@3.2.0-ultramodern.95",
237
- "@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.2.0-ultramodern.95",
238
- "@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.2.0-ultramodern.95",
239
- "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.2.0-ultramodern.95",
240
- "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.95",
241
- "@modern-js/render": "npm:@bleedingdev/modern-js-render@3.2.0-ultramodern.95"
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",
@@ -257,8 +257,8 @@
257
257
  "@typescript/native-preview": "7.0.0-dev.20260527.2",
258
258
  "react": "^19.2.6",
259
259
  "react-dom": "^19.2.6",
260
- "@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.2.0-ultramodern.95",
261
- "@scripts/rstest-config": "2.66.0"
260
+ "@scripts/rstest-config": "2.66.0",
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": {