Skip to content

Commit 9964bdd

Browse files
github-actions[bot]btravers
authored andcommitted
chore: release packages
1 parent 5a39c83 commit 9964bdd

17 files changed

Lines changed: 74 additions & 30 deletions

File tree

.changeset/async-result-facade.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

packages/boxed/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @unthrown/boxed
22

3+
## 2.0.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [c8c928e]
8+
- unthrown@2.0.0
9+
310
## 1.1.0
411

512
### Patch Changes

packages/boxed/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@unthrown/boxed",
3-
"version": "1.1.0",
3+
"version": "2.0.0",
44
"description": "Boxed interop for unthrown",
55
"keywords": [
66
"boxed",

packages/core/CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# unthrown
22

3+
## 2.0.0
4+
5+
### Major Changes
6+
7+
- c8c928e: **BREAKING:** add an `AsyncResult` companion object and split the static entry
8+
points across the two facades **by what they return**, so each static lives in
9+
exactly one namespace.
10+
- New `AsyncResult.*` companion (value + type sharing one name, like `Result`):
11+
`AsyncResult.fromPromise`, `AsyncResult.fromSafePromise`, `AsyncResult.all`,
12+
`AsyncResult.allFromDict`. The aggregates **drop the `Async` suffix** the free
13+
functions carry — the namespace already says async (`AsyncResult.all` _is_ the
14+
free function `allAsync`).
15+
- The async entry points are **removed from the `Result` facade**:
16+
`Result.fromPromise`, `Result.fromSafePromise`, `Result.allAsync`, and
17+
`Result.allFromDictAsync` are gone — use `AsyncResult.fromPromise` etc. (They
18+
returned an `AsyncResult`, not a `Result`, so they were misplaced.)
19+
20+
Unaffected: the **free functions** (`fromPromise`, `allAsync`, …) are unchanged
21+
and remain the primary, tree-shakeable API; the companions are opt-in sugar. The
22+
`Result` facade keeps every `Result`-producing static
23+
(`Ok`/`Err`/`Defect`/`Do`/`fromNullable`/`fromThrowable`/`all`/`allFromDict`/`is*`).
24+
325
## 1.1.0
426

527
### Minor Changes

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unthrown",
3-
"version": "1.1.0",
3+
"version": "2.0.0",
44
"description": "Explicit errors as values, with a separate defect (panic) channel",
55
"keywords": [
66
"defect",

packages/effect/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @unthrown/effect
22

3+
## 2.0.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [c8c928e]
8+
- unthrown@2.0.0
9+
310
## 1.1.0
411

512
### Patch Changes

packages/effect/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@unthrown/effect",
3-
"version": "1.1.0",
3+
"version": "2.0.0",
44
"description": "Effect interop for unthrown",
55
"keywords": [
66
"effect",

packages/neverthrow/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @unthrown/neverthrow
22

3+
## 2.0.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [c8c928e]
8+
- unthrown@2.0.0
9+
310
## 1.1.0
411

512
### Patch Changes

packages/neverthrow/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@unthrown/neverthrow",
3-
"version": "1.1.0",
3+
"version": "2.0.0",
44
"description": "neverthrow interop for unthrown",
55
"keywords": [
66
"errors-as-values",

packages/oxlint/CHANGELOG.md

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

3+
## 2.0.0
4+
35
## 1.1.0
46

57
## 1.0.0

0 commit comments

Comments
 (0)