Update dependency @temporalio/worker to v1.7.0 (main) - autoclosed #340
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.5.2
->1.7.0
By merging this PR, the below vulnerabilities will be automatically resolved:
Release Notes
temporalio/sdk-typescript (@temporalio/worker)
v1.7.0
: 1.7.0Compare Source
Features
💥 [
worker
] The experimentalWorker.runReplayHistories
method, which allows efficient replay of a large numberof workflow histories, now returns an
AsyncIterableIterator
(#1067)EXAMPLE USAGE
💥 [
worker
]WorkerOptions.shutdownGraceTime
no longer forcefully shuts the worker down. Now, whenshutdownGraceTime
passes, the worker just sends Cancellation to running Activities.Set
WorkerOptions.shutdownForceTime
to force shutdown. (#1072)💥 [
testing
] Use Temporal CLI to power local test environment (#1077)Bug Fixes
Fail Workflow on
WorkflowExecutionAlreadyStartedError
(#1068)[
create-project
] While fixing dependencies on a newly instantiated project, we now recursively search forpackage.json and tsconfig.json (#1089 thanks to
@jhubbardsf
🙏)[
create-project
] Remove the.post-create
file (if it exists), before committing to git (#1018)💥 Completetly removed support for Node versions <= 14.17. Lot of our dependencies were already
requiring Node 14.18+ anyway. (#1070)
Load package
abort-controller
as a polyfill rather than a complete substitution.This will ensure using native implementation of that class in Node 16+ (#1070)
💥 This change might cause TypeScript to warn about incompatible types when working with libraries that are using
custom type definitions for the
AbortSignal
interface.[
client
] Get rid of experimentalAsyncLocalStorage.enterWith
call (#1080)[
core
] Fix slot metrics appearing to be off-by-one because of reservation (#479)[
core
] Fix misnamed metricworkflow_task_execution_failed
(#481)[
core
] Added an internal patching mechanism for adjusting SDK behavior based on what version of the SDK has previously processed the workflow. Note that this new mechanism requires server Temporal 1.20.0 or above. Any change that depends on such an internal patch will not be effective with older servers. (#482)💥 [
core
] Make activity (and child workflow) type / id mismatches will results in a non-deterministic change. That means that renaming an activity or a child workflow will now require a patch. Note that this change has been gated with an internal patch to avoid suddently failing with nondeterminism errors on older activity rename (see details above) (#475, #482)[
core
] Auto-fail new workflow tasks which encounter a problem upon their application, but before any activation has been issued to lang. This may fix some scenarios where previously a WFT would simply time out. (#482)Documentation
@jhubbardsf
🙏)v1.6.0
: 1.6.0Compare Source
Features
[
workflow
] (Experimental) Introduced a major optimization to the workflow runtime (#951).This optimization allows the worker to reuse execution context across workflows, without compromising the safety of the deterministic sandbox. Some initial performance tests have demonstrated reduction of RAM usage by as much as 66%, and reduction of CPU usage by up to 50%.
To enable this feature, add
reuseV8Context: true
to yourWorkerOptions
.[
workflow
] AddedworkflowInfo().startTime
andworkflowInfo().runStartTime
. (#1031)[
workflow
] Added support for default workflow handlers (#1038).A workflow bundle may opt-in to receive requests for non-registered workflow types by exporting a default function:
[
workflow
] Added support for default signal handlers (#1038).A workflow function may opt-in to receive requests for non-registered signals with:
[
worker
] It is now possible to launch workers in debug mode by setting environment variableTEMPORAL_DEBUG=true
(#1031).Bug Fixes
A recent release of
@grpc/grpc-js
has been causing multiple issues:We pinned our dependencies on
@grpc/grpc-js
to1.7.3
(#1025). This pin will be removed once we confirm that the upstream project is stable again for our usage.[
client
] Multiple small changes to the experimental Schedules API. (#1028, #1032, #1009)[
workflow
]instanceof
onWorkflowInfo
fields now works as expected (#1031, #659)[
create-project
]create-project
now works correctly on Node 18 (#995)[
core
] Fixed incorrect calculation of schedule-to-start timeouts on local activities (#450).[
core
] Fixed some rare case where sdk-core would panic on unexpected history fetching responses from the server (#468).[
core
] Fixed some rare case where an activation completion might get blocked if fetching history pages failed (#478).