What's Changed
Added
- Experimental: Added
TypeInfoandTransferTypeConverterto@temporalio/commonfor converting
application values to and from serialization-friendly transfer types and supplying converter-specific hints. - Workers can now configure the number of activity slots reserved for eager execution per
workflow task withmaxEagerActivityReservationsPerWorkflowTask. Setting it to zero disables
eager activity execution. - UpdateWorkflow-backed Nexus operations. A Temporal Nexus operation can now be backed by a Workflow
Update viaTemporalNexusClient.getWorkflowHandle(...).update(...), in addition to a Workflow run.
The Update request carries the Nexus request ID (for deduplication), the request links, and a
completion callback bearing the operation token, so the Update's completion is delivered back to the
Nexus caller. Only asynchronous,ACCEPTED-stage updates are supported (a callback URL is
required); an update that has already completed is returned synchronously, and a completed-with-error
update (e.g. a validation rejection) surfaces as a failed Nexus operation. Cancellation is
customizable via thecancelWorkflowUpdatehandler option; the default rejects with a
NOT_IMPLEMENTEDhandler error. @temporalio/ai-sdk:listToolsActivity/callToolActivitynow reuse a single MCP client connection
across repeated invocations for the same server instead of creating and closing one on every call.
Configure the idle window via the newmcpConnectionIdleTimeoutoption oncreateActivitiesand
AiSdkPluginOptions(defaults to 5 minutes); passmcpConnectionIdleTimeout: 0to opt out and restore
the original behavior for MCP servers/transports that don't tolerate a reused or concurrent session.
Changed
- Updated Core to
65b25ada(temporal-core0.6.0)
Fixed
- strands: Declare
zodas a peer dependency. - workflow-streams:
WorkflowStream.onPollno longer serves a stale log index for a poll that
was parked across atruncate()call, which could silently skip events. - Workflows no longer retain completion state when a child Workflow fails or is cancelled before starting.
- Local Activity tests now use
makeTestFunctionto manage their test environment.
Security
- Bumped the vendored
quinn-protoin@temporalio/core-bridge'sCargo.lockfrom 0.11.14 to
0.11.15, clearing GHSA-4w2j-m93h-cj5j / RUSTSEC-2026-0185 (unbounded out-of-order stream
reassembly DoS) for downstream image scanners.
New Contributors
- @Bathula-Adiseshu made their first contribution in #2267
- @aayushbaluni made their first contribution in #2036
- @wankhede04 made their first contribution in #2223
- @becho2 made their first contribution in #2293
Full Changelog: v1.21.1...v1.22.0