From 78a03157964c0a3519484a87f35a0b98700bc281 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 27 Jun 2026 21:56:18 +0000 Subject: [PATCH] chore: release packages --- .changeset/capitalize-constructors.md | 16 ----------- .changeset/do-notation.md | 26 ----------------- packages/boxed/CHANGELOG.md | 8 ++++++ packages/boxed/package.json | 2 +- packages/core/CHANGELOG.md | 40 +++++++++++++++++++++++++++ packages/core/package.json | 2 +- packages/effect/CHANGELOG.md | 8 ++++++ packages/effect/package.json | 2 +- packages/neverthrow/CHANGELOG.md | 8 ++++++ packages/neverthrow/package.json | 2 +- packages/pattern/CHANGELOG.md | 8 ++++++ packages/pattern/package.json | 2 +- packages/standard-schema/CHANGELOG.md | 19 +++++++++++++ packages/standard-schema/package.json | 2 +- packages/vitest/CHANGELOG.md | 8 ++++++ packages/vitest/package.json | 2 +- 16 files changed, 106 insertions(+), 49 deletions(-) delete mode 100644 .changeset/capitalize-constructors.md delete mode 100644 .changeset/do-notation.md diff --git a/.changeset/capitalize-constructors.md b/.changeset/capitalize-constructors.md deleted file mode 100644 index 7675e7e..0000000 --- a/.changeset/capitalize-constructors.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -"unthrown": major -"@unthrown/standard-schema": patch ---- - -**BREAKING:** capitalize the value constructors so they match the -discriminated-union tags (`"Ok"`/`"Err"`/`"Defect"`) and the capitalized `Do`: - -- `ok` → `Ok`, `err` → `Err`, `defect` → `Defect` -- facade: `Result.ok`/`err`/`defect` → `Result.Ok`/`Err`/`Defect` -- `@unthrown/pattern`: `P.ok`/`err`/`defect` → `P.Ok`/`Err`/`Defect` - -Unchanged: the `match` handler keys (`r.match({ ok, err, defect })`), the guards -(`isOk`/`isErr`/`isDefect`), and the `"defect channel"` terminology. Migration is -a near-mechanical rename of the constructor call sites (`ok(` → `Ok(`, etc.). -Note `Err`, not `Error`, to avoid shadowing the global `Error`. diff --git a/.changeset/do-notation.md b/.changeset/do-notation.md deleted file mode 100644 index 10ab82c..0000000 --- a/.changeset/do-notation.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -"unthrown": minor ---- - -Add **do-notation**: `Do()` plus the `bind` / `let` methods on `Result` and -`AsyncResult`, for sequencing dependent steps into a named scope without nested -`flatMap` closures. - -```ts -Do() - .bind("user", () => findUser(id)) // Result - .bind("org", ({ user }) => findOrg(user.orgId)) // Result - .let("label", ({ user, org }) => `${user.name} @ ${org.name}`) - .map(({ user, org, label }) => render(user, org, label)); -// Result -``` - -`bind(name, f)` sequences a `Result`-returning step and binds its value under -`name` in an accumulating **readonly** object scope (error types union); `let` -binds a pure value. On `AsyncResult`, `bind` accepts a `Result` or an -`AsyncResult`. A throw in either becomes a `Defect`, and `Err`/`Defect` -short-circuits — same guarantees as every other combinator. (`Do` is capitalised -because `do` is reserved; lift a sync chain with `toAsync()` to go async.) - -This is the fluent do-notation only; generator (`gen`/`safeTry`) style remains -out of scope. diff --git a/packages/boxed/CHANGELOG.md b/packages/boxed/CHANGELOG.md index 1d07af2..0c7ea5f 100644 --- a/packages/boxed/CHANGELOG.md +++ b/packages/boxed/CHANGELOG.md @@ -1,5 +1,13 @@ # @unthrown/boxed +## 1.0.0 + +### Patch Changes + +- Updated dependencies [d5f4256] +- Updated dependencies [b6cc550] + - unthrown@1.0.0 + ## 0.3.0 ### Patch Changes diff --git a/packages/boxed/package.json b/packages/boxed/package.json index f886170..fdbec1e 100644 --- a/packages/boxed/package.json +++ b/packages/boxed/package.json @@ -1,6 +1,6 @@ { "name": "@unthrown/boxed", - "version": "0.3.0", + "version": "1.0.0", "description": "Boxed interop for unthrown", "keywords": [ "boxed", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 7f2aa21..79f526f 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,45 @@ # unthrown +## 1.0.0 + +### Major Changes + +- d5f4256: **BREAKING:** capitalize the value constructors so they match the + discriminated-union tags (`"Ok"`/`"Err"`/`"Defect"`) and the capitalized `Do`: + - `ok` → `Ok`, `err` → `Err`, `defect` → `Defect` + - facade: `Result.ok`/`err`/`defect` → `Result.Ok`/`Err`/`Defect` + - `@unthrown/pattern`: `P.ok`/`err`/`defect` → `P.Ok`/`Err`/`Defect` + + Unchanged: the `match` handler keys (`r.match({ ok, err, defect })`), the guards + (`isOk`/`isErr`/`isDefect`), and the `"defect channel"` terminology. Migration is + a near-mechanical rename of the constructor call sites (`ok(` → `Ok(`, etc.). + Note `Err`, not `Error`, to avoid shadowing the global `Error`. + +### Minor Changes + +- b6cc550: Add **do-notation**: `Do()` plus the `bind` / `let` methods on `Result` and + `AsyncResult`, for sequencing dependent steps into a named scope without nested + `flatMap` closures. + + ```ts + Do() + .bind("user", () => findUser(id)) // Result + .bind("org", ({ user }) => findOrg(user.orgId)) // Result + .let("label", ({ user, org }) => `${user.name} @ ${org.name}`) + .map(({ user, org, label }) => render(user, org, label)); + // Result + ``` + + `bind(name, f)` sequences a `Result`-returning step and binds its value under + `name` in an accumulating **readonly** object scope (error types union); `let` + binds a pure value. On `AsyncResult`, `bind` accepts a `Result` or an + `AsyncResult`. A throw in either becomes a `Defect`, and `Err`/`Defect` + short-circuits — same guarantees as every other combinator. (`Do` is capitalised + because `do` is reserved; lift a sync chain with `toAsync()` to go async.) + + This is the fluent do-notation only; generator (`gen`/`safeTry`) style remains + out of scope. + ## 0.3.0 ### Minor Changes diff --git a/packages/core/package.json b/packages/core/package.json index 6755120..71c9e99 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "unthrown", - "version": "0.3.0", + "version": "1.0.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 b9621b8..84ccfe3 100644 --- a/packages/effect/CHANGELOG.md +++ b/packages/effect/CHANGELOG.md @@ -1,5 +1,13 @@ # @unthrown/effect +## 1.0.0 + +### Patch Changes + +- Updated dependencies [d5f4256] +- Updated dependencies [b6cc550] + - unthrown@1.0.0 + ## 0.3.0 ### Patch Changes diff --git a/packages/effect/package.json b/packages/effect/package.json index 6f2da44..5fd3acc 100644 --- a/packages/effect/package.json +++ b/packages/effect/package.json @@ -1,6 +1,6 @@ { "name": "@unthrown/effect", - "version": "0.3.0", + "version": "1.0.0", "description": "Effect interop for unthrown", "keywords": [ "effect", diff --git a/packages/neverthrow/CHANGELOG.md b/packages/neverthrow/CHANGELOG.md index cb05ce8..327fd6e 100644 --- a/packages/neverthrow/CHANGELOG.md +++ b/packages/neverthrow/CHANGELOG.md @@ -1,5 +1,13 @@ # @unthrown/neverthrow +## 1.0.0 + +### Patch Changes + +- Updated dependencies [d5f4256] +- Updated dependencies [b6cc550] + - unthrown@1.0.0 + ## 0.3.0 ### Patch Changes diff --git a/packages/neverthrow/package.json b/packages/neverthrow/package.json index 3d90ded..a87e612 100644 --- a/packages/neverthrow/package.json +++ b/packages/neverthrow/package.json @@ -1,6 +1,6 @@ { "name": "@unthrown/neverthrow", - "version": "0.3.0", + "version": "1.0.0", "description": "neverthrow interop for unthrown", "keywords": [ "errors-as-values", diff --git a/packages/pattern/CHANGELOG.md b/packages/pattern/CHANGELOG.md index a75d566..e882289 100644 --- a/packages/pattern/CHANGELOG.md +++ b/packages/pattern/CHANGELOG.md @@ -1,5 +1,13 @@ # @unthrown/pattern +## 1.0.0 + +### Patch Changes + +- Updated dependencies [d5f4256] +- Updated dependencies [b6cc550] + - unthrown@1.0.0 + ## 0.3.0 ### Patch Changes diff --git a/packages/pattern/package.json b/packages/pattern/package.json index bb2cd4b..3f1d5be 100644 --- a/packages/pattern/package.json +++ b/packages/pattern/package.json @@ -1,6 +1,6 @@ { "name": "@unthrown/pattern", - "version": "0.3.0", + "version": "1.0.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 c008822..66ab6e5 100644 --- a/packages/standard-schema/CHANGELOG.md +++ b/packages/standard-schema/CHANGELOG.md @@ -1,5 +1,24 @@ # @unthrown/standard-schema +## 0.2.1 + +### Patch Changes + +- d5f4256: **BREAKING:** capitalize the value constructors so they match the + discriminated-union tags (`"Ok"`/`"Err"`/`"Defect"`) and the capitalized `Do`: + - `ok` → `Ok`, `err` → `Err`, `defect` → `Defect` + - facade: `Result.ok`/`err`/`defect` → `Result.Ok`/`Err`/`Defect` + - `@unthrown/pattern`: `P.ok`/`err`/`defect` → `P.Ok`/`Err`/`Defect` + + Unchanged: the `match` handler keys (`r.match({ ok, err, defect })`), the guards + (`isOk`/`isErr`/`isDefect`), and the `"defect channel"` terminology. Migration is + a near-mechanical rename of the constructor call sites (`ok(` → `Ok(`, etc.). + Note `Err`, not `Error`, to avoid shadowing the global `Error`. + +- Updated dependencies [d5f4256] +- Updated dependencies [b6cc550] + - unthrown@1.0.0 + ## 0.2.0 ### Minor Changes diff --git a/packages/standard-schema/package.json b/packages/standard-schema/package.json index ea3c91b..2fd58d4 100644 --- a/packages/standard-schema/package.json +++ b/packages/standard-schema/package.json @@ -1,6 +1,6 @@ { "name": "@unthrown/standard-schema", - "version": "0.2.0", + "version": "0.2.1", "description": "Standard Schema (Zod, Valibot, ArkType, …) interop for unthrown", "keywords": [ "arktype", diff --git a/packages/vitest/CHANGELOG.md b/packages/vitest/CHANGELOG.md index c7faef3..0b2739a 100644 --- a/packages/vitest/CHANGELOG.md +++ b/packages/vitest/CHANGELOG.md @@ -1,5 +1,13 @@ # @unthrown/vitest +## 1.0.0 + +### Patch Changes + +- Updated dependencies [d5f4256] +- Updated dependencies [b6cc550] + - unthrown@1.0.0 + ## 0.3.0 ### Patch Changes diff --git a/packages/vitest/package.json b/packages/vitest/package.json index e0b857f..731597b 100644 --- a/packages/vitest/package.json +++ b/packages/vitest/package.json @@ -1,6 +1,6 @@ { "name": "@unthrown/vitest", - "version": "0.3.0", + "version": "1.0.0", "description": "Vitest matchers for unthrown", "keywords": [ "errors-as-values",