npm @temporalio/testing 1.22.0
v1.22.0

4 hours ago

What's Changed

Added

  • Experimental: Added TypeInfo and TransferTypeConverter to @temporalio/common for 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 with maxEagerActivityReservationsPerWorkflowTask. Setting it to zero disables
    eager activity execution.
  • UpdateWorkflow-backed Nexus operations. A Temporal Nexus operation can now be backed by a Workflow
    Update via TemporalNexusClient.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 the cancelWorkflowUpdate handler option; the default rejects with a
    NOT_IMPLEMENTED handler error.
  • @temporalio/ai-sdk: listToolsActivity/callToolActivity now 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 new mcpConnectionIdleTimeout option on createActivities and
    AiSdkPluginOptions (defaults to 5 minutes); pass mcpConnectionIdleTimeout: 0 to 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-core 0.6.0)

Fixed

  • strands: Declare zod as a peer dependency.
  • workflow-streams: WorkflowStream.onPoll no longer serves a stale log index for a poll that
    was parked across a truncate() 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 makeTestFunction to manage their test environment.

Security

  • Bumped the vendored quinn-proto in @temporalio/core-bridge's Cargo.lock from 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

Full Changelog: v1.21.1...v1.22.0

Don't miss a new testing release

NewReleases is sending notifications on new releases.