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
+200Lines changed: 200 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,206 @@ 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.0.0-rc.0] - 2022-06-17
8
+
9
+
### Bug Fixes
10
+
11
+
- :boom: Use firstExecutionRunId and signaledRunId instead of originalRunId ([#664](https://github.com/temporalio/sdk-typescript/pull/664))
12
+
13
+
`originalRunId` is a concept related to resetting workflows. None of the instances of `originalRunId` in the SDK seem to do with resetting, so they were changed to `firstExecutionRunId` and `signaledRunId` for handles returned by `WorkflowClient.start` / `@temporalio/workflow:startChild` and `WorkflowClient.signalWithStart` respectively.
14
+
15
+
- Various improvements and fixes ([#660](https://github.com/temporalio/sdk-typescript/pull/660))
16
+
17
+
- Record memory usage in stress tests
18
+
- Run nightly at night (PST)
19
+
- Don't block runtime loop when creating new client
20
+
- Don't include proto converter in test workflows `index.ts` - cuts the **test** bundle size by half
21
+
- Fix inflight activity tracking
22
+
- Expose `WorkerStatus.numHeartbeatingActivities`
23
+
- Handle ShutdownError by name - closes [#614](https://github.com/temporalio/sdk-typescript/pull/614)
24
+
- Fix TS initiated activity cancellation not creating a proper `ApplicationFailure`
- Validate that RetryPolicy maximumAttempts is an integer ([#674](https://github.com/temporalio/sdk-typescript/pull/674))
28
+
29
+
Added a quick check that `maximumAttempts` is a number using [`Number.isInteger()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isInteger). This check explicitly excludes numbers like 3.1415 and `Number.POSITIVE_INFINITY`.
30
+
31
+
`maximumAttempts` should always be an integer, doesn't make much sense for it to have a decimal component. And `maximumAttempts = 0` is the preferred alternative for `maximumAttempts = Number.POSITIVE_INFINITY`.
32
+
33
+
- Use JSON.stringify() for non-error objects and String() for other values ([#681](https://github.com/temporalio/sdk-typescript/pull/681))
- Use error constructor name as `applicationFailureInfo.type` ([#683](https://github.com/temporalio/sdk-typescript/pull/683))
47
+
- Don't drop details from core errors ([#705](https://github.com/temporalio/sdk-typescript/pull/705))
48
+
49
+
### Features
50
+
51
+
- [`worker`] Upgrade neon to 0.10 ([#675](https://github.com/temporalio/sdk-typescript/pull/675))
52
+
- :boom: Do not allow undefined in PayloadConverter.toPayload ([#672](https://github.com/temporalio/sdk-typescript/pull/672))
53
+
54
+
BREAKING CHANGE: `PayloadConverter.toPayload` can no longer return `undefined`.
55
+
56
+
NOTE: This change doesn't apply to `PayloadConverterWithEncoding.toPayload` where the function should return `undefined` to mark that the converter doesn't handle a value.
57
+
58
+
- :boom: Add upsertSearchAttributes and more ([#657](https://github.com/temporalio/sdk-typescript/pull/657))
59
+
60
+
- Added and changed `WorkflowInfo` fields
61
+
- Added `taskInfo` function to `@temporalio/workflow`
62
+
- `Datetime` search attributes are converted to Date objects
- Close `TestEnvironment.nativeConnection` in `teardown` method
79
+
80
+
BREAKING CHANGE:
81
+
82
+
- `Connection` constructor is no longer public, and is replaced with `async Connection.connect` and `Connection.lazy` factory methods.
83
+
- `Connection.service` was renamed `Connection.workflowService`
84
+
- `WorkflowClient` constructor now accepts a single options param
85
+
86
+
BEFORE:
87
+
88
+
```ts
89
+
const connection = new Connection(...);
90
+
const client = new WorkflowClient(connection.service, options);
91
+
```
92
+
93
+
AFTER:
94
+
95
+
```ts
96
+
const connection = await Connection.create(...);
97
+
const client = new WorkflowClient({ connection, ...options });
98
+
```
99
+
100
+
- Added `Connection.close` and made `Connection.client` protected
101
+
102
+
NOTE: It is recommended to reuse `Connection` instances as much as possible.
103
+
When done using a `Connection`, call `close()` to release any resources held by it.
104
+
105
+
- `LOCAL_DOCKER_TARGET` constant was renamed `LOCAL_TARGET`
106
+
107
+
- Metrics are now emitted with the `temporal_` prefix by default to be consistent with other SDKs, in the near future this can be disabled by setting `TelemetryOptions.noTemporalPrefixForMetrics` to `true`.
0 commit comments