@temporalio/workflow
Advanced tools
Comparing version 1.8.2 to 1.8.3
@@ -5,6 +5,5 @@ "use strict"; | ||
const common_1 = require("@temporalio/common"); | ||
const type_helpers_1 = require("@temporalio/common/lib/type-helpers"); | ||
const versioning_intent_enum_1 = require("@temporalio/common/lib/versioning-intent-enum"); | ||
const time_1 = require("@temporalio/common/lib/time"); | ||
const interceptors_1 = require("@temporalio/common/lib/interceptors"); | ||
const proto_1 = require("@temporalio/proto"); | ||
const cancellation_scope_1 = require("./cancellation-scope"); | ||
@@ -130,3 +129,3 @@ const interfaces_1 = require("./interfaces"); | ||
doNotEagerlyExecute: !(options.allowEagerDispatch ?? true), | ||
versioningIntent: versioningIntentToProto(options.versioningIntent), | ||
versioningIntent: (0, versioning_intent_enum_1.versioningIntentToProto)(options.versioningIntent), | ||
}, | ||
@@ -295,3 +294,3 @@ }); | ||
memo: options.memo && (0, common_1.mapToPayloads)(activator.payloadConverter, options.memo), | ||
versioningIntent: versioningIntentToProto(options.versioningIntent), | ||
versioningIntent: (0, versioning_intent_enum_1.versioningIntentToProto)(options.versioningIntent), | ||
}, | ||
@@ -693,3 +692,3 @@ }); | ||
workflowTaskTimeout: (0, time_1.msOptionalToTs)(options.workflowTaskTimeout), | ||
versioningIntent: versioningIntentToProto(options.versioningIntent), | ||
versioningIntent: (0, versioning_intent_enum_1.versioningIntentToProto)(options.versioningIntent), | ||
}); | ||
@@ -1024,14 +1023,2 @@ }); | ||
} | ||
function versioningIntentToProto(intent) { | ||
switch (intent) { | ||
case 'DEFAULT': | ||
return proto_1.coresdk.common.VersioningIntent.DEFAULT; | ||
case 'COMPATIBLE': | ||
return proto_1.coresdk.common.VersioningIntent.COMPATIBLE; | ||
case undefined: | ||
return proto_1.coresdk.common.VersioningIntent.UNSPECIFIED; | ||
default: | ||
(0, type_helpers_1.assertNever)('Unexpected VersioningIntent', intent); | ||
} | ||
} | ||
//# sourceMappingURL=workflow.js.map |
{ | ||
"name": "@temporalio/workflow", | ||
"version": "1.8.2", | ||
"version": "1.8.3", | ||
"description": "Temporal.io SDK Workflow sub-package", | ||
@@ -25,4 +25,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@temporalio/common": "1.8.2", | ||
"@temporalio/proto": "1.8.2" | ||
"@temporalio/common": "1.8.3", | ||
"@temporalio/proto": "1.8.3" | ||
}, | ||
@@ -39,3 +39,3 @@ "devDependencies": { | ||
], | ||
"gitHead": "d85bf54da757741b438f8d39a0e7265b80d4f0d6" | ||
"gitHead": "7d1c0ec969b897b4f32bd5a8eda9819a03bd2f83" | ||
} |
@@ -15,3 +15,2 @@ import { | ||
UntypedActivities, | ||
VersioningIntent, | ||
WithWorkflowArgs, | ||
@@ -22,6 +21,5 @@ Workflow, | ||
} from '@temporalio/common'; | ||
import { assertNever } from '@temporalio/common/lib/type-helpers'; | ||
import { versioningIntentToProto } from '@temporalio/common/lib/versioning-intent-enum'; | ||
import { Duration, msOptionalToTs, msToNumber, msToTs, tsToMs } from '@temporalio/common/lib/time'; | ||
import { composeInterceptors } from '@temporalio/common/lib/interceptors'; | ||
import { coresdk } from '@temporalio/proto'; | ||
import { CancellationScope, registerSleepImplementation } from './cancellation-scope'; | ||
@@ -1341,14 +1339,1 @@ import { | ||
} | ||
function versioningIntentToProto(intent: VersioningIntent | undefined): coresdk.common.VersioningIntent { | ||
switch (intent) { | ||
case 'DEFAULT': | ||
return coresdk.common.VersioningIntent.DEFAULT; | ||
case 'COMPATIBLE': | ||
return coresdk.common.VersioningIntent.COMPATIBLE; | ||
case undefined: | ||
return coresdk.common.VersioningIntent.UNSPECIFIED; | ||
default: | ||
assertNever('Unexpected VersioningIntent', intent); | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
347512
7300
+ Added@temporalio/common@1.8.3(transitive)
+ Added@temporalio/proto@1.8.3(transitive)
- Removed@temporalio/common@1.8.2(transitive)
- Removed@temporalio/proto@1.8.2(transitive)
Updated@temporalio/common@1.8.3
Updated@temporalio/proto@1.8.3