@dudousxd/nestjs-durable 0.59.0 → 0.60.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 +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WorkflowCtx, SearchAttributes, WorkflowClass, StandardSchemaV1, StepError, OnEventEntry, OnErrorInput, LifecycleEventOf, WorkflowLifecycleEvent, WorkflowRef, SingletonConfig, ConcurrencyConfig, SearchAttributesSchema, EventBatchConfig, TenantVerifier, VerifiedTenant, TenantTokenSource, StateStore, Transport, NamedTransport, ControlPlane, StalledRunInfo, ScheduledWorkflow, RetentionPolicy, QueueConfig, AdmissionBackend, WorkflowInputOf, StartOptions, RunResult, RunGateway, WorkflowEngine, EntityHandler, RunRequest, RunReply, TenantFilter as TenantFilter$1, DurableTopology, RunDetailOptions, RunDetail, FanPageQuery, FanPage, WorkflowRun, RunQuery, RunListItem, RunFacetQuery, RunFacetRow, RunValueAxis, RunValueFacetOptions, RunValueFacetRow, GroupHealth, RunWaiting, RepublishLifecycleTarget, RepublishLifecycleResult, WorkflowLifecycleLinks, EngineEvent, StepInvocation, LifecycleKind, TenantEvent, SignalOptions } from '@dudousxd/nestjs-durable-core';
|
|
2
|
-
export { AttributeFilter, DynamicWorkflowCtx, EngineEvent, EventSubscription, InferSearchAttributes, LIFECYCLE_PENDING_TAG, LifecycleEventOf, LifecycleKind, OnErrorInput, OnEventEntry, RunDetail, RunGateway, RunListItem, RunQuery, RunSchedulesOptions, RunStatus, RunWaiting, ScheduledWorkflow, SearchAttributes, SearchAttributesSchema, StepCheckpoint, StepEvent, StepLogger, TenantTokenSource, TenantVerifier, VerifiedTenant, WorkflowCtx, WorkflowEngine, WorkflowHandler, WorkflowLifecycleEvent, WorkflowRun, hmacTenantVerifier, lifecycleRunId, lifecycleSourceOf, prevCronFireMs, readSearchAttributes, runCompletedEvent, runFailedEvent, runSchedules, scheduleRunIdAt, scheduledRunId, signTenantToken, triggeredRunsOf } from '@dudousxd/nestjs-durable-core';
|
|
2
|
+
export { AttributeFilter, DuplicateDurableCopyError, DynamicWorkflowCtx, EngineEvent, EventSubscription, InferSearchAttributes, LIFECYCLE_PENDING_TAG, LifecycleEventOf, LifecycleKind, OnErrorInput, OnEventEntry, RunDetail, RunGateway, RunListItem, RunQuery, RunSchedulesOptions, RunStatus, RunWaiting, ScheduledWorkflow, SearchAttributes, SearchAttributesSchema, StepCheckpoint, StepEvent, StepLogger, TenantTokenSource, TenantVerifier, VerifiedTenant, WorkflowCtx, WorkflowEngine, WorkflowHandler, WorkflowLifecycleEvent, WorkflowRun, hmacTenantVerifier, lifecycleRunId, lifecycleSourceOf, prevCronFireMs, readSearchAttributes, runCompletedEvent, runFailedEvent, runSchedules, scheduleRunIdAt, scheduledRunId, signTenantToken, triggeredRunsOf } from '@dudousxd/nestjs-durable-core';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { ConcurrencyOption, StartRunDeps, RunRedisWorkerOptions, RunningWorker, DurableWorkerRuntime } from '@dudousxd/durable-worker';
|
|
5
5
|
import { DynamicModule, InjectionToken, OnModuleInit, OnApplicationBootstrap, OnApplicationShutdown, Provider } from '@nestjs/common';
|
|
@@ -1160,6 +1160,13 @@ interface DurableModuleAsyncOptions {
|
|
|
1160
1160
|
useFactory: (...args: never[]) => DurableModuleOptions | Promise<DurableModuleOptions>;
|
|
1161
1161
|
inject?: InjectionToken[];
|
|
1162
1162
|
}
|
|
1163
|
+
/**
|
|
1164
|
+
* `forRoot` / `forRootAsync` first refuse to boot when two different installs of
|
|
1165
|
+
* `@dudousxd/nestjs-durable-core` are loaded in this process (a pnpm peer-variant split): each copy
|
|
1166
|
+
* has its own `WorkflowEngine` class, so code from one copy cannot resolve the engine the other copy
|
|
1167
|
+
* registered. They throw `DuplicateDurableCopyError` naming both installs, and a distinct copy that
|
|
1168
|
+
* loads afterwards throws on load.
|
|
1169
|
+
*/
|
|
1163
1170
|
declare class DurableModule {
|
|
1164
1171
|
static forRoot(options: DurableModuleOptions): DynamicModule;
|
|
1165
1172
|
static forRootAsync(options: DurableModuleAsyncOptions): DynamicModule;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WorkflowCtx, SearchAttributes, WorkflowClass, StandardSchemaV1, StepError, OnEventEntry, OnErrorInput, LifecycleEventOf, WorkflowLifecycleEvent, WorkflowRef, SingletonConfig, ConcurrencyConfig, SearchAttributesSchema, EventBatchConfig, TenantVerifier, VerifiedTenant, TenantTokenSource, StateStore, Transport, NamedTransport, ControlPlane, StalledRunInfo, ScheduledWorkflow, RetentionPolicy, QueueConfig, AdmissionBackend, WorkflowInputOf, StartOptions, RunResult, RunGateway, WorkflowEngine, EntityHandler, RunRequest, RunReply, TenantFilter as TenantFilter$1, DurableTopology, RunDetailOptions, RunDetail, FanPageQuery, FanPage, WorkflowRun, RunQuery, RunListItem, RunFacetQuery, RunFacetRow, RunValueAxis, RunValueFacetOptions, RunValueFacetRow, GroupHealth, RunWaiting, RepublishLifecycleTarget, RepublishLifecycleResult, WorkflowLifecycleLinks, EngineEvent, StepInvocation, LifecycleKind, TenantEvent, SignalOptions } from '@dudousxd/nestjs-durable-core';
|
|
2
|
-
export { AttributeFilter, DynamicWorkflowCtx, EngineEvent, EventSubscription, InferSearchAttributes, LIFECYCLE_PENDING_TAG, LifecycleEventOf, LifecycleKind, OnErrorInput, OnEventEntry, RunDetail, RunGateway, RunListItem, RunQuery, RunSchedulesOptions, RunStatus, RunWaiting, ScheduledWorkflow, SearchAttributes, SearchAttributesSchema, StepCheckpoint, StepEvent, StepLogger, TenantTokenSource, TenantVerifier, VerifiedTenant, WorkflowCtx, WorkflowEngine, WorkflowHandler, WorkflowLifecycleEvent, WorkflowRun, hmacTenantVerifier, lifecycleRunId, lifecycleSourceOf, prevCronFireMs, readSearchAttributes, runCompletedEvent, runFailedEvent, runSchedules, scheduleRunIdAt, scheduledRunId, signTenantToken, triggeredRunsOf } from '@dudousxd/nestjs-durable-core';
|
|
2
|
+
export { AttributeFilter, DuplicateDurableCopyError, DynamicWorkflowCtx, EngineEvent, EventSubscription, InferSearchAttributes, LIFECYCLE_PENDING_TAG, LifecycleEventOf, LifecycleKind, OnErrorInput, OnEventEntry, RunDetail, RunGateway, RunListItem, RunQuery, RunSchedulesOptions, RunStatus, RunWaiting, ScheduledWorkflow, SearchAttributes, SearchAttributesSchema, StepCheckpoint, StepEvent, StepLogger, TenantTokenSource, TenantVerifier, VerifiedTenant, WorkflowCtx, WorkflowEngine, WorkflowHandler, WorkflowLifecycleEvent, WorkflowRun, hmacTenantVerifier, lifecycleRunId, lifecycleSourceOf, prevCronFireMs, readSearchAttributes, runCompletedEvent, runFailedEvent, runSchedules, scheduleRunIdAt, scheduledRunId, signTenantToken, triggeredRunsOf } from '@dudousxd/nestjs-durable-core';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { ConcurrencyOption, StartRunDeps, RunRedisWorkerOptions, RunningWorker, DurableWorkerRuntime } from '@dudousxd/durable-worker';
|
|
5
5
|
import { DynamicModule, InjectionToken, OnModuleInit, OnApplicationBootstrap, OnApplicationShutdown, Provider } from '@nestjs/common';
|
|
@@ -1160,6 +1160,13 @@ interface DurableModuleAsyncOptions {
|
|
|
1160
1160
|
useFactory: (...args: never[]) => DurableModuleOptions | Promise<DurableModuleOptions>;
|
|
1161
1161
|
inject?: InjectionToken[];
|
|
1162
1162
|
}
|
|
1163
|
+
/**
|
|
1164
|
+
* `forRoot` / `forRootAsync` first refuse to boot when two different installs of
|
|
1165
|
+
* `@dudousxd/nestjs-durable-core` are loaded in this process (a pnpm peer-variant split): each copy
|
|
1166
|
+
* has its own `WorkflowEngine` class, so code from one copy cannot resolve the engine the other copy
|
|
1167
|
+
* registered. They throw `DuplicateDurableCopyError` naming both installs, and a distinct copy that
|
|
1168
|
+
* loads afterwards throws on load.
|
|
1169
|
+
*/
|
|
1163
1170
|
declare class DurableModule {
|
|
1164
1171
|
static forRoot(options: DurableModuleOptions): DynamicModule;
|
|
1165
1172
|
static forRootAsync(options: DurableModuleAsyncOptions): DynamicModule;
|
package/dist/index.js
CHANGED
|
@@ -1231,7 +1231,7 @@ function unavailableRunGateway() {
|
|
|
1231
1231
|
__name(unavailableRunGateway, "unavailableRunGateway");
|
|
1232
1232
|
|
|
1233
1233
|
// src/durable.module.ts
|
|
1234
|
-
import { DURABLE_OPTIONS, DURABLE_OPTIONS_CANONICAL as DURABLE_OPTIONS_CANONICAL8, RunGateway as RunGateway2, STATE_STORE, STATE_STORE_CANONICAL as STATE_STORE_CANONICAL4, TRANSPORT, TRANSPORT_CANONICAL as TRANSPORT_CANONICAL3, WorkflowEngine as WorkflowEngine6, useDurableExecution } from "@dudousxd/nestjs-durable-core";
|
|
1234
|
+
import { DURABLE_OPTIONS, DURABLE_OPTIONS_CANONICAL as DURABLE_OPTIONS_CANONICAL8, RunGateway as RunGateway2, STATE_STORE, STATE_STORE_CANONICAL as STATE_STORE_CANONICAL4, TRANSPORT, TRANSPORT_CANONICAL as TRANSPORT_CANONICAL3, WorkflowEngine as WorkflowEngine6, sealDurableCopies, useDurableExecution } from "@dudousxd/nestjs-durable-core";
|
|
1235
1235
|
import { Inject as Inject9, Injectable as Injectable13, Module } from "@nestjs/common";
|
|
1236
1236
|
import { DiscoveryModule, ModuleRef as ModuleRef2 } from "@nestjs/core";
|
|
1237
1237
|
|
|
@@ -3884,6 +3884,7 @@ var DurableModule = class _DurableModule {
|
|
|
3884
3884
|
__name(this, "DurableModule");
|
|
3885
3885
|
}
|
|
3886
3886
|
static forRoot(options) {
|
|
3887
|
+
sealDurableCopies();
|
|
3887
3888
|
_DurableModule.assertValid(options);
|
|
3888
3889
|
return _DurableModule.build({
|
|
3889
3890
|
provide: DURABLE_OPTIONS_CANONICAL8,
|
|
@@ -3891,6 +3892,7 @@ var DurableModule = class _DurableModule {
|
|
|
3891
3892
|
});
|
|
3892
3893
|
}
|
|
3893
3894
|
static forRootAsync(options) {
|
|
3895
|
+
sealDurableCopies();
|
|
3894
3896
|
return _DurableModule.build({
|
|
3895
3897
|
provide: DURABLE_OPTIONS_CANONICAL8,
|
|
3896
3898
|
useFactory: /* @__PURE__ */ __name(async (...args) => {
|
|
@@ -4100,7 +4102,7 @@ DurableModule = _ts_decorate13([
|
|
|
4100
4102
|
], DurableModule);
|
|
4101
4103
|
|
|
4102
4104
|
// src/index.ts
|
|
4103
|
-
import { hmacTenantVerifier, LIFECYCLE_PENDING_TAG, lifecycleRunId, lifecycleSourceOf as lifecycleSourceOf2, prevCronFireMs, readSearchAttributes as readSearchAttributes2, RunGateway as RunGateway3, runCompletedEvent as runCompletedEvent2, runFailedEvent as runFailedEvent2, runSchedules as runSchedules2, scheduledRunId, scheduleRunIdAt, signTenantToken, triggeredRunsOf, WorkflowEngine as WorkflowEngine7 } from "@dudousxd/nestjs-durable-core";
|
|
4105
|
+
import { DuplicateDurableCopyError, hmacTenantVerifier, LIFECYCLE_PENDING_TAG, lifecycleRunId, lifecycleSourceOf as lifecycleSourceOf2, prevCronFireMs, readSearchAttributes as readSearchAttributes2, RunGateway as RunGateway3, runCompletedEvent as runCompletedEvent2, runFailedEvent as runFailedEvent2, runSchedules as runSchedules2, scheduledRunId, scheduleRunIdAt, signTenantToken, triggeredRunsOf, WorkflowEngine as WorkflowEngine7 } from "@dudousxd/nestjs-durable-core";
|
|
4104
4106
|
export {
|
|
4105
4107
|
BAD_RUN_REQUEST,
|
|
4106
4108
|
CONTEXT_ACCESSOR,
|
|
@@ -4109,6 +4111,7 @@ export {
|
|
|
4109
4111
|
DURABLE_WORKER_RUNNERS,
|
|
4110
4112
|
DURABLE_WORKER_RUNTIME,
|
|
4111
4113
|
DeadLetter,
|
|
4114
|
+
DuplicateDurableCopyError,
|
|
4112
4115
|
DurableModule,
|
|
4113
4116
|
DurableStartClient,
|
|
4114
4117
|
ENTITY_METADATA,
|