Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .changeset/unthrown-v3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"@temporal-contract/contract": major
"@temporal-contract/worker": major
"@temporal-contract/client": major
"@temporal-contract/testing": major
---
Comment thread
btravers marked this conversation as resolved.

Upgrade to [`unthrown`](https://github.com/btravstack/unthrown) 3.0.0.

The published packages' `unthrown` peer-dependency range moves to `^3`. unthrown 3.0.0's breaking change — removing the standalone `Defect` constructor in favour of a `defect` argument passed into `fromPromise` / `fromThrowable`'s `qualify` callback — does not affect temporal-contract, which never constructs defects (every boundary maps rejections to a modeled error). Everything else we use (`Ok` / `Err`, `TaggedError`, `matchTags`, `fromPromise` / `fromSafePromise`, `result.match({ ok, err, defect })`, `.toAsync()`, and the `result.isOk()` / `isErr()` / `isDefect()` narrowing) is unchanged, so no source changes were required.

**Breaking for consumers**: bump your own `unthrown` install to `^3`.
2 changes: 1 addition & 1 deletion docs/guide/migrating-to-unthrown.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ This page is an end-to-end mapping for upgrading existing code.
// package.json
"dependencies": {
- "neverthrow": "^8"
+ "unthrown": "^2"
+ "unthrown": "^3"
}
```

Expand Down
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"peerDependencies": {
"@temporalio/client": "^1",
"@temporalio/common": "^1",
"unthrown": "^2"
"unthrown": "^3"
},
"engines": {
"node": ">=22.19.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"vitest": "catalog:"
},
"peerDependencies": {
"unthrown": "^2"
"unthrown": "^3"
},
"peerDependenciesMeta": {
"unthrown": {
Expand Down
2 changes: 1 addition & 1 deletion packages/worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"@temporalio/common": "^1",
"@temporalio/worker": "^1",
"@temporalio/workflow": "^1",
"unthrown": "^2"
"unthrown": "^3"
},
"engines": {
"node": ">=22.19.0"
Expand Down
40 changes: 20 additions & 20 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ catalog:
"@temporalio/worker": 1.18.1
"@temporalio/workflow": 1.18.1
"@types/node": 24.13.2
"@unthrown/vitest": 2.0.0
"@unthrown/vitest": 3.0.0
"@vitest/coverage-v8": 4.1.8
arktype: 2.2.1
knip: 6.18.0
Expand All @@ -71,7 +71,7 @@ catalog:
typedoc: 0.28.19
typedoc-plugin-markdown: 4.12.0
typescript: 6.0.3
unthrown: 2.0.0
unthrown: 3.0.0
valibot: 1.4.1
vitest: 4.1.8
zod: 4.4.3
Expand Down
Loading