@camunda8/orchestration-cluster-api 1.1.2 → 1.1.3

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,3 +1,9 @@
1
+ ## [1.1.3](https://github.com/camunda/orchestration-cluster-api-js/compare/v1.1.2...v1.1.3) (2025-11-10)
2
+
3
+ ### Bug Fixes
4
+
5
+ - log backpressure at debug ([ef8fd69](https://github.com/camunda/orchestration-cluster-api-js/commit/ef8fd6999a39b8ed25a57a3647ec3b20928da640))
6
+
1
7
  ## [1.1.2](https://github.com/camunda/orchestration-cluster-api-js/compare/v1.1.1...v1.1.2) (2025-11-10)
2
8
 
3
9
  ### Bug Fixes
package/README.md CHANGED
@@ -1116,3 +1116,13 @@ const client = createCamundaClient({
1116
1116
  ## License
1117
1117
 
1118
1118
  Apache 2.0
1119
+
1120
+ ## API Documentation
1121
+
1122
+ Generate an HTML API reference site with TypeDoc (public entry points only):
1123
+
1124
+ ```bash
1125
+ npm run docs:api
1126
+ ```
1127
+
1128
+ Output: static site in `docs/api` (open `docs/api/index.html` in a browser or serve the folder, e.g. `npx http-server docs/api`). Entry points: `src/index.ts`, `src/logger.ts`, `src/fp/index.ts`. Internal generated code, scripts, tests are excluded and private / protected members are filtered. Regenerate after changing public exports.
@@ -9614,7 +9614,7 @@ function installAuthInterceptor(client2, getStrategy, getAuthHeaders) {
9614
9614
  }
9615
9615
 
9616
9616
  // src/runtime/version.ts
9617
- var packageVersion = "1.1.1";
9617
+ var packageVersion = "1.1.2";
9618
9618
 
9619
9619
  // src/runtime/supportLogger.ts
9620
9620
  var NoopSupportLogger = class {
@@ -10372,10 +10372,19 @@ var BackpressureManager = class {
10372
10372
  waiters: this.waiters.length
10373
10373
  };
10374
10374
  }
10375
- log(evt, data) {
10375
+ log(evt, data, prevSeverity) {
10376
10376
  this.logger?.trace?.(() => ["backpressure." + evt, data]);
10377
- if (evt === "severity" || evt.startsWith("permits.")) {
10378
- this.logger?.info?.(() => ["bp.state.change", { event: evt, ...data }]);
10377
+ if (evt === "severity") {
10378
+ const curr = data.severity;
10379
+ const enteringUnhealthy = prevSeverity === "healthy" && curr !== "healthy";
10380
+ const recoveringHealthy = prevSeverity !== "healthy" && curr === "healthy";
10381
+ const level = enteringUnhealthy || recoveringHealthy ? "info" : "debug";
10382
+ this.logger?.[level]?.(() => [
10383
+ "bp.state.change",
10384
+ { event: evt, from: prevSeverity, to: curr }
10385
+ ]);
10386
+ } else if (evt.startsWith("permits.")) {
10387
+ this.logger?.debug?.(() => ["bp.state.change", { event: evt, ...data }]);
10379
10388
  }
10380
10389
  }
10381
10390
  async acquire(signal) {
@@ -10437,7 +10446,8 @@ var BackpressureManager = class {
10437
10446
  } else if (this.severity === "soft") {
10438
10447
  if (!this.observeOnly) this.scalePermits(this.cfg.reduceFactor);
10439
10448
  }
10440
- if (this.severity !== prevSeverity) this.log("severity", { severity: this.severity });
10449
+ if (this.severity !== prevSeverity)
10450
+ this.log("severity", { severity: this.severity }, prevSeverity);
10441
10451
  }
10442
10452
  recordHealthyHint() {
10443
10453
  if (!this.cfg.enabled && !this.observeOnly) return;
@@ -10457,16 +10467,17 @@ var BackpressureManager = class {
10457
10467
  if (now2 - this.lastRecoverCheck < this.cfg.recoveryIntervalMs) return;
10458
10468
  this.lastRecoverCheck = now2;
10459
10469
  if (now2 - this.lastEventAt > this.cfg.decayQuietMs) {
10470
+ const prev = this.severity;
10460
10471
  if (this.severity === "severe") this.severity = "soft";
10461
10472
  else if (this.severity === "soft") this.severity = "healthy";
10462
10473
  if (this.severity === "healthy") this.consecutive = 0;
10463
- this.log("severity", { severity: this.severity });
10474
+ if (prev !== this.severity) this.log("severity", { severity: this.severity }, prev);
10464
10475
  }
10465
10476
  if (this.permitsMax !== null) {
10466
10477
  const bootstrapCap = this.cfg.initialMaxConcurrency ?? 16;
10467
10478
  if (this.permitsMax < bootstrapCap) {
10468
10479
  this.permitsMax = Math.min(bootstrapCap, this.permitsMax + this.cfg.recoveryStep);
10469
- this.log("permits.recover", { max: this.permitsMax });
10480
+ this.log("permits.recover", { max: this.permitsMax }, this.severity);
10470
10481
  this.release();
10471
10482
  }
10472
10483
  }
@@ -18762,4 +18773,4 @@ export {
18762
18773
  withTimeoutTE,
18763
18774
  eventuallyTE
18764
18775
  };
18765
- //# sourceMappingURL=chunk-FMCCRZJE.js.map
18776
+ //# sourceMappingURL=chunk-OL2FCI2Q.js.map