@certd/pipeline 1.39.11 → 1.39.13

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,23 @@
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.39.13](https://github.com/certd/certd/compare/v1.39.12...v1.39.13) (2026-05-10)
7
+
8
+ ### Bug Fixes
9
+
10
+ * cnameProvider域名支持设置子域名托管 ([7266af1](https://github.com/certd/certd/commit/7266af17491a98338022cfb18cfedfb93ca6ef8f))
11
+
12
+ ### Performance Improvements
13
+
14
+ * 重构自动加载模块并优化EAB授权处理 ([4755216](https://github.com/certd/certd/commit/4755216505ad18555a50da9d8008c2207c48df86))
15
+
16
+ ## [1.39.12](https://github.com/certd/certd/compare/v1.39.11...v1.39.12) (2026-04-29)
17
+
18
+ ### Performance Improvements
19
+
20
+ * 524错误时重试3次 ([00e6d58](https://github.com/certd/certd/commit/00e6d580c2f54af70fe96a214aff87c4b96426c2))
21
+ * 优化流水线执行时的状态保存性能 ([e00830b](https://github.com/certd/certd/commit/e00830bebcfe6344499e490bc174de96f9fb22d6))
22
+
6
23
  ## [1.39.11](https://github.com/certd/certd/compare/v1.39.10...v1.39.11) (2026-04-26)
7
24
 
8
25
  ### Performance Improvements
@@ -14,6 +14,7 @@ export type ExecutorOptions = {
14
14
  pipeline: Pipeline;
15
15
  storage: IStorage;
16
16
  onChanged: (history: RunHistory) => Promise<void>;
17
+ onFinished: (history: RunHistory) => Promise<void>;
17
18
  accessService: IAccessService;
18
19
  emailService: IEmailService;
19
20
  notificationService: INotificationService;
@@ -39,6 +40,7 @@ export declare class Executor {
39
40
  abort: AbortController;
40
41
  _inited: boolean;
41
42
  onChanged: (history: RunHistory) => Promise<void>;
43
+ onFinished: (history: RunHistory) => Promise<void>;
42
44
  constructor(options: ExecutorOptions);
43
45
  init(): Promise<void>;
44
46
  cancel(): Promise<void>;
@@ -21,12 +21,16 @@ export class Executor {
21
21
  abort = new AbortController();
22
22
  _inited = false;
23
23
  onChanged;
24
+ onFinished;
24
25
  constructor(options) {
25
26
  this.options = options;
26
27
  this.pipeline = cloneDeep(options.pipeline);
27
28
  this.onChanged = async (history) => {
28
29
  await options.onChanged(history);
29
30
  };
31
+ this.onFinished = async (history) => {
32
+ await options.onFinished(history);
33
+ };
30
34
  this.pipeline.userId = options.user.id;
31
35
  this.contextFactory = new ContextFactory(options.storage);
32
36
  this.logger = logger;
@@ -45,7 +49,7 @@ export class Executor {
45
49
  async cancel() {
46
50
  this.abort.abort();
47
51
  this.runtime?.cancel(this.pipeline);
48
- await this.onChanged(this.runtime);
52
+ await this.onFinished(this.runtime);
49
53
  }
50
54
  async run(runtimeId = 0, triggerType) {
51
55
  let intervalFlushLogId = undefined;
@@ -79,7 +83,7 @@ export class Executor {
79
83
  }
80
84
  finally {
81
85
  clearInterval(intervalFlushLogId);
82
- await this.onChanged(this.runtime);
86
+ await this.onFinished(this.runtime);
83
87
  //保存之前移除logs
84
88
  const lastRuntime = {
85
89
  ...this.runtime,
@@ -76,6 +76,7 @@ export type Notification = {
76
76
  options?: EmailOptions;
77
77
  notificationId: number;
78
78
  title: string;
79
+ id: string;
79
80
  };
80
81
  export type Pipeline = Runnable & {
81
82
  version?: number;
@@ -2,6 +2,7 @@ import { IAccess } from "../access/index.js";
2
2
  export type CnameProvider = {
3
3
  id: any;
4
4
  domain: string;
5
+ subdomain?: string;
5
6
  title?: string;
6
7
  dnsProviderType?: string;
7
8
  access?: IAccess;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@certd/pipeline",
3
3
  "private": false,
4
- "version": "1.39.11",
4
+ "version": "1.39.13",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -14,12 +14,13 @@
14
14
  "build3": "rollup -c",
15
15
  "preview": "vite preview",
16
16
  "test": "mocha --loader=ts-node/esm",
17
+ "test:unit": "cross-env NODE_ENV=unittest mocha --no-config --node-option no-warnings --node-option loader=ts-node/esm \"src/**/*.test.ts\"",
17
18
  "pub": "npm publish",
18
19
  "compile": "tsc --skipLibCheck --watch"
19
20
  },
20
21
  "dependencies": {
21
- "@certd/basic": "^1.39.11",
22
- "@certd/plus-core": "^1.39.11",
22
+ "@certd/basic": "^1.39.13",
23
+ "@certd/plus-core": "^1.39.13",
23
24
  "dayjs": "^1.11.7",
24
25
  "lodash-es": "^4.17.21",
25
26
  "reflect-metadata": "^0.1.13"
@@ -36,14 +37,17 @@
36
37
  "@typescript-eslint/eslint-plugin": "^8.26.1",
37
38
  "@typescript-eslint/parser": "^8.26.1",
38
39
  "chai": "4.3.10",
40
+ "cross-env": "^7.0.3",
39
41
  "eslint": "^8.41.0",
40
42
  "eslint-config-prettier": "^8.8.0",
41
43
  "eslint-plugin-prettier": "^4.2.1",
44
+ "esmock": "^2.7.5",
42
45
  "mocha": "^10.2.0",
43
46
  "prettier": "^2.8.8",
44
47
  "rimraf": "^5.0.5",
48
+ "ts-node": "^10.9.2",
45
49
  "tslib": "^2.8.1",
46
50
  "typescript": "^5.4.2"
47
51
  },
48
- "gitHead": "ec466dc818eace59825d8ae2ebbc9fc75a94a6b0"
52
+ "gitHead": "9f7d766cb386b299d4098141f4a47d23e16975e3"
49
53
  }
package/tsconfig.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "esModuleInterop": true,
8
8
  "experimentalDecorators": true,
9
9
  "emitDecoratorMetadata": true,
10
- "inlineSourceMap":false,
10
+ "inlineSourceMap": false,
11
11
  "sourceMap": false,
12
12
  "noImplicitThis": true,
13
13
  "noUnusedLocals": true,
@@ -22,22 +22,11 @@
22
22
  "composite": false,
23
23
  "useDefineForClassFields": true,
24
24
  "strict": true,
25
- // "sourceMap": true,
25
+ // "sourceMap": true,
26
26
  "resolveJsonModule": true,
27
27
  "isolatedModules": false,
28
- "lib": ["ESNext", "DOM"],
28
+ "lib": ["ESNext", "DOM"]
29
29
  },
30
- "include": [
31
- "src/**/*.ts",
32
- "src/**/*.d.ts",
33
- "src/**/*.json"
34
- ],
35
- "exclude": [
36
- "*.js",
37
- "*.ts",
38
- "*.spec.ts",
39
- "dist",
40
- "node_modules",
41
- "test"
42
- ],
30
+ "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.json"],
31
+ "exclude": ["*.js", "*.ts", "*.spec.ts", "dist", "node_modules", "src/**/*.test.ts", "test"]
43
32
  }