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
17 changes: 0 additions & 17 deletions .changeset/flat-tap-err-is-result.md

This file was deleted.

7 changes: 7 additions & 0 deletions packages/boxed/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @unthrown/boxed

## 1.1.0

### Patch Changes

- Updated dependencies [6eeb19d]
- unthrown@1.1.0

## 1.0.0

### 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": "1.0.0",
"version": "1.1.0",
"description": "Boxed interop for unthrown",
"keywords": [
"boxed",
Expand Down
17 changes: 17 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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<T, E | E2>`). 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<unknown, unknown>` (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
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": "1.0.0",
"version": "1.1.0",
"description": "Explicit errors as values, with a separate defect (panic) channel",
"keywords": [
"defect",
Expand Down
7 changes: 7 additions & 0 deletions packages/effect/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @unthrown/effect

## 1.1.0

### Patch Changes

- Updated dependencies [6eeb19d]
- unthrown@1.1.0

## 1.0.0

### 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": "1.0.0",
"version": "1.1.0",
"description": "Effect interop for unthrown",
"keywords": [
"effect",
Expand Down
7 changes: 7 additions & 0 deletions packages/neverthrow/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @unthrown/neverthrow

## 1.1.0

### Patch Changes

- Updated dependencies [6eeb19d]
- unthrown@1.1.0

## 1.0.0

### 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": "1.0.0",
"version": "1.1.0",
"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

## 1.1.0

Comment on lines +3 to +4
## 1.0.0

### Major Changes
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": "1.0.0",
"version": "1.1.0",
"description": "oxlint plugin enforcing unthrown's conventions",
"keywords": [
"errors-as-values",
Expand Down
7 changes: 7 additions & 0 deletions packages/pattern/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @unthrown/pattern

## 1.1.0

### Patch Changes

- Updated dependencies [6eeb19d]
- unthrown@1.1.0

## 1.0.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/pattern/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
7 changes: 7 additions & 0 deletions packages/standard-schema/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @unthrown/standard-schema

## 1.1.0

### Patch Changes

- Updated dependencies [6eeb19d]
- unthrown@1.1.0

## 1.0.0

### Major 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": "1.0.0",
"version": "1.1.0",
"description": "Standard Schema (Zod, Valibot, ArkType, …) interop for unthrown",
"keywords": [
"arktype",
Expand Down
7 changes: 7 additions & 0 deletions packages/vitest/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @unthrown/vitest

## 1.1.0

### Patch Changes

- Updated dependencies [6eeb19d]
- unthrown@1.1.0

## 1.0.0

### Patch Changes
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": "1.0.0",
"version": "1.1.0",
"description": "Vitest matchers for unthrown",
"keywords": [
"errors-as-values",
Expand Down
Loading