@modern-js/plugin-bff 2.22.0 → 2.23.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/CHANGELOG.md CHANGED
@@ -1,5 +1,42 @@
1
1
  # @modern-js/plugin-bff
2
2
 
3
+ ## 2.23.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 7e6fb5f: chore: publishConfig add provenance config
8
+
9
+ chore: publishConfig 增加 provenance 配置
10
+
11
+ - 6dec7c2: test(utils): reuse the snapshot serializer of vitest config
12
+
13
+ test(utils): 复用 vitest 的 snapshot serializer
14
+
15
+ - c3216b5: chore: split the scheme into the plugin
16
+
17
+ chore: 拆分 scheme 到插件内部
18
+
19
+ - Updated dependencies [7e6fb5f]
20
+ - Updated dependencies [a7a7ad7]
21
+ - Updated dependencies [6dec7c2]
22
+ - Updated dependencies [c3216b5]
23
+ - @modern-js/create-request@2.23.0
24
+ - @modern-js/bff-core@2.23.0
25
+ - @modern-js/utils@2.23.0
26
+ - @modern-js/server-utils@2.23.0
27
+
28
+ ## 2.22.1
29
+
30
+ ### Patch Changes
31
+
32
+ - Updated dependencies [e2848a2]
33
+ - Updated dependencies [4be1da5]
34
+ - Updated dependencies [d4045ed]
35
+ - @modern-js/utils@2.22.1
36
+ - @modern-js/server-utils@2.22.1
37
+ - @modern-js/bff-core@2.22.1
38
+ - @modern-js/create-request@2.22.1
39
+
3
40
  ## 2.22.0
4
41
 
5
42
  ### Patch Changes
