Skip to content

Commit c6ef9b5

Browse files
github-actions[bot]btravers
authored andcommitted
chore: release packages (beta)
1 parent ec18611 commit c6ef9b5

9 files changed

Lines changed: 99 additions & 5 deletions

File tree

.changeset/pre.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,12 @@
77
"@temporal-contract/testing": "7.0.0",
88
"@temporal-contract/worker": "7.0.0"
99
},
10-
"changesets": ["adopt-lefthook-oxfmt", "adopt-unthrown-v5-beta", "contract-types-node"]
10+
"changesets": [
11+
"adopt-lefthook-oxfmt",
12+
"adopt-unthrown-v5-beta",
13+
"bump-unthrown-beta-5",
14+
"bump-unthrown-beta-6",
15+
"contract-types-node",
16+
"technical-errors-to-defect"
17+
]
1118
}

packages/client/CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
# @temporal-contract/client
22

3+
## 8.0.0-beta.1
4+
5+
### Patch Changes
6+
7+
- 75ec554: Bump `unthrown` to `5.0.0-beta.5`. This tracks two beta breaking changes:
8+
`match`'s error handler key is renamed `err``errCases`, and the bare error
9+
combinators gained the `*Cases` suffix (`flatMapErr``flatMapErrCases`,
10+
`tapErr``tapErrCases`). `unthrown` also now declares `ts-pattern` as a peer
11+
dependency, so `ts-pattern` (`^5`) is added alongside it. The peer range is
12+
raised to `^5.0.0-beta.5`.
13+
- fff11ff: Bump `unthrown` to `5.0.0-beta.6`, whose exhaustive matcher is now built-in
14+
(same `.with(…)` / `tag` / `P` call-site shape — no code changes needed). The
15+
`ts-pattern` peer/dev dependencies added for beta.5 are removed: `unthrown` has
16+
zero runtime dependencies, so nothing needs installing alongside it. The
17+
`unthrown` peer range is raised to `^5.0.0-beta.6`.
18+
- efec2b2: Route `TechnicalError` and `RuntimeClientError` to unthrown's defect channel instead of the modeled `Err` channel.
19+
20+
These two errors describe technical/infrastructure failures (connection/bundling faults, an unknown schedule ID, an unrecognized Temporal rejection) that are never branched on for domain logic. Per unthrown's Thesis #1, the `E` channel is only for anticipated domain failures, so they now surface as a `Defect` whose `cause` is a `TechnicalError` / `RuntimeClientError` instance — the classes stay exported so the descriptive message, `operation`, and `cause` survive for logging.
21+
22+
**Breaking.** Consumers who matched these on the error channel must move to the defect channel:
23+
24+
- `TypedClient.create` and `createWorker` now return `AsyncResult<_, never>` (was `AsyncResult<_, TechnicalError>`). Inspect setup faults via `result.isDefect()` / `match`'s `defect` handler / `recoverDefect`, not `isErr()`.
25+
- Every modeled error union drops `RuntimeClientError` (`startWorkflow`, `signalWithStart`, `executeWorkflow`, `getHandle`, handle `queries`/`signals`/`updates`/`result`/`terminate`/`cancel`/`describe`/`fetchHistory`, the schedule handle methods, `ClientCallError`). Schedule handle methods now return `AsyncResult<_, never>`.
26+
- Drop any `.with(tag("@temporal-contract/RuntimeClientError"), …)` / `.with(tag("@temporal-contract/TechnicalError"), …)` arm from exhaustive matchers; handle these in the `defect` arm (e.g. `recoverDefect` / `tapDefect`), matching on `cause instanceof RuntimeClientError` where needed.
27+
28+
- Updated dependencies [75ec554]
29+
- Updated dependencies [fff11ff]
30+
- Updated dependencies [efec2b2]
31+
- @temporal-contract/contract@8.0.0-beta.1
32+
333
## 8.0.0-beta.0
434

535
### Major Changes

