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
5 changes: 0 additions & 5 deletions .changeset/declare-node-engines.md

This file was deleted.

19 changes: 0 additions & 19 deletions .changeset/unthrown-migration.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/update-org-urls.md

This file was deleted.

12 changes: 12 additions & 0 deletions packages/asyncapi/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @amqp-contract/asyncapi

## 1.0.0

### Minor Changes

- 4d574c6: Declare `engines.node: ">=22.19"` on all publishable packages. `undici@8.4.1` (transitively required via `@amqp-contract/testing` → `testcontainers`) requires Node `>=22.19.0`; consumers now see this constraint at install time instead of silently inheriting it.

### Patch Changes

- Updated dependencies [d5fec7e]
- Updated dependencies [4ed4abe]
- @amqp-contract/contract@1.0.0

## 0.25.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/asyncapi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@amqp-contract/asyncapi",
"version": "0.25.0",
"version": "1.0.0",
"description": "AsyncAPI specification generator for amqp-contract",
"keywords": [
"amqp",
Expand Down
9 changes: 9 additions & 0 deletions packages/client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @amqp-contract/client

## 1.0.0

### Patch Changes

- Updated dependencies [d5fec7e]
- Updated dependencies [4ed4abe]
- @amqp-contract/contract@1.0.0
- @amqp-contract/core@1.0.0

## 0.25.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@amqp-contract/client",
"version": "0.25.0",
"version": "1.0.0",
"description": "Client utilities for publishing messages using amqp-contract",
"keywords": [
"amqp",
Expand Down
23 changes: 23 additions & 0 deletions packages/contract/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# @amqp-contract/contract

## 1.0.0

### Major Changes

- d5fec7e: **BREAKING:** Replace the `neverthrow` dependency with [`unthrown`](https://github.com/btravstack/unthrown) for value-based error handling across all packages.

`unthrown` keeps the errors-as-values model but adds a third **`Defect`** channel for unexpected failures, and renames/​reshapes several APIs. If you consume the `Result` / `AsyncResult` values returned by the client, worker, and core, you will need to update your call sites.

### What changed
- **`ResultAsync` → `AsyncResult`.** All async-returning methods (`publish`, `call`, `create`, `close`, handler return types, …) now return `unthrown`'s `AsyncResult<T, E>`.
- **`.match()` is now boxed and has three channels.** `result.match(okFn, errFn)` → `result.match({ ok, err, defect })`. The extra `defect` branch handles unexpected throws.
- **`.andThen` → `.flatMap`**, **`.andTee` → `.tap`**, **`.orTee` → `.tapErr`** (`.map`, `.mapErr`, `.orElse` are unchanged).
- **No `okAsync` / `errAsync`.** Build async results with `ok(value).toAsync()` / `err(error).toAsync()`.
- **No static `ResultAsync.fromPromise` / `Result.fromThrowable`.** Use the free functions `fromPromise(promise, qualify)`, `fromSafePromise(promise)`, and `fromThrowable(fn, qualify)`. The `qualify` mapper returns `E | Defect`.
- **`._unsafeUnwrap()` → `.unwrap()`**, **`._unsafeUnwrapErr()` → `.unwrapErr()`** (these now throw `UnwrapError` on the wrong variant, and re-throw the original cause on a `Defect`).
- **`.isOk()` / `.isErr()` / `.isDefect()` narrow** like neverthrow's did (they guard `this`); standalone `isOk(result)` / `isErr(result)` / `isDefect(result)` functions are also available.
- **Error classes are now `TaggedError`s.** `TechnicalError`, `MessageValidationError`, `RetryableError`, `NonRetryableError`, `RpcTimeoutError`, and `RpcCancelledError` each carry a `_tag` for exhaustive dispatch via `matchTags`. The tags are **namespaced** — `"@amqp-contract/TechnicalError"`, `"@amqp-contract/RetryableError"`, etc. — so they don't collide with other libraries' tags in a shared `matchTags`. The human-facing `Error.name` is kept bare (`"TechnicalError"`, `"RetryableError"`, …), so stack traces and `.name` checks are unaffected. Their positional constructors are unchanged.
- **`HandlerError` is now a tagged-union type, not an abstract class.** It is `RetryableError | NonRetryableError`. Replace `error instanceof HandlerError` with `isHandlerError(error)`.

### Patch Changes

- 4ed4abe: Update repository, homepage, and bug-tracker URLs after the project moved from the `btravers` GitHub profile to the `btravstack` organization. Documentation now lives at https://btravstack.github.io/amqp-contract/.

## 0.25.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/contract/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@amqp-contract/contract",
"version": "0.25.0",
"version": "1.0.0",
"description": "Contract builder for amqp-contract",
"keywords": [
"amqp",
Expand Down
8 changes: 8 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @amqp-contract/core

## 1.0.0

### Patch Changes

- Updated dependencies [d5fec7e]
- Updated dependencies [4ed4abe]
- @amqp-contract/contract@1.0.0

## 0.25.0

### Minor 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": "@amqp-contract/core",
"version": "0.25.0",
"version": "1.0.0",
"description": "Core utilities for AMQP setup and management in amqp-contract",
"keywords": [
"amqp",
Expand Down
2 changes: 2 additions & 0 deletions packages/testing/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @amqp-contract/testing

## 1.0.0

## 0.25.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/testing/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@amqp-contract/testing",
"version": "0.25.0",
"version": "1.0.0",
"description": "Testing utilities for AMQP contracts with testcontainers",
"keywords": [
"amqp",
Expand Down
9 changes: 9 additions & 0 deletions packages/worker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @amqp-contract/worker

## 1.0.0

### Patch Changes

- Updated dependencies [d5fec7e]
- Updated dependencies [4ed4abe]
- @amqp-contract/contract@1.0.0
- @amqp-contract/core@1.0.0

## 0.25.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/worker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@amqp-contract/worker",
"version": "0.25.0",
"version": "1.0.0",
"description": "Worker utilities for consuming messages using amqp-contract",
"keywords": [
"amqp",
Expand Down
Loading