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
18 changes: 0 additions & 18 deletions .changeset/unthrown-v1.md

This file was deleted.

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

## 2.0.0

### Patch Changes

- Updated dependencies [8707df1]
- @amqp-contract/contract@2.0.0

## 1.0.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": "1.0.0",
"version": "2.0.0",
"description": "AsyncAPI specification generator for amqp-contract",
"keywords": [
"amqp",
Expand Down
8 changes: 8 additions & 0 deletions packages/client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @amqp-contract/client

## 2.0.0

### Patch Changes

- Updated dependencies [8707df1]
- @amqp-contract/contract@2.0.0
- @amqp-contract/core@2.0.0

## 1.0.0

### Patch 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": "1.0.0",
"version": "2.0.0",
"description": "Client utilities for publishing messages using amqp-contract",
"keywords": [
"amqp",
Expand Down
19 changes: 19 additions & 0 deletions packages/contract/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# @amqp-contract/contract

## 2.0.0

### Major Changes

- 8707df1: **BREAKING:** Upgrade [`unthrown`](https://github.com/btravstack/unthrown) to `1.0.0`.

unthrown 1.0 renames the value constructors — **`ok` → `Ok`, `err` → `Err`, `defect` → `Defect`** (the lowercase forms are removed). All packages now depend on `unthrown@1.0.0`, so consumers that build `Result` / `AsyncResult` values directly must update their call sites:

```diff
- import { ok, err } from "unthrown";
- return ok(undefined).toAsync();
- return err(new RetryableError("...")).toAsync();
+ import { Ok, Err } from "unthrown";
+ return Ok(undefined).toAsync();
+ return Err(new RetryableError("...")).toAsync();
```

Everything else is unchanged: the `.match({ ok, err, defect })` handler keys stay lowercase (they're case branches, not constructors), and `fromPromise` / `fromSafePromise` / `fromThrowable` / `all` / `allAsync` / `TaggedError(tag, { name })` / `.isOk()` / `.toAsync()` / `.unwrap()` keep the same signatures.

## 1.0.0

### Major 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": "1.0.0",
"version": "2.0.0",
"description": "Contract builder for amqp-contract",
"keywords": [
"amqp",
Expand Down
7 changes: 7 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @amqp-contract/core

## 2.0.0

### Patch Changes

- Updated dependencies [8707df1]
- @amqp-contract/contract@2.0.0

## 1.0.0

### Patch 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": "1.0.0",
"version": "2.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

## 2.0.0

Comment thread
btravers marked this conversation as resolved.
## 1.0.0

## 0.25.0
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": "1.0.0",
"version": "2.0.0",
"description": "Testing utilities for AMQP contracts with testcontainers",
"keywords": [
"amqp",
Expand Down
8 changes: 8 additions & 0 deletions packages/worker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @amqp-contract/worker

## 2.0.0

### Patch Changes

- Updated dependencies [8707df1]
- @amqp-contract/contract@2.0.0
- @amqp-contract/core@2.0.0

## 1.0.0

### Patch 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": "1.0.0",
"version": "2.0.0",
"description": "Worker utilities for consuming messages using amqp-contract",
"keywords": [
"amqp",
Expand Down
Loading