@modern-js/plugin-ssg 2.39.2 → 2.40.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.
package/dist/cjs/index.js CHANGED
@@ -49,26 +49,6 @@ const ssgPlugin = () => ({
49
49
  setup: (api) => {
50
50
  const agreedRouteMap = {};
51
51
  return {
52
- validateSchema() {
53
- return [
54
- {
55
- target: "output.ssg",
56
- schema: {
57
- oneOf: [
58
- {
59
- type: "boolean"
60
- },
61
- {
62
- type: "object"
63
- },
64
- {
65
- instanceof: "Function"
66
- }
67
- ]
68
- }
69
- }
70
- ];
71
- },
72
52
  modifyFileSystemRoutes({ entrypoint, routes }) {
73
53
  const { entryName } = entrypoint;
74
54
  const flattedRoutes = (0, import_util.flattenRoutes)(routes);
package/dist/esm/index.js CHANGED
@@ -20,26 +20,6 @@ var ssgPlugin = function() {
20
20
  setup: function(api) {
21
21
  var agreedRouteMap = {};
22
22
  return {
23
- validateSchema: function validateSchema() {
24
- return [
25
- {
26
- target: "output.ssg",
27
- schema: {
28
- oneOf: [
29
- {
30
- type: "boolean"
31
- },
32
- {
33
- type: "object"
34
- },
35
- {
36
- instanceof: "Function"
37
- }
38
- ]
39
- }
40
- }
41
- ];
42
- },
43
23
  modifyFileSystemRoutes: function modifyFileSystemRoutes(param) {
44
24
  var entrypoint = param.entrypoint, routes = param.routes;
45
25
  var entryName = entrypoint.entryName;
@@ -15,26 +15,6 @@ const ssgPlugin = () => ({
15
15
  setup: (api) => {
16
16
  const agreedRouteMap = {};
17
17
  return {
18
- validateSchema() {
19
- return [
20
- {
21
- target: "output.ssg",
22
- schema: {
23
- oneOf: [
24
- {
25
- type: "boolean"
26
- },
27
- {
28
- type: "object"
29
- },
30
- {
31
- instanceof: "Function"
32
- }
33
- ]
34
- }
35
- }
36
- ];
37
- },
38
18
  modifyFileSystemRoutes({ entrypoint, routes }) {
39
19
  const { entryName } = entrypoint;
40
20
  const flattedRoutes = flattenRoutes(routes);
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.39.2",
18
+ "version": "2.40.0",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -63,7 +63,7 @@
63
63
  "normalize-path": "^3.0.0",
64
64
  "portfinder": "^1.0.28",
65
65
  "@swc/helpers": "0.5.1",
66
- "@modern-js/utils": "2.39.2"
66
+ "@modern-js/utils": "2.40.0"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "react-router-dom": ">=5.1.2"
@@ -81,11 +81,11 @@
81
81
  "react-dom": "^18",
82
82
  "react-router-dom": "6.17.0",
83
83
  "typescript": "^5",
84
- "@modern-js/prod-server": "2.39.2",
85
- "@modern-js/types": "2.39.2",
86
- "@scripts/build": "2.39.2",
87
- "@scripts/jest-config": "2.39.2",
88
- "@modern-js/app-tools": "2.39.2"
84
+ "@modern-js/app-tools": "2.40.0",
85
+ "@modern-js/prod-server": "2.40.0",
86
+ "@modern-js/types": "2.40.0",
87
+ "@scripts/build": "2.40.0",
88
+ "@scripts/jest-config": "2.40.0"
89
89
  },
90
90
  "sideEffects": false,
91
91
  "publishConfig": {