v1.40.0
Breaking Changes
Due to Standalone Activities, testActivityToken are used to keep track of activities, instead of just activityID, they now contain activityID and runID. Most users should not be affected, only if you're manually constructing task tokens in your tests.
Highlights
Versioning v1 and v2 worker options and versioning intent have been marked as deprecated.
Bug fixes
Various test fixes and improvements
Properly set RootWorkflowExecution in child workflow env when testing.
Enforcement of heartbeat and start-to-close timeouts in test environment, as well as properly cancel timer when AwaitWithTimeout condition resolves.
What's Changed
- Additional fields in env config by @stephanos in https://github.com/temporalio/sdk-go/pull/2145
- Enforce heartbeat and start-to-close timeouts in test environment by @mfateev in https://github.com/temporalio/sdk-go/pull/2144
- Upgrade Datadog tracer to dd-trace-go v2 by @yarinzirlin in https://github.com/temporalio/sdk-go/pull/2113
- Add release notes for contrib/datadog v0.5.0 by @yuandrew in https://github.com/temporalio/sdk-go/pull/2168
- Cancel timer when AwaitWithTimeout condition resolves by @mfateev in https://github.com/temporalio/sdk-go/pull/2153
- fix: set RootWorkflowExecution in child workflow env when testing by @pbrowne011 in https://github.com/temporalio/sdk-go/pull/2170
- Fix TestMockCallWrapperNotBefore test flake by @yuandrew in https://github.com/temporalio/sdk-go/pull/2173
- Enhance SDK flags so flags are off by default when first introduced by @yuandrew in https://github.com/temporalio/sdk-go/pull/2164
- Deprecate v1 and v2 versioning worker options and versioning intent by @carlydf in https://github.com/temporalio/sdk-go/pull/2174
- 💥 Standalone activities support by @maciejdudko in https://github.com/temporalio/sdk-go/pull/2158
- Switch from docker-compose to samples-server repo by @yuandrew in https://github.com/temporalio/sdk-go/pull/2183
- Remove experimental warning for worker deployment versioning and envconfig by @THardy98 in https://github.com/temporalio/sdk-go/pull/2176
- bump API to v1.62.1 by @yuandrew in https://github.com/temporalio/sdk-go/pull/2187
New Contributors
- @yarinzirlin made their first contribution in https://github.com/temporalio/sdk-go/pull/2113
- @pbrowne011 made their first contribution in https://github.com/temporalio/sdk-go/pull/2170
Full Changelog: https://github.com/temporalio/sdk-go/compare/v1.39.0...v1.40.0
Fetched April 11, 2026