packages/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@temporal-contract/client",
3-
"version": "8.0.0-beta.0",
3+
"version": "8.0.0-beta.1",
44
"description": "Client utilities with unthrown Result/AsyncResult for consuming temporal-contract workflows",
55
"keywords": [
66
"client",

packages/contract/CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# @temporal-contract/contract
22

3+
## 8.0.0-beta.1
4+
5+
### Patch Changes
6+
7+
- 75ec554: Bump `unthrown` to `5.0.0-beta.5`. This tracks two beta breaking changes:
8+
`match`'s error handler key is renamed `err``errCases`, and the bare error
9+
combinators gained the `*Cases` suffix (`flatMapErr``flatMapErrCases`,
10+
`tapErr``tapErrCases`). `unthrown` also now declares `ts-pattern` as a peer
11+
dependency, so `ts-pattern` (`^5`) is added alongside it. The peer range is
12+
raised to `^5.0.0-beta.5`.
13+
- fff11ff: Bump `unthrown` to `5.0.0-beta.6`, whose exhaustive matcher is now built-in
14+
(same `.with(…)` / `tag` / `P` call-site shape — no code changes needed). The
15+
`ts-pattern` peer/dev dependencies added for beta.5 are removed: `unthrown` has
16+
zero runtime dependencies, so nothing needs installing alongside it. The
17+
`unthrown` peer range is raised to `^5.0.0-beta.6`.
18+
- efec2b2: Route `TechnicalError` and `RuntimeClientError` to unthrown's defect channel instead of the modeled `Err` channel.
19+
20+
These two errors describe technical/infrastructure failures (connection/bundling faults, an unknown schedule ID, an unrecognized Temporal rejection) that are never branched on for domain logic. Per unthrown's Thesis #1, the `E` channel is only for anticipated domain failures, so they now surface as a `Defect` whose `cause` is a `TechnicalError` / `RuntimeClientError` instance — the classes stay exported so the descriptive message, `operation`, and `cause` survive for logging.
21+
22+
**Breaking.** Consumers who matched these on the error channel must move to the defect channel:
23+
24+
- `TypedClient.create` and `createWorker` now return `AsyncResult<_, never>` (was `AsyncResult<_, TechnicalError>`). Inspect setup faults via `result.isDefect()` / `match`'s `defect` handler / `recoverDefect`, not `isErr()`.
25+
- Every modeled error union drops `RuntimeClientError` (`startWorkflow`, `signalWithStart`, `executeWorkflow`, `getHandle`, handle `queries`/`signals`/`updates`/`result`/`terminate`/`cancel`/`describe`/`fetchHistory`, the schedule handle methods, `ClientCallError`). Schedule handle methods now return `AsyncResult<_, never>`.
26+
- Drop any `.with(tag("@temporal-contract/RuntimeClientError"), …)` / `.with(tag("@temporal-contract/TechnicalError"), …)` arm from exhaustive matchers; handle these in the `defect` arm (e.g. `recoverDefect` / `tapDefect`), matching on `cause instanceof RuntimeClientError` where needed.
27+
328
## 8.0.0-beta.0
429

530
### Major Changes

packages/contract/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@temporal-contract/contract",
3-
"version": "8.0.0-beta.0",
3+
"version": "8.0.0-beta.1",
44
"description": "Contract builder for temporal-contract",
55
"keywords": [
66
"contract",

packages/testing/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# @temporal-contract/testing
22

3+
## 8.0.0-beta.1
4+
35
## 8.0.0-beta.0
46

57
## 7.0.0

packages/testing/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@temporal-contract/testing",
3-
"version": "8.0.0-beta.0",
3+
"version": "8.0.0-beta.1",
44
"description": "Temporal testing utilities",
55
"keywords": [
66
"contract",

packages/worker/CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
# @temporal-contract/worker
22

3+
## 8.0.0-beta.1
4+
5+
### Patch Changes
6+
7+
- 75ec554: Bump `unthrown` to `5.0.0-beta.5`. This tracks two beta breaking changes:
8+
`match`'s error handler key is renamed `err``errCases`, and the bare error
9+
combinators gained the `*Cases` suffix (`flatMapErr``flatMapErrCases`,
10+
`tapErr``tapErrCases`). `unthrown` also now declares `ts-pattern` as a peer
11+
dependency, so `ts-pattern` (`^5`) is added alongside it. The peer range is
12+
raised to `^5.0.0-beta.5`.
13+
- fff11ff: Bump `unthrown` to `5.0.0-beta.6`, whose exhaustive matcher is now built-in
14+
(same `.with(…)` / `tag` / `P` call-site shape — no code changes needed). The
15+
`ts-pattern` peer/dev dependencies added for beta.5 are removed: `unthrown` has
16+
zero runtime dependencies, so nothing needs installing alongside it. The
17+
`unthrown` peer range is raised to `^5.0.0-beta.6`.
18+
- efec2b2: Route `TechnicalError` and `RuntimeClientError` to unthrown's defect channel instead of the modeled `Err` channel.
19+
20+
These two errors describe technical/infrastructure failures (connection/bundling faults, an unknown schedule ID, an unrecognized Temporal rejection) that are never branched on for domain logic. Per unthrown's Thesis #1, the `E` channel is only for anticipated domain failures, so they now surface as a `Defect` whose `cause` is a `TechnicalError` / `RuntimeClientError` instance — the classes stay exported so the descriptive message, `operation`, and `cause` survive for logging.
21+
22+
**Breaking.** Consumers who matched these on the error channel must move to the defect channel:
23+
24+
- `TypedClient.create` and `createWorker` now return `AsyncResult<_, never>` (was `AsyncResult<_, TechnicalError>`). Inspect setup faults via `result.isDefect()` / `match`'s `defect` handler / `recoverDefect`, not `isErr()`.
25+
- Every modeled error union drops `RuntimeClientError` (`startWorkflow`, `signalWithStart`, `executeWorkflow`, `getHandle`, handle `queries`/`signals`/`updates`/`result`/`terminate`/`cancel`/`describe`/`fetchHistory`, the schedule handle methods, `ClientCallError`). Schedule handle methods now return `AsyncResult<_, never>`.
26+
- Drop any `.with(tag("@temporal-contract/RuntimeClientError"), …)` / `.with(tag("@temporal-contract/TechnicalError"), …)` arm from exhaustive matchers; handle these in the `defect` arm (e.g. `recoverDefect` / `tapDefect`), matching on `cause instanceof RuntimeClientError` where needed.
27+
28+
- Updated dependencies [75ec554]
29+
- Updated dependencies [fff11ff]
30+
- Updated dependencies [efec2b2]
31+
- @temporal-contract/contract@8.0.0-beta.1
32+
333
## 8.0.0-beta.0
434

535
### Major Changes

packages/worker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@temporal-contract/worker",
3-
"version": "8.0.0-beta.0",
3+
"version": "8.0.0-beta.1",
44
"description": "Worker utilities with unthrown Result/AsyncResult for implementing temporal-contract workflows and activities",
55
"keywords": [
66
"contract",

0 commit comments

Comments
 (0)