@modern-js/plugin 1.20.0 → 1.21.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,15 @@
1
1
  # @modern-js/plugin
2
2
 
3
+ ## 1.21.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 28f0a4f: fix(plugin): fix return type of Workflow
8
+
9
+ fix(plugin): 修复 Workflow 的返回值类型错误
10
+
11
+ ## 1.20.1
12
+
3
13
  ## 1.20.0
4
14
 
5
15
  ## 1.19.0
@@ -2,7 +2,7 @@ declare const WORKFLOW_SYMBOL: unique symbol;
2
2
  export declare type Worker<I, O> = (I: I) => O;
3
3
  export declare type Workers<I, O> = Worker<I, O>[];
4
4
  export declare type Workflow<I, O> = {
5
- run: (input: I) => void;
5
+ run: (input: I) => O[];
6
6
  use: (...I: Workers<I, O>) => Workflow<I, O>;
7
7
  [WORKFLOW_SYMBOL]: true;
8
8
  };
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.20.0",
14
+ "version": "1.21.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -34,9 +34,9 @@
34
34
  "@types/jest": "^27",
35
35
  "@types/node": "^14",
36
36
  "typescript": "^4",
37
- "@scripts/build": "1.20.0",
37
+ "@scripts/build": "1.21.0",
38
38
  "jest": "^27",
39
- "@scripts/jest-config": "1.20.0"
39
+ "@scripts/jest-config": "1.21.0"
40
40
  },
41
41
  "sideEffects": false,
42
42
  "publishConfig": {