@modern-js/server-core 2.66.0 → 2.67.0

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.
@@ -32,7 +32,7 @@ function injectRoute(route) {
32
32
  };
33
33
  }
34
34
  function getPageRoutes(routes) {
35
- return routes.filter((route) => !route.isApi).sort(import_utils.sortRoutes);
35
+ return routes.filter((route) => route.entryName).sort(import_utils.sortRoutes);
36
36
  }
37
37
  const injectRoutePlugin = () => ({
38
38
  name: "@modern-js/plugin-inject-route",
@@ -30,7 +30,7 @@ function injectRoute(route) {
30
30
  }
31
31
  function getPageRoutes(routes) {
32
32
  return routes.filter(function(route) {
33
- return !route.isApi;
33
+ return route.entryName;
34
34
  }).sort(sortRoutes);
35
35
  }
36
36
  var injectRoutePlugin = function() {
@@ -9,7 +9,7 @@ function injectRoute(route) {
9
9
  };
10
10
  }
11
11
  function getPageRoutes(routes) {
12
- return routes.filter((route) => !route.isApi).sort(sortRoutes);
12
+ return routes.filter((route) => route.entryName).sort(sortRoutes);
13
13
  }
14
14
  const injectRoutePlugin = () => ({
15
15
  name: "@modern-js/plugin-inject-route",
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.66.0",
18
+ "version": "2.67.0",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -53,10 +53,10 @@
53
53
  "flatted": "^3.2.9",
54
54
  "hono": "^3.12.2",
55
55
  "ts-deepmerge": "7.0.2",
56
- "@modern-js/plugin": "2.66.0",
57
- "@modern-js/runtime-utils": "2.66.0",
58
- "@modern-js/plugin-v2": "2.66.0",
59
- "@modern-js/utils": "2.66.0"
56
+ "@modern-js/plugin": "2.67.0",
57
+ "@modern-js/runtime-utils": "2.67.0",
58
+ "@modern-js/plugin-v2": "2.67.0",
59
+ "@modern-js/utils": "2.67.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/jest": "^29",
@@ -66,7 +66,7 @@
66
66
  "jest": "^29",
67
67
  "ts-jest": "^29.1.0",
68
68
  "typescript": "^5",
69
- "@modern-js/types": "2.66.0",
69
+ "@modern-js/types": "2.67.0",
70
70
  "@scripts/build": "2.66.0",
71
71
  "@scripts/jest-config": "2.66.0"
72
72
  },