@modern-js/plugin-bff 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,42 @@
1
1
  # @modern-js/plugin-bff
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/bff-core@2.23.1
12
+ - @modern-js/create-request@2.23.1
13
+ - @modern-js/server-utils@2.23.1
14
+
15
+ ## 2.23.0
16
+
17
+ ### Patch Changes
18
+
19
+ - 7e6fb5f: chore: publishConfig add provenance config
20
+
21
+ chore: publishConfig 增加 provenance 配置
22
+
23
+ - 6dec7c2: test(utils): reuse the snapshot serializer of vitest config
24
+
25
+ test(utils): 复用 vitest 的 snapshot serializer
26
+
27
+ - c3216b5: chore: split the scheme into the plugin
28
+
29
+ chore: 拆分 scheme 到插件内部
30
+
31
+ - Updated dependencies [7e6fb5f]
32
+ - Updated dependencies [a7a7ad7]
33
+ - Updated dependencies [6dec7c2]
34
+ - Updated dependencies [c3216b5]
35
+ - @modern-js/create-request@2.23.0
36
+ - @modern-js/bff-core@2.23.0
37
+ - @modern-js/utils@2.23.0
38
+ - @modern-js/server-utils@2.23.0
39
+
3
40
  ## 2.22.1
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.1",
18
+ "version": "2.23.1",
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.1",
61
- "@modern-js/create-request": "2.22.1",
62
- "@modern-js/server-utils": "2.22.1",
63
- "@modern-js/utils": "2.22.1"
60
+ "@modern-js/create-request": "2.23.1",
61
+ "@modern-js/bff-core": "2.23.1",
62
+ "@modern-js/server-utils": "2.23.1",
63
+ "@modern-js/utils": "2.23.1"
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.1",
76
- "@modern-js/core": "2.22.1",
77
- "@modern-js/bff-runtime": "2.22.1",
78
- "@modern-js/server-core": "2.22.1",
79
- "@modern-js/types": "2.22.1",
80
- "@modern-js/app-tools": "2.22.1",
81
- "@scripts/build": "2.22.1",
82
- "@scripts/jest-config": "2.22.1"
75
+ "@modern-js/runtime": "2.23.1",
76
+ "@modern-js/core": "2.23.1",
77
+ "@modern-js/server-core": "2.23.1",
78
+ "@modern-js/bff-runtime": "2.23.1",
79
+ "@modern-js/types": "2.23.1",
80
+ "@modern-js/app-tools": "2.23.1",
81
+ "@scripts/build": "2.23.1",
82
+ "@scripts/jest-config": "2.23.1"
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",