@modern-js/plugin-router-v5 2.22.1 → 2.23.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # @modern-js/plugin-router-v5
2
2
 
3
+ ## 2.23.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [f08bbfc]
8
+ - Updated dependencies [a6b313a]
9
+ - Updated dependencies [8f2cab0]
10
+ - @modern-js/utils@2.23.1
11
+ - @modern-js/plugin@2.23.1
12
+ - @modern-js/types@2.23.1
13
+
14
+ ## 2.23.0
15
+
16
+ ### Patch Changes
17
+
18
+ - 7e6fb5f: chore: publishConfig add provenance config
19
+
20
+ chore: publishConfig 增加 provenance 配置
21
+
22
+ - c3216b5: chore: split the scheme into the plugin
23
+
24
+ chore: 拆分 scheme 到插件内部
25
+
26
+ - Updated dependencies [7e6fb5f]
27
+ - Updated dependencies [a7a7ad7]
28
+ - Updated dependencies [6dec7c2]
29
+ - Updated dependencies [c3216b5]
30
+ - @modern-js/plugin@2.23.0
31
+ - @modern-js/types@2.23.0
32
+ - @modern-js/utils@2.23.0
33
+
3
34
  ## 2.22.1
4
35
 
5
36
  ### Patch Changes
@@ -37,7 +37,17 @@ const _default = () => {
37
37
  };
38
38
  },
39
39
  validateSchema() {
40
- return _utils.PLUGIN_SCHEMAS["@modern-js/plugin-router"];
40
+ return [
41
+ {
42
+ target: "runtime.router",
43
+ schema: {
44
+ type: [
45
+ "boolean",
46
+ "object"
47
+ ]
48
+ }
49
+ }
50
+ ];
41
51
  },
42
52
  modifyEntryImports({ entrypoint, imports }) {
43
53
  const { entryName } = entrypoint;
@@ -1,6 +1,6 @@
1
1
  import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
2
2
  import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
3
- import { getEntryOptions, createRuntimeExportsUtils, PLUGIN_SCHEMAS, isRouterV5 as isV5 } from "@modern-js/utils";
3
+ import { getEntryOptions, createRuntimeExportsUtils, isRouterV5 as isV5 } from "@modern-js/utils";
4
4
  import "./types";
5
5
  var PLUGIN_IDENTIFIER = "router";
6
6
  var ROUTES_IDENTIFIER = "routes";
@@ -29,7 +29,17 @@ export default function() {
29
29
  };
30
30
  },
31
31
  validateSchema: function validateSchema() {
32
- return PLUGIN_SCHEMAS["@modern-js/plugin-router"];
32
+ return [
33
+ {
34
+ target: "runtime.router",
35
+ schema: {
36
+ type: [
37
+ "boolean",
38
+ "object"
39
+ ]
40
+ }
41
+ }
42
+ ];
33
43
  },
34
44
  modifyEntryImports: function modifyEntryImports(param) {
35
45
  var entrypoint = param.entrypoint, imports = param.imports;
@@ -1,4 +1,4 @@
1
- import { getEntryOptions, createRuntimeExportsUtils, PLUGIN_SCHEMAS, isRouterV5 as isV5 } from "@modern-js/utils";
1
+ import { getEntryOptions, createRuntimeExportsUtils, isRouterV5 as isV5 } from "@modern-js/utils";
2
2
  import "./types";
3
3
  const PLUGIN_IDENTIFIER = "router";
4
4
  const ROUTES_IDENTIFIER = "routes";
@@ -27,7 +27,17 @@ export default () => {
27
27
  };
28
28
  },
29
29
  validateSchema() {
30
- return PLUGIN_SCHEMAS["@modern-js/plugin-router"];
30
+ return [
31
+ {
32
+ target: "runtime.router",
33
+ schema: {
34
+ type: [
35
+ "boolean",
36
+ "object"
37
+ ]
38
+ }
39
+ }
40
+ ];
31
41
  },
32
42
  modifyEntryImports({ entrypoint, imports }) {
33
43
  const { entryName } = entrypoint;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.22.1",
18
+ "version": "2.23.1",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/cli/index.d.ts",
21
21
  "main": "./dist/cjs/cli/index.js",
@@ -60,9 +60,9 @@
60
60
  "hoist-non-react-statics": "^3.3.2",
61
61
  "react-router-dom": "^5.3.4",
62
62
  "@swc/helpers": "0.5.1",
63
- "@modern-js/plugin": "2.22.1",
64
- "@modern-js/types": "2.22.1",
65
- "@modern-js/utils": "2.22.1"
63
+ "@modern-js/plugin": "2.23.1",
64
+ "@modern-js/types": "2.23.1",
65
+ "@modern-js/utils": "2.23.1"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": ">=17",
@@ -78,18 +78,19 @@
78
78
  "react-dom": "^18",
79
79
  "ts-jest": "^29.1.0",
80
80
  "typescript": "^5",
81
- "@modern-js/app-tools": "2.22.1",
82
- "@modern-js/core": "2.22.1",
83
- "@modern-js/runtime": "2.22.1",
84
- "@modern-js/utils": "2.22.1",
85
- "@scripts/build": "2.22.1",
86
- "@scripts/jest-config": "2.22.1"
81
+ "@modern-js/app-tools": "2.23.1",
82
+ "@modern-js/core": "2.23.1",
83
+ "@modern-js/runtime": "2.23.1",
84
+ "@modern-js/utils": "2.23.1",
85
+ "@scripts/jest-config": "2.23.1",
86
+ "@scripts/build": "2.23.1"
87
87
  },
88
88
  "sideEffects": false,
89
89
  "modernConfig": {},
90
90
  "publishConfig": {
91
91
  "registry": "https://registry.npmjs.org/",
92
- "access": "public"
92
+ "access": "public",
93
+ "provenance": true
93
94
  },
94
95
  "scripts": {
95
96
  "dev": "modern-lib build --watch",