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
2 changes: 2 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"exhaustive-error-matcher",
"fix-async-flatmap-inference",
"fix-variance-and-frompromise-inference",
"getorthrow-never-gate-message",
"orpc-sync-throw-defect",
"oxlint-four-rules",
"prisma-transaction-defect",
Expand All @@ -26,6 +27,7 @@
"runtime-hardening",
"standard-schema-orphan-adoption",
"synchronous-qualify-and-taperr",
"ts-pattern-peer-dependency",
"v5-extractor-cleanup",
"vitest-loud-forgotten-await"
]
Expand Down
8 changes: 8 additions & 0 deletions packages/boxed/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @unthrown/boxed

## 5.0.0-beta.5

### Patch Changes

- Updated dependencies [5364caa]
- Updated dependencies [5364caa]
- unthrown@5.0.0-beta.5

## 5.0.0-beta.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/boxed/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@unthrown/boxed",
"version": "5.0.0-beta.4",
"version": "5.0.0-beta.5",
"description": "Boxed interop for unthrown",
"keywords": [
"boxed",
Expand Down
32 changes: 32 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# unthrown

## 5.0.0-beta.5

### Major Changes

- 5364caa: **`ts-pattern` is now a `peerDependency` (`^5`), not a plain dependency.** Core
re-exports `match` / `P` / `tag` and its error matchers speak ts-pattern's
builder type. When ts-pattern was a nested, exact-pinned dependency, a consumer
who already used ts-pattern at another version ended up with two copies whose
declarations don't unify — feeding a `P.union(...)` built by one copy into an
unthrown matcher failed five layers deep in a conditional type.

Declaring it as a peer guarantees a single copy the consumer owns, so
`import { P } from "ts-pattern"` composes with unthrown's matchers as expected.

**Action required:** add `ts-pattern` (`^5`) to your own dependencies if you
don't already depend on it. Most package managers surface this as a missing-peer
warning on install.

### Patch Changes

- 5364caa: **`getOrThrow()`'s never-channel gate now explains itself.** When the error
channel is already empty (`E = never`) `getOrThrow()` is unnecessary — there is
nothing to throw, so `get()` is the tool. The gate previously surfaced as an
opaque `The 'this' context of type '…' is not assignable to method's 'this' of
type 'never'`. The `never` receiver now carries a message, so the diagnostic
reads:

> unthrown: getOrThrow is unnecessary here — the Err channel is empty (E =
> never), so there is nothing to throw. Use get() instead.

Behaviour is unchanged; only the compile-time message improves.

## 5.0.0-beta.4

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unthrown",
"version": "5.0.0-beta.4",
"version": "5.0.0-beta.5",
"description": "Explicit errors as values, with a separate defect (panic) channel",
"keywords": [
"defect",
Expand Down
8 changes: 8 additions & 0 deletions packages/effect/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @unthrown/effect

## 5.0.0-beta.5

### Patch Changes

- Updated dependencies [5364caa]
- Updated dependencies [5364caa]
- unthrown@5.0.0-beta.5

## 5.0.0-beta.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/effect/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@unthrown/effect",
"version": "5.0.0-beta.4",
"version": "5.0.0-beta.5",
"description": "Effect interop for unthrown",
"keywords": [
"effect",
Expand Down
8 changes: 8 additions & 0 deletions packages/neverthrow/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @unthrown/neverthrow

## 5.0.0-beta.5

### Patch Changes

- Updated dependencies [5364caa]
- Updated dependencies [5364caa]
- unthrown@5.0.0-beta.5

## 5.0.0-beta.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/neverthrow/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@unthrown/neverthrow",
"version": "5.0.0-beta.4",
"version": "5.0.0-beta.5",
"description": "neverthrow interop for unthrown",
"keywords": [
"errors-as-values",
Expand Down
2 changes: 2 additions & 0 deletions packages/oxlint/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @unthrown/oxlint

## 5.0.0-beta.5

## 5.0.0-beta.4

## 5.0.0-beta.3
Expand Down
2 changes: 1 addition & 1 deletion packages/oxlint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@unthrown/oxlint",
"version": "5.0.0-beta.4",
"version": "5.0.0-beta.5",
"description": "oxlint plugin enforcing unthrown's conventions",
"keywords": [
"errors-as-values",
Expand Down
8 changes: 8 additions & 0 deletions packages/standard-schema/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @unthrown/standard-schema

## 5.0.0-beta.5

### Patch Changes

- Updated dependencies [5364caa]
- Updated dependencies [5364caa]
- unthrown@5.0.0-beta.5

## 5.0.0-beta.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/standard-schema/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@unthrown/standard-schema",
"version": "5.0.0-beta.4",
"version": "5.0.0-beta.5",
"description": "Standard Schema (Zod, Valibot, ArkType, …) interop for unthrown",
"keywords": [
"arktype",
Expand Down
2 changes: 2 additions & 0 deletions packages/vitest/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @unthrown/vitest

## 5.0.0-beta.5

## 5.0.0-beta.4

## 5.0.0-beta.3
Expand Down
2 changes: 1 addition & 1 deletion packages/vitest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@unthrown/vitest",
"version": "5.0.0-beta.4",
"version": "5.0.0-beta.5",
"description": "Vitest matchers for unthrown",
"keywords": [
"errors-as-values",
Expand Down
Loading