@camunda8/orchestration-cluster-api 8.9.0-alpha.8 → 9.0.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 +276 -2
- package/README.md +551 -56
- package/dist/{chunk-XCRY6B3O.js → chunk-43TOWWPR.js} +2371 -8885
- package/dist/chunk-43TOWWPR.js.map +1 -0
- package/dist/chunk-DGUM43GV.js +11 -0
- package/dist/chunk-DGUM43GV.js.map +1 -0
- package/dist/{chunk-W6JB7JZH.js → chunk-KQ4UL2WX.js} +3 -17
- package/dist/chunk-KQ4UL2WX.js.map +1 -0
- package/dist/fp/index.cjs +13809 -12041
- package/dist/fp/index.cjs.map +1 -1
- package/dist/fp/index.d.cts +2 -1
- package/dist/fp/index.d.ts +2 -1
- package/dist/fp/index.js +3 -2
- package/dist/{index-CILGs_2v.d.ts → index-B7HfPv-I.d.ts} +4388 -678
- package/dist/{index-m1kmSXSN.d.cts → index-C0kkfkPq.d.cts} +4388 -678
- package/dist/index.cjs +13815 -11744
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +336 -59
- package/dist/index.js.map +1 -1
- package/dist/logger.cjs +2 -2
- package/dist/logger.cjs.map +1 -1
- package/dist/logger.js +2 -1
- package/dist/threadWorkerEntry.cjs +146 -0
- package/dist/threadWorkerEntry.cjs.map +1 -0
- package/dist/threadWorkerEntry.js +144 -0
- package/dist/threadWorkerEntry.js.map +1 -0
- package/dist/zod.gen-J3DNBFMQ.js +8277 -0
- package/dist/zod.gen-J3DNBFMQ.js.map +1 -0
- package/package.json +38 -38
- package/dist/chunk-W6JB7JZH.js.map +0 -1
- package/dist/chunk-XCRY6B3O.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda8/orchestration-cluster-api",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "9.0.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -41,6 +41,15 @@
|
|
|
41
41
|
"camundacon:backpressure:balanced": "CAMUNDA_SDK_BACKPRESSURE_PROFILE=BALANCED tsx camundacon/backpressure/backpressure.ts",
|
|
42
42
|
"camundacon:backpressure:balanced:long": "BP_PROFILE_ACTIVATE_BATCH=20 BP_PROFILE_TARGET=10000 CAMUNDA_SDK_BACKPRESSURE_PROFILE=BALANCED tsx camundacon/backpressure/backpressure.ts",
|
|
43
43
|
"camundacon:backpressure:aggressive": "CAMUNDA_SDK_BACKPRESSURE_PROFILE=AGGRESSIVE tsx camundacon/backpressure/backpressure.ts",
|
|
44
|
+
"camundacon:backpressure:multi": "PROFILE=BALANCED tsx camundacon/backpressure/multi-client.ts",
|
|
45
|
+
"camundacon:backpressure:multi:legacy": "PROFILE=LEGACY tsx camundacon/backpressure/multi-client.ts",
|
|
46
|
+
"camundacon:backpressure:multi:aggressive": "PROFILE=AGGRESSIVE tsx camundacon/backpressure/multi-client.ts",
|
|
47
|
+
"camundacon:backpressure:multi:conservative": "PROFILE=CONSERVATIVE tsx camundacon/backpressure/multi-client.ts",
|
|
48
|
+
"camundacon:backpressure:multi:stress": "NUM_CLIENTS=5 SPIKE_CLIENTS=3 TARGET_PER_CLIENT=1000 CLIENT_CONCURRENCY=100 PROFILE=BALANCED tsx camundacon/backpressure/multi-client.ts",
|
|
49
|
+
"camundacon:matrix": "tsx camundacon/backpressure/matrix/run-matrix.ts",
|
|
50
|
+
"camundacon:matrix:dry-run": "tsx camundacon/backpressure/matrix/run-matrix.ts --dry-run",
|
|
51
|
+
"camundacon:matrix:quick": "tsx camundacon/backpressure/matrix/run-matrix.ts --modes rest-balanced --handlers cpu --clients 25 --isolations shared --no-restart",
|
|
52
|
+
"camundacon:matrix:analyze": "tsx camundacon/backpressure/matrix/analyze.ts",
|
|
44
53
|
"camundacon:tags:first": "tsx camundacon/tags/first.ts",
|
|
45
54
|
"camundacon:tags:second": "tsx camundacon/tags/second.ts",
|
|
46
55
|
"camundacon:tags:third": "tsx camundacon/tags/third.ts",
|
|
@@ -50,18 +59,17 @@
|
|
|
50
59
|
"bundle:spec": "camunda-schema-bundler --ref ${SPEC_REF:-main} --output-spec external-spec/bundled/rest-api.bundle.json --output-metadata external-spec/bundled/spec-metadata.json",
|
|
51
60
|
"bundle:spec:local": "camunda-schema-bundler --spec-dir external-spec/upstream/zeebe/gateway-protocol/src/main/proto/v2 --output-spec external-spec/bundled/rest-api.bundle.json --output-metadata external-spec/bundled/spec-metadata.json",
|
|
52
61
|
"version:sync": "tsx scripts/write-version-constant.ts",
|
|
53
|
-
"build": "npm run generate && npm run docs:config && npm run format && npm run version:sync && tsup src/index.ts src/logger.ts src/fp/index.ts --dts --format esm,cjs --sourcemap --out-dir dist",
|
|
54
|
-
"build:local": "npm run generate:local && npm run docs:config && npm run version:sync && tsup src/index.ts src/logger.ts src/fp/index.ts --dts --format esm,cjs --sourcemap --out-dir dist",
|
|
62
|
+
"build": "SPEC_REF=stable/8.9 npm run generate && npm run docs:config && npm run sync-readme:check && npm run format && npm run version:sync && tsup src/index.ts src/logger.ts src/fp/index.ts --dts --format esm,cjs --sourcemap --out-dir dist && tsup src/runtime/threadWorkerEntry.ts --format esm,cjs --sourcemap --out-dir dist --no-splitting",
|
|
63
|
+
"build:local": "npm run generate:local && npm run docs:config && npm run sync-readme:check && npm run version:sync && tsup src/index.ts src/logger.ts src/fp/index.ts --dts --format esm,cjs --sourcemap --out-dir dist && tsup src/runtime/threadWorkerEntry.ts --format esm,cjs --sourcemap --out-dir dist --no-splitting",
|
|
55
64
|
"test": "CAMUNDA_SDK_INTEGRATION=0 vitest run --passWithNoTests --exclude 'tests-integration/' --exclude 'camundacon/**'",
|
|
56
65
|
"test:integration": "CAMUNDA_SDK_INTEGRATION=1 vitest run tests-integration",
|
|
57
66
|
"docs:config": "tsx scripts/generate-config-doc.ts",
|
|
58
67
|
"docs:md": "rm -rf docs-md && typedoc --options typedoc-md.json && node scripts/postprocess-md-docs.mjs docs-md",
|
|
59
68
|
"test:dist": "npm run build --silent && node tests/dist-usage.smoke.mjs",
|
|
60
|
-
"lint": "
|
|
61
|
-
"lint:fix": "
|
|
62
|
-
"
|
|
63
|
-
"format": "
|
|
64
|
-
"format:check": "prettier . --check",
|
|
69
|
+
"lint": "biome lint .",
|
|
70
|
+
"lint:fix": "biome check . --write",
|
|
71
|
+
"format": "biome format . --write",
|
|
72
|
+
"format:check": "biome check .",
|
|
65
73
|
"release": "semantic-release",
|
|
66
74
|
"prepare": "husky install",
|
|
67
75
|
"update:assertions": "npx assert-json-body",
|
|
@@ -71,7 +79,9 @@
|
|
|
71
79
|
"docker:es:start": "docker compose -f docker/docker-compose-es.yaml up -d",
|
|
72
80
|
"docker:es:stop": "docker compose -f docker/docker-compose-es.yaml down && npm run docker:es:cleanup",
|
|
73
81
|
"docker:es:cleanup": "docker volume rm docker_elastic && docker volume rm docker_zeebe && docker volume rm docker_prometheus-data && docker volume rm docker_grafana-data",
|
|
74
|
-
"docs:api": "rm -rf docs/* && typedoc"
|
|
82
|
+
"docs:api": "rm -rf docs/* && typedoc",
|
|
83
|
+
"sync-readme": "tsx scripts/sync-readme-snippets.ts",
|
|
84
|
+
"sync-readme:check": "tsx scripts/sync-readme-snippets.ts --check"
|
|
75
85
|
},
|
|
76
86
|
"files": [
|
|
77
87
|
"dist",
|
|
@@ -85,52 +95,42 @@
|
|
|
85
95
|
"access": "public"
|
|
86
96
|
},
|
|
87
97
|
"dependencies": {
|
|
88
|
-
"p-retry": "^6.0.1",
|
|
89
98
|
"typed-env": "^2.0.0",
|
|
90
99
|
"zod": "^4"
|
|
91
100
|
},
|
|
101
|
+
"peerDependencies": {
|
|
102
|
+
"fp-ts": "^2.16.11"
|
|
103
|
+
},
|
|
104
|
+
"peerDependenciesMeta": {
|
|
105
|
+
"fp-ts": {
|
|
106
|
+
"optional": true
|
|
107
|
+
}
|
|
108
|
+
},
|
|
92
109
|
"devDependencies": {
|
|
93
|
-
"@
|
|
94
|
-
"@commitlint/
|
|
95
|
-
"@
|
|
110
|
+
"@biomejs/biome": "^2.4.10",
|
|
111
|
+
"@commitlint/cli": "^20.5.0",
|
|
112
|
+
"@commitlint/config-conventional": "^20.5.0",
|
|
96
113
|
"@hey-api/openapi-ts": "^0.86.12",
|
|
97
114
|
"@semantic-release/changelog": "^6.0.3",
|
|
98
115
|
"@semantic-release/git": "^10.0.1",
|
|
99
116
|
"@types/node": "^20.14.9",
|
|
100
117
|
"@types/single-line-log": "^1.1.2",
|
|
101
|
-
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
102
|
-
"@typescript-eslint/parser": "^7.18.0",
|
|
103
118
|
"assert-json-body": "^1.5.0",
|
|
104
|
-
"camunda-schema-bundler": "^1.
|
|
119
|
+
"camunda-schema-bundler": "^1.5.0",
|
|
105
120
|
"chalk": "^5.6.2",
|
|
106
|
-
"eslint": "^8.57.0",
|
|
107
|
-
"eslint-config-prettier": "^9.1.2",
|
|
108
|
-
"eslint-plugin-import": "^2.32.0",
|
|
109
|
-
"eslint-plugin-unused-imports": "^3.2.0",
|
|
110
121
|
"fp-ts": "^2.16.11",
|
|
111
122
|
"husky": "^9.0.11",
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"prettier": "^3.6.2",
|
|
115
|
-
"rimraf": "^6.0.1",
|
|
116
|
-
"semantic-release": "^25.0.2",
|
|
123
|
+
"rimraf": "^6.1.3",
|
|
124
|
+
"semantic-release": "^25.0.3",
|
|
117
125
|
"single-line-log": "^1.1.2",
|
|
118
|
-
"tsup": "^8.
|
|
119
|
-
"tsx": "^4.
|
|
120
|
-
"typedoc": "^0.28.
|
|
121
|
-
"typedoc-plugin-markdown": "^4.
|
|
126
|
+
"tsup": "^8.5.1",
|
|
127
|
+
"tsx": "^4.21.0",
|
|
128
|
+
"typedoc": "^0.28.18",
|
|
129
|
+
"typedoc-plugin-markdown": "^4.11.0",
|
|
122
130
|
"typescript": "^5.4.5",
|
|
123
131
|
"vitest": "^3.2.4"
|
|
124
132
|
},
|
|
125
|
-
"lint-staged": {
|
|
126
|
-
"*.{ts,tsx,js,json,md,yml,yaml}": [
|
|
127
|
-
"prettier --write"
|
|
128
|
-
],
|
|
129
|
-
"*.{ts,tsx}": [
|
|
130
|
-
"eslint --fix"
|
|
131
|
-
]
|
|
132
|
-
},
|
|
133
133
|
"engines": {
|
|
134
|
-
"node": ">=
|
|
134
|
+
"node": ">=22"
|
|
135
135
|
}
|
|
136
136
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/runtime/logger.ts"],"sourcesContent":["// Per-client logger (no global singleton). Construct via createLogger.\n\n// Added 'silly' for deep diagnostics (unsafe: logs HTTP bodies when enabled elsewhere)\nexport type LogLevel = 'silent' | 'error' | 'warn' | 'info' | 'debug' | 'trace' | 'silly';\nexport interface LogEvent {\n level: LogLevel;\n scope: string;\n ts: number;\n args: any[];\n code?: string;\n data?: any;\n}\nexport type LogTransport = (e: LogEvent) => void;\nconst ORDER: Record<LogLevel, number> = {\n silent: 0,\n error: 1,\n warn: 2,\n info: 3,\n debug: 4,\n trace: 5,\n silly: 6,\n};\n\nexport interface Logger {\n level(): LogLevel;\n setLevel(level: LogLevel): void; // internal use\n setTransport(t?: LogTransport): void; // internal use\n error(...a: any[]): void;\n warn(...a: any[]): void;\n info(...a: any[]): void;\n debug(...a: any[]): void;\n trace(...a: any[]): void;\n silly(...a: any[]): void;\n scope(child: string): Logger;\n code(level: LogLevel, code: string, msg: string, data?: any): void;\n}\n\nexport interface CreateLoggerOptions {\n level?: LogLevel;\n transport?: LogTransport;\n scope?: string;\n}\n\nexport function createLogger(opts: CreateLoggerOptions = {}): Logger {\n let currentLevel: LogLevel = opts.level || 'error';\n let transport: LogTransport | undefined = opts.transport;\n const baseScope = opts.scope || '';\n\n function isEnabled(need: LogLevel) {\n return ORDER[currentLevel] >= ORDER[need];\n }\n function evalArgs(args: any[]): any[] {\n // Support lazy function args: if an arg is a function with zero arity, call it.\n return args.map((a) => (typeof a === 'function' && a.length === 0 ? a() : a)).flat();\n }\n function emit(level: LogLevel, scope: string, rawArgs: any[]) {\n if (!isEnabled(level)) return;\n const args = evalArgs(rawArgs);\n const evt: LogEvent = { level, scope, ts: Date.now(), args };\n if (transport) {\n try {\n transport(evt);\n } catch {\n /* ignore transport errors */\n }\n } else {\n const tag = `[camunda-sdk][${level}]${scope ? `[${scope}]` : ''}`;\n const method = level === 'error' ? 'error' : level === 'warn' ? 'warn' : 'log';\n // eslint-disable-next-line no-console\n console[method](tag, ...args);\n }\n }\n function emitCode(level: LogLevel, scope: string, code: string, msg: string, data?: any) {\n if (!isEnabled(level)) return;\n const evt: LogEvent = { level, scope, ts: Date.now(), args: [msg], code, data };\n if (transport) {\n try {\n transport(evt);\n // eslint-disable-next-line no-empty\n } catch {}\n } else {\n const tag = `[camunda-sdk][${level}]${scope ? `[${scope}]` : ''}`;\n const method = level === 'error' ? 'error' : level === 'warn' ? 'warn' : 'log';\n // eslint-disable-next-line no-console\n console[method](tag, code + ':', msg, data ?? '');\n }\n }\n const make = (scope: string): Logger => ({\n level: () => currentLevel,\n setLevel(l: LogLevel) {\n currentLevel = l;\n },\n setTransport(t?: LogTransport) {\n transport = t;\n },\n error: (...a: any[]) => emit('error', scope, a),\n warn: (...a: any[]) => emit('warn', scope, a),\n info: (...a: any[]) => emit('info', scope, a),\n debug: (...a: any[]) => emit('debug', scope, a),\n trace: (...a: any[]) => emit('trace', scope, a),\n silly: (...a: any[]) => emit('silly', scope, a),\n scope(child: string) {\n return make(scope ? `${scope}:${child}` : child);\n },\n code(l: LogLevel, code: string, msg: string, data?: any) {\n emitCode(l, scope, code, msg, data);\n },\n });\n return make(baseScope);\n}\n"],"mappings":";;;;;;;;;;;;;AAaA,IAAM,QAAkC;AAAA,EACtC,QAAQ;AAAA,EACR,OAAO;AAAA,EACP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