package/dist/cjs/cli.js CHANGED
@@ -23,7 +23,34 @@ const _default = () => {
23
23
  let unRegisterResolveRuntimePath = null;
24
24
  return {
25
25
  validateSchema() {
26
- return _utils.PLUGIN_SCHEMAS["@modern-js/plugin-bff"];
26
+ return [
27
+ {
28
+ target: "bff",
29
+ schema: {
30
+ type: "object",
31
+ properties: {
32
+ prefix: {
33
+ type: [
34
+ "string",
35
+ "array"
36
+ ],
37
+ items: {
38
+ type: "string"
39
+ }
40
+ },
41
+ fetcher: {
42
+ type: "string"
43
+ },
44
+ proxy: {
45
+ type: "object"
46
+ },
47
+ requestCreator: {
48
+ type: "string"
49
+ }
50
+ }
51
+ }
52
+ }
53
+ ];
27
54
  },
28
55
  config() {
29
56
  return {
package/dist/esm/cli.js CHANGED
@@ -4,7 +4,7 @@ import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
4
4
  import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array";
5
5
  import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
6
6
  import path from "path";
7
- import { fs, API_DIR, PLUGIN_SCHEMAS, normalizeOutputPath, SHARED_DIR, isProd } from "@modern-js/utils";
7
+ import { fs, API_DIR, normalizeOutputPath, SHARED_DIR, isProd } from "@modern-js/utils";
8
8
  import { compile } from "@modern-js/server-utils";
9
9
  import { ApiRouter } from "@modern-js/bff-core";
10
10
  import { registerModernRuntimePath } from "./helper";
@@ -17,7 +17,34 @@ export default function() {
17
17
  var unRegisterResolveRuntimePath = null;
18
18
  return {
19
19
  validateSchema: function validateSchema() {
20
- return PLUGIN_SCHEMAS["@modern-js/plugin-bff"];
20
+ return [
21
+ {
22
+ target: "bff",
23
+ schema: {
24
+ type: "object",
25
+ properties: {
26
+ prefix: {
27
+ type: [
28
+ "string",
29
+ "array"
30
+ ],
31
+ items: {
32
+ type: "string"
33
+ }
34
+ },
35
+ fetcher: {
36
+ type: "string"
37
+ },
38
+ proxy: {
39
+ type: "object"
40
+ },
41
+ requestCreator: {
42
+ type: "string"
43
+ }
44
+ }
45
+ }
46
+ }
47
+ ];
21
48
  },
22
49
  config: function config() {
23
50
  return {
@@ -1,5 +1,5 @@
1
1
  import path from "path";
2
- import { fs, API_DIR, PLUGIN_SCHEMAS, normalizeOutputPath, SHARED_DIR, isProd } from "@modern-js/utils";
2
+ import { fs, API_DIR, normalizeOutputPath, SHARED_DIR, isProd } from "@modern-js/utils";
3
3
  import { compile } from "@modern-js/server-utils";
4
4
  import { ApiRouter } from "@modern-js/bff-core";
5
5
  import { registerModernRuntimePath } from "./helper";
@@ -12,7 +12,34 @@ export default () => {
12
12
  let unRegisterResolveRuntimePath = null;
13
13
  return {
14
14
  validateSchema() {
15
- return PLUGIN_SCHEMAS["@modern-js/plugin-bff"];
15
+ return [
16
+ {
17
+ target: "bff",
18
+ schema: {
19
+ type: "object",
20
+ properties: {
21
+ prefix: {
22
+ type: [
23
+ "string",
24
+ "array"
25
+ ],
26
+ items: {
27
+ type: "string"
28
+ }
29
+ },
30
+ fetcher: {
31
+ type: "string"
32
+ },
33
+ proxy: {
34
+ type: "object"
35
+ },
36
+ requestCreator: {
37
+ type: "string"
38
+ }
39
+ }
40
+ }
41
+ }
42
+ ];
16
43
  },
17
44
  config() {
18
45
  return {
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.22.0",
18
+ "version": "2.23.0",
19
19
  "jsnext:source": "./src/cli.ts",
20
20
  "types": "./dist/types/cli.d.ts",
21
21
  "main": "./dist/cjs/cli.js",
@@ -57,10 +57,10 @@
57
57
  "dependencies": {
58
58
  "@babel/core": "^7.21.8",
59
59
  "@swc/helpers": "0.5.1",
60
- "@modern-js/bff-core": "2.22.0",
61
- "@modern-js/create-request": "2.22.0",
62
- "@modern-js/server-utils": "2.22.0",
63
- "@modern-js/utils": "2.22.0"
60
+ "@modern-js/bff-core": "2.23.0",
61
+ "@modern-js/create-request": "2.23.0",
62
+ "@modern-js/server-utils": "2.23.0",
63
+ "@modern-js/utils": "2.23.0"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@types/babel__core": "^7.20.0",
@@ -72,19 +72,20 @@
72
72
  "typescript": "^5",
73
73
  "webpack": "^5.82.1",
74
74
  "webpack-chain": "^6.5.1",
75
- "@modern-js/runtime": "2.22.0",
76
- "@modern-js/core": "2.22.0",
77
- "@modern-js/bff-runtime": "2.22.0",
78
- "@modern-js/server-core": "2.22.0",
79
- "@modern-js/types": "2.22.0",
80
- "@modern-js/app-tools": "2.22.0",
81
- "@scripts/build": "2.22.0",
82
- "@scripts/jest-config": "2.22.0"
75
+ "@modern-js/runtime": "2.23.0",
76
+ "@modern-js/core": "2.23.0",
77
+ "@modern-js/bff-runtime": "2.23.0",
78
+ "@modern-js/server-core": "2.23.0",
79
+ "@modern-js/types": "2.23.0",
80
+ "@modern-js/app-tools": "2.23.0",
81
+ "@scripts/build": "2.23.0",
82
+ "@scripts/jest-config": "2.23.0"
83
83
  },
84
84
  "sideEffects": false,
85
85
  "publishConfig": {
86
86
  "registry": "https://registry.npmjs.org/",
87
- "access": "public"
87
+ "access": "public",
88
+ "provenance": true
88
89
  },
89
90
  "scripts": {
90
91
  "new": "modern-lib new",