You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+57Lines changed: 57 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,63 @@ All notable changes to this project will be documented in this file.
4
4
5
5
Breaking changes marked with a :boom:
6
6
7
+
## [1.6.0] - 2023-01-30
8
+
9
+
### Features
10
+
11
+
- [`workflow`] (Experimental) Introduced a major optimization to the workflow runtime ([#951](https://github.com/temporalio/sdk-typescript/pull/951)).
12
+
13
+
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%.
14
+
15
+
To enable this feature, add `reuseV8Context: true` to your `WorkerOptions`.
16
+
17
+
- [`workflow`] Added `workflowInfo().startTime` and `workflowInfo().runStartTime`. ([#1031](https://github.com/temporalio/sdk-typescript/pull/1031))
18
+
19
+
- [`workflow`] Added support for default workflow handlers ([#1038](https://github.com/temporalio/sdk-typescript/pull/1038)).
20
+
21
+
A workflow bundle may opt-in to receive requests for non-registered workflow types by exporting a default function:
22
+
23
+
```ts
24
+
export default async function (...args: unknown[]): Promise<unknown> {
25
+
const { workflowType } = workflowInfo();
26
+
// ...
27
+
}
28
+
```
29
+
30
+
- [`workflow`] Added support for default signal handlers ([#1038](https://github.com/temporalio/sdk-typescript/pull/1038)).
31
+
32
+
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 variable `TEMPORAL_DEBUG=true` ([#1031](https://github.com/temporalio/sdk-typescript/pull/1031)).
41
+
42
+
### Bug Fixes
43
+
44
+
- A recent release of `@grpc/grpc-js` has been causing multiple issues:
45
+
46
+
- [10 seconds timeout on process exit](https://github.com/temporalio/sdk-typescript/issues/1023),
- "Failed to connect before deadline" errors, and more.
49
+
50
+
We pinned our dependencies on `@grpc/grpc-js` to `1.7.3` ([#1025](https://github.com/temporalio/sdk-typescript/pull/1025)). This pin will be removed once we confirm that the upstream project is stable again for our usage.
51
+
52
+
- [`client`] Multiple small changes to the experimental Schedules API. ([#1028](https://github.com/temporalio/sdk-typescript/pull/1028), [#1032](https://github.com/temporalio/sdk-typescript/pull/1032), [#1009](https://github.com/temporalio/sdk-typescript/pull/1009))
53
+
54
+
- [`workflow`] `instanceof` on `WorkflowInfo` fields now works as expected ([#1031](https://github.com/temporalio/sdk-typescript/pull/1031), [#659](https://github.com/temporalio/sdk-typescript/pull/659))
55
+
56
+
- [`create-project`] `create-project` now works correctly on Node 18 ([#995](https://github.com/temporalio/sdk-typescript/pull/995))
57
+
58
+
- [`core`] Fixed incorrect calculation of schedule-to-start timeouts on local activities ([#450](https://github.com/temporalio/sdk-core/pull/450)).
59
+
60
+
- [`core`] Fixed some rare case where sdk-core would panic on unexpected history fetching responses from the server ([#468](https://github.com/temporalio/sdk-core/pull/468)).
61
+
62
+
- [`core`] Fixed some rare case where an activation completion might get blocked if fetching history pages failed ([#475](https://github.com/temporalio/sdk-core/pull/475)).
0 commit comments