@modern-js/plugin-proxy 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-proxy
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
+
12
+ ## 2.23.0
13
+
14
+ ### Patch Changes
15
+
16
+ - 7e6fb5f: chore: publishConfig add provenance config
17
+
18
+ chore: publishConfig 增加 provenance 配置
19
+
20
+ - 6dec7c2: test(utils): reuse the snapshot serializer of vitest config
21
+
22
+ test(utils): 复用 vitest 的 snapshot serializer
23
+
24
+ - c3216b5: chore: split the scheme into the plugin
25
+
26
+ chore: 拆分 scheme 到插件内部
27
+
28
+ - Updated dependencies [7e6fb5f]
29
+ - Updated dependencies [a7a7ad7]
30
+ - Updated dependencies [6dec7c2]
31
+ - Updated dependencies [c3216b5]
32
+ - @modern-js/utils@2.23.0
33
+
3
34
  ## 2.22.1
4
35
 
5
36
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -9,7 +9,6 @@ Object.defineProperty(exports, "default", {
9
9
  }
10
10
  });
11
11
  const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
12
- const _utils = require("@modern-js/utils");
13
12
  const _createProxyRule = require("./utils/createProxyRule");
14
13
  const _whistleProxy = /* @__PURE__ */ _interop_require_default._(require("./utils/whistleProxy"));
15
14
  const _default = () => {
@@ -19,7 +18,17 @@ const _default = () => {
19
18
  setup: (api) => {
20
19
  return {
21
20
  validateSchema() {
22
- return _utils.PLUGIN_SCHEMAS["@modern-js/plugin-proxy"];
21
+ return [
22
+ {
23
+ target: "dev.proxy",
24
+ schema: {
25
+ typeof: [
26
+ "string",
27
+ "object"
28
+ ]
29
+ }
30
+ }
31
+ ];
23
32
  },
24
33
  async afterDev() {
25
34
  const { dev } = api.useResolvedConfigContext();
package/dist/esm/index.js CHANGED
@@ -1,4 +1,3 @@
1
- import { PLUGIN_SCHEMAS } from "@modern-js/utils";
2
1
  import { createProxyRule } from "./utils/createProxyRule";
3
2
  import WhistleProxy from "./utils/whistleProxy";
4
3
  export default () => {
@@ -8,7 +7,17 @@ export default () => {
8
7
  setup: (api) => {
9
8
  return {
10
9
  validateSchema() {
11
- return PLUGIN_SCHEMAS["@modern-js/plugin-proxy"];
10
+ return [
11
+ {
12
+ target: "dev.proxy",
13
+ schema: {
14
+ typeof: [
15
+ "string",
16
+ "object"
17
+ ]
18
+ }
19
+ }
20
+ ];
12
21
  },
13
22
  async afterDev() {
14
23
  const { dev } = api.useResolvedConfigContext();
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/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -36,21 +36,22 @@
36
36
  "dependencies": {
37
37
  "whistle": "^2.7.18",
38
38
  "@swc/helpers": "0.5.1",
39
- "@modern-js/utils": "2.22.1"
39
+ "@modern-js/utils": "2.23.1"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/jest": "^29",
43
43
  "@types/node": "^14",
44
44
  "typescript": "^5",
45
45
  "jest": "^29",
46
- "@scripts/build": "2.22.1",
47
- "@scripts/jest-config": "2.22.1",
48
- "@modern-js/core": "2.22.1"
46
+ "@scripts/build": "2.23.1",
47
+ "@scripts/jest-config": "2.23.1",
48
+ "@modern-js/core": "2.23.1"
49
49
  },
50
50
  "sideEffects": false,
51
51
  "publishConfig": {
52
52
  "registry": "https://registry.npmjs.org/",
53
- "access": "public"
53
+ "access": "public",
54
+ "provenance": true
54
55
  },
55
56
  "scripts": {
56
57
  "new": "modern-lib new",