diff --git a/.changeset/flat-tap-err-is-result.md b/.changeset/flat-tap-err-is-result.md deleted file mode 100644 index b891ca3..0000000 --- a/.changeset/flat-tap-err-is-result.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -"unthrown": minor ---- - -Add two members, closing the only structural gaps surfaced by comparing the -surface against boxed / neverthrow / byethrow: - -- **`flatTapErr`** (on `Result` and `AsyncResult`) — the error-channel mirror of - `flatTap`: runs a `Result`-returning effect on the error, keeps the original - error on the effect's success, and threads the effect's error otherwise - (`Result`). A throw becomes a `Defect`, like every other combinator. - Use it for a failable effect _during_ error handling (e.g. writing the error to - an audit log that may itself fail). -- **`isResult(x)`** — a standalone type guard narrowing an `unknown` to - `Result` (and `Result.isResult`). It checks the value carries - the `Result` prototype, so a plain `{ tag: "Ok" }` look-alike is not matched; - an `AsyncResult` is not a `Result`. For untyped interop boundaries. diff --git a/packages/boxed/CHANGELOG.md b/packages/boxed/CHANGELOG.md index 0c7ea5f..b145de7 100644 --- a/packages/boxed/CHANGELOG.md +++ b/packages/boxed/CHANGELOG.md @@ -1,5 +1,12 @@ # @unthrown/boxed +## 1.1.0 + +### Patch Changes + +- Updated dependencies [6eeb19d] + - unthrown@1.1.0 + ## 1.0.0 ### Patch Changes diff --git a/packages/boxed/package.json b/packages/boxed/package.json index fdbec1e..ccbafed 100644 --- a/packages/boxed/package.json +++ b/packages/boxed/package.json @@ -1,6 +1,6 @@ { "name": "@unthrown/boxed", - "version": "1.0.0", + "version": "1.1.0", "description": "Boxed interop for unthrown", "keywords": [ "boxed", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 79f526f..31c48b7 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,22 @@ # unthrown +## 1.1.0 + +### Minor Changes + +- 6eeb19d: Add two members, closing the only structural gaps surfaced by comparing the + surface against boxed / neverthrow / byethrow: + - **`flatTapErr`** (on `Result` and `AsyncResult`) — the error-channel mirror of + `flatTap`: runs a `Result`-returning effect on the error, keeps the original + error on the effect's success, and threads the effect's error otherwise + (`Result`). A throw becomes a `Defect`, like every other combinator. + Use it for a failable effect _during_ error handling (e.g. writing the error to + an audit log that may itself fail). + - **`isResult(x)`** — a standalone type guard narrowing an `unknown` to + `Result` (and `Result.isResult`). It checks the value carries + the `Result` prototype, so a plain `{ tag: "Ok" }` look-alike is not matched; + an `AsyncResult` is not a `Result`. For untyped interop boundaries. + ## 1.0.0 ### Major Changes diff --git a/packages/core/package.json b/packages/core/package.json index 71c9e99..73ff518 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "unthrown", - "version": "1.0.0", + "version": "1.1.0", "description": "Explicit errors as values, with a separate defect (panic) channel", "keywords": [ "defect", diff --git a/packages/effect/CHANGELOG.md b/packages/effect/CHANGELOG.md index 84ccfe3..18ac0e5 100644 --- a/packages/effect/CHANGELOG.md +++ b/packages/effect/CHANGELOG.md @@ -1,5 +1,12 @@ # @unthrown/effect +## 1.1.0 + +### Patch Changes + +- Updated dependencies [6eeb19d] + - unthrown@1.1.0 + ## 1.0.0 ### Patch Changes diff --git a/packages/effect/package.json b/packages/effect/package.json index 5fd3acc..c62941c 100644 --- a/packages/effect/package.json +++ b/packages/effect/package.json @@ -1,6 +1,6 @@ { "name": "@unthrown/effect", - "version": "1.0.0", + "version": "1.1.0", "description": "Effect interop for unthrown", "keywords": [ "effect", diff --git a/packages/neverthrow/CHANGELOG.md b/packages/neverthrow/CHANGELOG.md index 327fd6e..6954620 100644 --- a/packages/neverthrow/CHANGELOG.md +++ b/packages/neverthrow/CHANGELOG.md @@ -1,5 +1,12 @@ # @unthrown/neverthrow +## 1.1.0 + +### Patch Changes + +- Updated dependencies [6eeb19d] + - unthrown@1.1.0 + ## 1.0.0 ### Patch Changes diff --git a/packages/neverthrow/package.json b/packages/neverthrow/package.json index a87e612..55338fe 100644 --- a/packages/neverthrow/package.json +++ b/packages/neverthrow/package.json @@ -1,6 +1,6 @@ { "name": "@unthrown/neverthrow", - "version": "1.0.0", + "version": "1.1.0", "description": "neverthrow interop for unthrown", "keywords": [ "errors-as-values", diff --git a/packages/oxlint/CHANGELOG.md b/packages/oxlint/CHANGELOG.md index adb0b54..ee1d6c6 100644 --- a/packages/oxlint/CHANGELOG.md +++ b/packages/oxlint/CHANGELOG.md @@ -1,5 +1,7 @@ # @unthrown/oxlint +## 1.1.0 + ## 1.0.0 ### Major Changes diff --git a/packages/oxlint/package.json b/packages/oxlint/package.json index cd30727..bafe2eb 100644 --- a/packages/oxlint/package.json +++ b/packages/oxlint/package.json @@ -1,6 +1,6 @@ { "name": "@unthrown/oxlint", - "version": "1.0.0", + "version": "1.1.0", "description": "oxlint plugin enforcing unthrown's conventions", "keywords": [ "errors-as-values", diff --git a/packages/pattern/CHANGELOG.md b/packages/pattern/CHANGELOG.md index e882289..c136237 100644 --- a/packages/pattern/CHANGELOG.md +++ b/packages/pattern/CHANGELOG.md @@ -1,5 +1,12 @@ # @unthrown/pattern +## 1.1.0 + +### Patch Changes + +- Updated dependencies [6eeb19d] + - unthrown@1.1.0 + ## 1.0.0 ### Patch Changes diff --git a/packages/pattern/package.json b/packages/pattern/package.json index 3f1d5be..e6d86ab 100644 --- a/packages/pattern/package.json +++ b/packages/pattern/package.json @@ -1,6 +1,6 @@ { "name": "@unthrown/pattern", - "version": "1.0.0", + "version": "1.1.0", "description": "ts-pattern integration for unthrown", "keywords": [ "errors-as-values", diff --git a/packages/standard-schema/CHANGELOG.md b/packages/standard-schema/CHANGELOG.md index 6d85f6b..5550b0a 100644 --- a/packages/standard-schema/CHANGELOG.md +++ b/packages/standard-schema/CHANGELOG.md @@ -1,5 +1,12 @@ # @unthrown/standard-schema +## 1.1.0 + +### Patch Changes + +- Updated dependencies [6eeb19d] + - unthrown@1.1.0 + ## 1.0.0 ### Major Changes diff --git a/packages/standard-schema/package.json b/packages/standard-schema/package.json index debd1e7..edb51cb 100644 --- a/packages/standard-schema/package.json +++ b/packages/standard-schema/package.json @@ -1,6 +1,6 @@ { "name": "@unthrown/standard-schema", - "version": "1.0.0", + "version": "1.1.0", "description": "Standard Schema (Zod, Valibot, ArkType, …) interop for unthrown", "keywords": [ "arktype", diff --git a/packages/vitest/CHANGELOG.md b/packages/vitest/CHANGELOG.md index 0b2739a..162fe9a 100644 --- a/packages/vitest/CHANGELOG.md +++ b/packages/vitest/CHANGELOG.md @@ -1,5 +1,12 @@ # @unthrown/vitest +## 1.1.0 + +### Patch Changes + +- Updated dependencies [6eeb19d] + - unthrown@1.1.0 + ## 1.0.0 ### Patch Changes diff --git a/packages/vitest/package.json b/packages/vitest/package.json index 731597b..5c41bf8 100644 --- a/packages/vitest/package.json +++ b/packages/vitest/package.json @@ -1,6 +1,6 @@ { "name": "@unthrown/vitest", - "version": "1.0.0", + "version": "1.1.0", "description": "Vitest matchers for unthrown", "keywords": [ "errors-as-values",