Skip to content

Commit 128e737

Browse files
authored
chore: Update CHANGELOG for v1.6.0 (#1043)
1 parent b66b577 commit 128e737

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

CHANGELOG.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,63 @@ All notable changes to this project will be documented in this file.
44

55
Breaking changes marked with a :boom:
66

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:
33+
34+
```ts
35+
setDefaultSignalHandler((signalName: string, ...args: unknown[]) => {
36+
// ...
37+
});
38+
```
39+
40+
- [`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),
47+
- [process crashing unexplainedly](https://github.com/temporalio/sdk-typescript/issues/1033),
48+
- "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)).
63+
764
## [1.5.2] - 2022-12-07
865

966
### Bug fixes

0 commit comments

Comments
 (0)