github temporalio/sdk-typescript v1.24.0

4 hours ago

Breaking Changes

  • @temporalio/openai-agents now requires @openai/agents-core and @openai/agents-openai ~0.14.3. A project
    pinned to 0.13.x or earlier hits a peer dependency conflict until it upgrades.
  • Experimental: External storage StorageDriverSelector now receives a
    StorageDriverSelectContext instead of a StorageDriverStoreContext. Update the parameter
    type; the new type carries the same abortSignal and target fields.

Added

  • Experimental: New methods for ActivityHandle: pause, unpause, updateOptions and restoreOriginalOptions.
  • ActivityHandle.describe now accepts options that can be used to include additional data associated
    with activity execution, such as input and result.
  • Experimental: @temporalio/openai-agents can run OpenAI Agents SandboxAgents as Temporal Workflows. SandboxAgent
    operations are Activities; hosted tool credentials and sandbox environment values that reference allowlisted Worker
    environment variables are resolved on Worker so their values are not recorded in Workflow history.
  • Experimental: Added rawValueTypeInfo, which allows RawValue inputs and results to be preserved across
    serialization boundaries when explicitly configured on TypeInfo-aware APIs.
  • Experimental: External Storage download and upload metrics are now reported to Core on Workflow Activation
    completions and included in its workflow-task duration log.

Changed

  • Standalone Activities APIs are stable.
  • ActivityClient now passes serialization context to data converter when interacting with standalone activities.
  • A workflow query issued from inside a Nexus operation handler now propagates the link the server
    returns for the workflow that processed it, so the caller's Nexus operation event points back at
    the queried workflow.
  • A common.v1.Link.Workflow now serializes to temporal:///namespaces/{ns}/workflows/{wid}/{rid}
    with the optional reason as a query param, matching the other SDKs; previously it reused the
    workflow event path and dropped reason. Inbound Workflow links are now parsed as well.

Fixed

  • Activity errors converted to ApplicationFailure now preserve native Error.cause chains in serialized failures.
  • Nexus handlers now report uncaught Workflow and standalone Activity already-started errors as
    non-retryable INTERNAL Handler Errors, preventing retries when ID reuse or conflict
    policies reject duplicate execution IDs.
  • Workflow activation failures now retain Workflow state until Core eviction, preventing premature
    execution-context disposal after converter or codec errors.
  • Fixed non-sticky Workflow Task poller starvation on Workers configured with a small Workflow cache
    (maxCachedWorkflows). Sticky pollers could consume every Workflow-cache permit and starve the
    non-sticky poller, so a Worker could stop accepting new Workflows until a poll timed out (up to
    ~60s). (Core fix: temporalio/sdk-rust#1534.)
  • Bumped the core-bridge HTTP/2 client stack (h2 0.4.13 → 0.4.19, hyper 1.8.1 → 1.11.0), picking up
    upstream fixes for stream-cancel flow-control leaks and missed wakeups on reset/trailers that can
    affect cancellation-heavy long-poll workloads.

New Contributors

Full Changelog: v1.23.0...v1.24.0

Don't miss a new sdk-typescript release

NewReleases is sending notifications on new releases.