@temporalio/workflow
Advanced tools
Comparing version 0.17.0 to 0.17.1
@@ -386,13 +386,10 @@ "use strict"; | ||
else { | ||
const failure = (0, common_1.ensureTemporalFailure)(error); | ||
if (failure instanceof common_1.ApplicationFailure) { | ||
if (!failure.nonRetryable) { | ||
// This results in an unhandled rejection which will fail the activation | ||
// preventing it from completing. | ||
throw error; | ||
} | ||
if (!(error instanceof common_1.TemporalFailure)) { | ||
// This results in an unhandled rejection which will fail the activation | ||
// preventing it from completing. | ||
throw error; | ||
} | ||
exports.state.pushCommand({ | ||
failWorkflowExecution: { | ||
failure: await (0, common_1.errorToFailure)(failure, exports.state.dataConverter), | ||
failure: await (0, common_1.errorToFailure)(error, exports.state.dataConverter), | ||
}, | ||
@@ -399,0 +396,0 @@ }, true); |
@@ -25,6 +25,6 @@ "use strict"; | ||
global.WeakRef = function () { | ||
throw new errors_1.DeterminismViolationError('WeakRef cannot be used in workflows because v8 GC is non-deterministic'); | ||
throw new errors_1.DeterminismViolationError('WeakRef cannot be used in Workflows because v8 GC is non-deterministic'); | ||
}; | ||
global.FinalizationRegistry = function () { | ||
throw new errors_1.DeterminismViolationError('FinalizationRegistry cannot be used in workflows because v8 GC is non-deterministic'); | ||
throw new errors_1.DeterminismViolationError('FinalizationRegistry cannot be used in Workflows because v8 GC is non-deterministic'); | ||
}; | ||
@@ -87,3 +87,3 @@ const OriginalDate = globalThis.Date; | ||
globalThis.WeakRef = function () { | ||
throw new errors_1.DeterminismViolationError('WeakRef cannot be used in workflows because v8 GC is non-deterministic'); | ||
throw new errors_1.DeterminismViolationError('WeakRef cannot be used in Workflows because v8 GC is non-deterministic'); | ||
}; | ||
@@ -90,0 +90,0 @@ internals_1.state.info = info; |
{ | ||
"name": "@temporalio/workflow", | ||
"version": "0.17.0", | ||
"version": "0.17.1", | ||
"description": "Temporal.io SDK Workflow sub-package", | ||
@@ -16,4 +16,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@temporalio/common": "^0.17.0", | ||
"@temporalio/proto": "^0.17.0" | ||
"@temporalio/common": "^0.17.1", | ||
"@temporalio/proto": "^0.17.1" | ||
}, | ||
@@ -30,3 +30,3 @@ "bugs": { | ||
}, | ||
"gitHead": "7706410cb67a1c92b9ae9eea1cac48e0dad4a8d1" | ||
"gitHead": "3ee26c92e9c18500f919654a402237a86e69652e" | ||
} |
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
170184
2989
Updated@temporalio/common@^0.17.1
Updated@temporalio/proto@^0.17.1