Skip to content

Commit 6d510d7

Browse files
github-actions[bot]btravers
authored andcommitted
chore: release packages (beta)
1 parent 78e149a commit 6d510d7

13 files changed

Lines changed: 156 additions & 6 deletions

File tree

.changeset/pre.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"changesets": [
1313
"adopt-btravstack-0.2",
1414
"adopt-unthrown-v5-beta",
15+
"bump-unthrown-5-stable",
1516
"bump-unthrown-beta-5",
1617
"bump-unthrown-beta-6",
1718
"bump-unthrown-beta-7",

packages/asyncapi/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @amqp-contract/asyncapi
22

3+
## 3.0.0-beta.3
4+
5+
### Patch Changes
6+
7+
- @amqp-contract/contract@3.0.0-beta.3
8+
39
## 3.0.0-beta.2
410

511
### Patch Changes

packages/asyncapi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@amqp-contract/asyncapi",
3-
"version": "3.0.0-beta.2",
3+
"version": "3.0.0-beta.3",
44
"description": "AsyncAPI specification generator for amqp-contract",
55
"keywords": [
66
"amqp",

packages/client/CHANGELOG.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,52 @@
11
# @amqp-contract/client
22

3+
## 3.0.0-beta.3
4+
5+
### Patch Changes
6+
7+
- faa74f7: Bump `unthrown` to the stable `5.0.0` and raise the peer range to `^5.0.0`.
8+
9+
The betas between `5.0.0-beta.7` and the release carried one change that reaches
10+
call sites:
11+
12+
- **`tag(t)` is gone; the pattern is `P.tag(t)`** (`5.0.0-beta.9`). It was the
13+
only pattern constructor living loose on the root export while `P._` / `P.any`
14+
/ `P.instanceOf` / `P.when` / `P.union` sat on the namespace, so it moved onto
15+
`P`. There is no alias. The pattern's type and runtime behaviour are
16+
unchanged — it still produces `{ _tag: t }`, still narrows to the matching
17+
variant with its payload, and still composes in grouped patterns and inside
18+
`P.union`.
19+
20+
Every matcher example in these packages' TSDoc, READMEs and the docs site is
21+
updated. In your own code the migration is mechanical — swap `tag` for `P` in
22+
the `unthrown` import and prefix the call sites:
23+
24+
```diff
25+
- import { tag } from "unthrown";
26+
+ import { P } from "unthrown";
27+
28+
result.match({
29+
ok: () => {/* … */},
30+
errCases: (matcher) =>
31+
- matcher.with(tag("@amqp-contract/MessageValidationError"), (error) => {/* … */}),
32+
+ matcher.with(P.tag("@amqp-contract/MessageValidationError"), (error) => {/* … */}),
33+
defect: (cause) => { throw cause; },
34+
});
35+
```
36+
37+
`5.0.0-beta.10` also stopped shipping sourcemaps and declaration maps (`files`
38+
already excluded `src/`, so the published maps were dead-ends); `beta.8`,
39+
`beta.11` and `beta.12` were no-ops for core, and the `5.0.0` release itself
40+
added nothing beyond `beta.12`. `@unthrown/vitest` moves to `5.0.0` alongside.
41+
42+
The peer floor is raised to the release rather than left at a beta so consumers
43+
resolve the same copy these packages were built and tested against — the point
44+
of the peer dependency is a single shared `unthrown`.
45+
46+
- Updated dependencies [faa74f7]
47+
- @amqp-contract/core@3.0.0-beta.3
48+
- @amqp-contract/contract@3.0.0-beta.3
49+
350
## 3.0.0-beta.2
451

552
### Patch Changes

packages/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@amqp-contract/client",
3-
"version": "3.0.0-beta.2",
3+
"version": "3.0.0-beta.3",
44
"description": "Client utilities for publishing messages using amqp-contract",
55
"keywords": [
66
"amqp",

packages/contract/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# @amqp-contract/contract
22

3+
## 3.0.0-beta.3
4+
35
## 3.0.0-beta.2
46

57
## 3.0.0-beta.1

packages/contract/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@amqp-contract/contract",
3-
"version": "3.0.0-beta.2",
3+
"version": "3.0.0-beta.3",
44
"description": "Contract builder for amqp-contract",
55
"keywords": [
66
"amqp",

packages/core/CHANGELOG.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,50 @@
11
# @amqp-contract/core
22

3+
## 3.0.0-beta.3
4+
5+
### Patch Changes
6+
7+
- faa74f7: Bump `unthrown` to the stable `5.0.0` and raise the peer range to `^5.0.0`.
8+
9+
The betas between `5.0.0-beta.7` and the release carried one change that reaches
10+
call sites:
11+
12+
- **`tag(t)` is gone; the pattern is `P.tag(t)`** (`5.0.0-beta.9`). It was the
13+
only pattern constructor living loose on the root export while `P._` / `P.any`
14+
/ `P.instanceOf` / `P.when` / `P.union` sat on the namespace, so it moved onto
15+
`P`. There is no alias. The pattern's type and runtime behaviour are
16+
unchanged — it still produces `{ _tag: t }`, still narrows to the matching
17+
variant with its payload, and still composes in grouped patterns and inside
18+
`P.union`.
19+
20+
Every matcher example in these packages' TSDoc, READMEs and the docs site is
21+
updated. In your own code the migration is mechanical — swap `tag` for `P` in
22+
the `unthrown` import and prefix the call sites:
23+
24+
```diff
25+
- import { tag } from "unthrown";
26+
+ import { P } from "unthrown";
27+
28+
result.match({
29+
ok: () => {/* … */},
30+
errCases: (matcher) =>
31+
- matcher.with(tag("@amqp-contract/MessageValidationError"), (error) => {/* … */}),
32+
+ matcher.with(P.tag("@amqp-contract/MessageValidationError"), (error) => {/* … */}),
33+
defect: (cause) => { throw cause; },
34+
});
35+
```
36+
37+
`5.0.0-beta.10` also stopped shipping sourcemaps and declaration maps (`files`
38+
already excluded `src/`, so the published maps were dead-ends); `beta.8`,
39+
`beta.11` and `beta.12` were no-ops for core, and the `5.0.0` release itself
40+
added nothing beyond `beta.12`. `@unthrown/vitest` moves to `5.0.0` alongside.
41+
42+
The peer floor is raised to the release rather than left at a beta so consumers
43+
resolve the same copy these packages were built and tested against — the point
44+
of the peer dependency is a single shared `unthrown`.
45+
46+
- @amqp-contract/contract@3.0.0-beta.3
47+
348
## 3.0.0-beta.2
449

550
### Patch Changes

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@amqp-contract/core",
3-
"version": "3.0.0-beta.2",
3+
"version": "3.0.0-beta.3",
44
"description": "Core utilities for AMQP setup and management in amqp-contract",
55
"keywords": [
66
"amqp",

packages/testing/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# @amqp-contract/testing
22

3+
## 3.0.0-beta.3
4+
35
## 3.0.0-beta.2
46

57
## 3.0.0-beta.1

0 commit comments

Comments
 (0)