@modern-js/runtime 2.16.1-alpha.0 → 2.16.1-alpha.1

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.
@@ -97,6 +97,6 @@ function _export_star(from, to) {
97
97
  }
98
98
  const _default = _plugin.routerPlugin;
99
99
  const useRouteLoaderData = (routeId) => {
100
- const realRouteId = routeId.replace(/\([.*?]\)/g, "($1)");
100
+ const realRouteId = routeId.replace(/\[(.*?)\]/g, "($1)");
101
101
  return (0, _reactrouterdom.useRouteLoaderData)(realRouteId);
102
102
  };
@@ -5,7 +5,7 @@ export { modifyRoutes } from "./plugin";
5
5
  export * from "./withRouter";
6
6
  export { Link, NavLink } from "./PrefetchLink";
7
7
  export var useRouteLoaderData = function(routeId) {
8
- var realRouteId = routeId.replace(/\([.*?]\)/g, "($1)");
8
+ var realRouteId = routeId.replace(/\[(.*?)\]/g, "($1)");
9
9
  return useRouteData(realRouteId);
10
10
  };
11
11
  export {
@@ -5,7 +5,7 @@ export { modifyRoutes } from "./plugin";
5
5
  export * from "./withRouter";
6
6
  export { Link, NavLink } from "./PrefetchLink";
7
7
  export const useRouteLoaderData = (routeId) => {
8
- const realRouteId = routeId.replace(/\([.*?]\)/g, "($1)");
8
+ const realRouteId = routeId.replace(/\[(.*?)\]/g, "($1)");
9
9
  return useRouteData(realRouteId);
10
10
  };
11
11
  export {
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.16.1-alpha.0",
18
+ "version": "2.16.1-alpha.1",
19
19
  "engines": {
20
20
  "node": ">=14.17.6"
21
21
  },
@@ -184,8 +184,8 @@
184
184
  "react-dom": "^18",
185
185
  "ts-jest": "^29.0.5",
186
186
  "typescript": "^4",
187
- "@modern-js/app-tools": "2.16.0",
188
187
  "@scripts/build": "2.16.0",
188
+ "@modern-js/app-tools": "2.16.0",
189
189
  "@modern-js/core": "2.16.0",
190
190
  "@modern-js/server-core": "2.16.0",
191
191
  "@scripts/jest-config": "2.16.0"