@dudousxd/nestjs-durable-core 0.55.0 → 0.56.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/dist/index.cjs +0 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -8
- package/dist/index.d.ts +1 -8
- package/dist/index.js +0 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1155,13 +1155,6 @@ interface Transport {
|
|
|
1155
1155
|
onResult(handler: (result: StepResult) => Promise<void>): void;
|
|
1156
1156
|
/** worker → engine: liveness signal for an in-flight long step. */
|
|
1157
1157
|
onHeartbeat(handler: (beat: Heartbeat) => Promise<void>): void;
|
|
1158
|
-
/**
|
|
1159
|
-
* Partition this transport's queues/keys by `namespace` (matching the engine's store namespace), so
|
|
1160
|
-
* multiple logical deployments can share one broker. Idempotent. An explicit namespace passed to the
|
|
1161
|
-
* transport's constructor TAKES PRECEDENCE over this. No-op when `namespace === "default"`. Optional —
|
|
1162
|
-
* transports that don't partition simply omit it.
|
|
1163
|
-
*/
|
|
1164
|
-
useNamespace?(namespace: string): void;
|
|
1165
1158
|
/** Release the transport's resources (broker workers, queues, connections) for a clean shutdown.
|
|
1166
1159
|
* Optional — an in-process transport has nothing to close. Called on `onApplicationShutdown`
|
|
1167
1160
|
* after the engine drains, so a deploy hands off instead of leaving the broker to time out. */
|
|
@@ -3553,7 +3546,7 @@ declare function readSearchAttributes<S extends SearchAttributesSchema>(schema:
|
|
|
3553
3546
|
|
|
3554
3547
|
/**
|
|
3555
3548
|
* Compute the worker group a tenant's run dispatches to. Mirrors the transport's
|
|
3556
|
-
* default-is-bare rule (
|
|
3549
|
+
* default-is-bare rule (unset/empty/`'default'` ⇒ bare): a
|
|
3557
3550
|
* `tenant` of `undefined`, `''`, or `'default'` is the bare `baseGroup`, so a single-tenant
|
|
3558
3551
|
* deployment (or the `'default'` tenant of a multi-tenant one) stays byte-identical to today.
|
|
3559
3552
|
* Any other tenant suffixes the group as `<baseGroup>@<tenant>`, so an operator control plane
|
package/dist/index.d.ts
CHANGED
|
@@ -1155,13 +1155,6 @@ interface Transport {
|
|
|
1155
1155
|
onResult(handler: (result: StepResult) => Promise<void>): void;
|
|
1156
1156
|
/** worker → engine: liveness signal for an in-flight long step. */
|
|
1157
1157
|
onHeartbeat(handler: (beat: Heartbeat) => Promise<void>): void;
|
|
1158
|
-
/**
|
|
1159
|
-
* Partition this transport's queues/keys by `namespace` (matching the engine's store namespace), so
|
|
1160
|
-
* multiple logical deployments can share one broker. Idempotent. An explicit namespace passed to the
|
|
1161
|
-
* transport's constructor TAKES PRECEDENCE over this. No-op when `namespace === "default"`. Optional —
|
|
1162
|
-
* transports that don't partition simply omit it.
|
|
1163
|
-
*/
|
|
1164
|
-
useNamespace?(namespace: string): void;
|
|
1165
1158
|
/** Release the transport's resources (broker workers, queues, connections) for a clean shutdown.
|
|
1166
1159
|
* Optional — an in-process transport has nothing to close. Called on `onApplicationShutdown`
|
|
1167
1160
|
* after the engine drains, so a deploy hands off instead of leaving the broker to time out. */
|
|
@@ -3553,7 +3546,7 @@ declare function readSearchAttributes<S extends SearchAttributesSchema>(schema:
|
|
|
3553
3546
|
|
|
3554
3547
|
/**
|
|
3555
3548
|
* Compute the worker group a tenant's run dispatches to. Mirrors the transport's
|
|
3556
|
-
* default-is-bare rule (
|
|
3549
|
+
* default-is-bare rule (unset/empty/`'default'` ⇒ bare): a
|
|
3557
3550
|
* `tenant` of `undefined`, `''`, or `'default'` is the bare `baseGroup`, so a single-tenant
|
|
3558
3551
|
* deployment (or the `'default'` tenant of a multi-tenant one) stays byte-identical to today.
|
|
3559
3552
|
* Any other tenant suffixes the group as `<baseGroup>@<tenant>`, so an operator control plane
|
package/dist/index.js
CHANGED
|
@@ -1113,17 +1113,6 @@ var TransportPool = class {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
return void 0;
|
|
1115
1115
|
}
|
|
1116
|
-
/**
|
|
1117
|
-
* Propagate the engine's `namespace` to every transport that partitions by it — so the same
|
|
1118
|
-
* namespace that scopes the store also scopes each transport's queues/keys. A transport that
|
|
1119
|
-
* doesn't partition (no `useNamespace`) is skipped. Idempotent; a transport given an explicit
|
|
1120
|
-
* namespace at construction ignores this (see {@link Transport.useNamespace}).
|
|
1121
|
-
*/
|
|
1122
|
-
useNamespace(namespace) {
|
|
1123
|
-
for (const { transport } of this.transports) {
|
|
1124
|
-
transport.useNamespace?.(namespace);
|
|
1125
|
-
}
|
|
1126
|
-
}
|
|
1127
1116
|
/** Pinned `preferId` first, then the rest (failover order). */
|
|
1128
1117
|
ordered(preferId) {
|
|
1129
1118
|
if (!preferId) return this.transports;
|
|
@@ -1945,9 +1934,6 @@ var WorkflowEngine = class {
|
|
|
1945
1934
|
this.admission.onFreed?.((queue) => this.wakeQueueWaiters(queue));
|
|
1946
1935
|
this.instanceId = deps.instanceId ?? globalThis.crypto.randomUUID();
|
|
1947
1936
|
this.namespace = deps.namespace;
|
|
1948
|
-
if (this.namespace !== void 0) {
|
|
1949
|
-
this.pool.useNamespace(this.namespace);
|
|
1950
|
-
}
|
|
1951
1937
|
this.leaseMs = deps.leaseMs ?? 3e4;
|
|
1952
1938
|
this.maxRecoveryAttempts = deps.maxRecoveryAttempts;
|
|
1953
1939
|
this.remoteAdvanceSilenceMs = deps.remoteAdvanceSilenceMs;
|