@guanghechen/task 1.0.0-alpha.3 → 1.0.0-alpha.5

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
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.0.0-alpha.5](https://github.com/guanghechen/sora/compare/@guanghechen/task@1.0.0-alpha.4...@guanghechen/task@1.0.0-alpha.5) (2023-09-05)
7
+
8
+
9
+ ### Performance Improvements
10
+
11
+ * 🎨 re-export types and constants ([7213062](https://github.com/guanghechen/sora/commit/721306218d253c3dad6549f145cf51c81e86d9ad))
12
+
13
+
14
+
15
+
16
+
17
+ # [1.0.0-alpha.4](https://github.com/guanghechen/sora/compare/@guanghechen/task@1.0.0-alpha.3...@guanghechen/task@1.0.0-alpha.4) (2023-09-02)
18
+
19
+ **Note:** Version bump only for package @guanghechen/task
20
+
21
+
22
+
23
+
24
+
6
25
  # [1.0.0-alpha.3](https://github.com/guanghechen/sora/compare/@guanghechen/task@1.0.0-alpha.2...@guanghechen/task@1.0.0-alpha.3) (2023-08-30)
7
26
 
8
27
 
package/lib/cjs/index.cjs CHANGED
@@ -273,6 +273,14 @@ class ResumableTask extends TaskState {
273
273
  }
274
274
  }
275
275
 
276
+ Object.defineProperty(exports, 'TaskStatusEnum', {
277
+ enumerable: true,
278
+ get: function () { return constant.TaskStatusEnum; }
279
+ });
280
+ Object.defineProperty(exports, 'TaskStrategyEnum', {
281
+ enumerable: true,
282
+ get: function () { return constant.TaskStrategyEnum; }
283
+ });
276
284
  exports.AtomicTask = AtomicTask;
277
285
  exports.ResumableTask = ResumableTask;
278
286
  exports.TaskState = TaskState;
package/lib/esm/index.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  import { TaskStatusEnum, ErrorLevelEnum, TaskStrategyEnum } from '@guanghechen/constant';
2
+ export { TaskStatusEnum, TaskStrategyEnum } from '@guanghechen/constant';
2
3
  import { SoraErrorCollector } from '@guanghechen/error';
3
4
  import { Monitor } from '@guanghechen/monitor';
4
5
 
@@ -1,5 +1,7 @@
1
- import { ITaskState, ISoraErrorCollector, ITaskError, ITaskMonitor, IUnMonitorTask, ITask } from '@guanghechen/types';
2
1
  import { TaskStatusEnum, ErrorLevelEnum, TaskStrategyEnum } from '@guanghechen/constant';
2
+ export { TaskStatusEnum, TaskStrategyEnum } from '@guanghechen/constant';
3
+ import { ITaskState, ISoraErrorCollector, ITaskError, ITaskMonitor, IUnMonitorTask, ITask } from '@guanghechen/types';
4
+ export { ITask, ITaskError, ITaskMonitor, ITaskState } from '@guanghechen/types';
3
5
 
4
6
  declare class TaskState implements ITaskState {
5
7
  readonly name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guanghechen/task",
3
- "version": "1.0.0-alpha.3",
3
+ "version": "1.0.0-alpha.5",
4
4
  "description": "Atomic and resumable tasks",
5
5
  "author": {
6
6
  "name": "guanghechen",
@@ -8,10 +8,10 @@
8
8
  },
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "https://github.com/guanghechen/sora/tree/@guanghechen/task@1.0.0-alpha.2",
11
+ "url": "https://github.com/guanghechen/sora/tree/@guanghechen/task@1.0.0-alpha.4",
12
12
  "directory": "packages/task"
13
13
  },
14
- "homepage": "https://github.com/guanghechen/sora/tree/@guanghechen/task@1.0.0-alpha.2/packages/task#readme",
14
+ "homepage": "https://github.com/guanghechen/sora/tree/@guanghechen/task@1.0.0-alpha.4/packages/task#readme",
15
15
  "type": "module",
16
16
  "main": "./lib/cjs/index.cjs",
17
17
  "module": "./lib/esm/index.mjs",
@@ -40,8 +40,9 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@guanghechen/constant": "^1.0.0-alpha.1",
43
- "@guanghechen/error": "^1.0.0-alpha.3",
44
- "@guanghechen/monitor": "^1.0.0-alpha.3"
43
+ "@guanghechen/error": "^1.0.0-alpha.5",
44
+ "@guanghechen/monitor": "^1.0.0-alpha.5",
45
+ "@guanghechen/types": "^1.0.0-alpha.2"
45
46
  },
46
47
  "devDependencies": {
47
48
  "@guanghechen/shared": "^1.0.0-alpha.3",
@@ -50,5 +51,5 @@
50
51
  "rimraf": "^5.0.1",
51
52
  "rollup": "^3.28.1"
52
53
  },
53
- "gitHead": "6209b28c7340c77e5954b697dddfa2893d8f30df"
54
+ "gitHead": "717e81813350fc1325d8662ed9ece567597f6822"
54
55
  }