@entifix/amqp 0.1.0-0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +30 -0
  2. package/package.json +7 -6
package/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # @entifix/amqp
2
+
3
+ RabbitMQ, on `amqplib`. The root entry provides the connection, the channel and a health probe. The `transactions` subpath implements the `EventBus` port from `@entifix/transactions`: publishing onto a topic exchange, consuming with retry, and quarantining a message that cannot be processed rather than redelivering it forever.
4
+
5
+ Bus throughput and failures are recorded as metrics.
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ pnpm add @entifix/amqp effect
11
+ ```
12
+
13
+ ## Entry points
14
+
15
+ | Import | What it holds |
16
+ | ---------------------------- | -------------------------------------------------------------------------- |
17
+ | `@entifix/amqp` | `makeAmqpConnector`, `AmqpLayer`, `AmqpChannelTag`, `AmqpHealthProbeLayer` |
18
+ | `@entifix/amqp/transactions` | `makeAmqpEventBus`, `AmqpEventBusLayer`, bus metrics |
19
+
20
+ ## Optional peers
21
+
22
+ Install these only if you use what needs them.
23
+
24
+ | Peer | Needed by |
25
+ | ----------------------- | ---------------------------- |
26
+ | `@entifix/transactions` | `@entifix/amqp/transactions` |
27
+
28
+ ---
29
+
30
+ Tier 2 (adapters) of entifix — a package depends only on its own tier or below. See [the tiers](https://github.com/r10c-technologies/entifix#the-tiers-and-what-you-are-allowed-to-install). MIT licensed.
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@entifix/amqp",
3
- "version": "0.1.0-0",
3
+ "version": "0.1.1",
4
+ "description": "RabbitMQ connection and health probe, and an optional event bus for @entifix/transactions with retry and quarantine.",
4
5
  "license": "MIT",
5
6
  "repository": {
6
7
  "type": "git",
@@ -62,18 +63,18 @@
62
63
  "dependencies": {
63
64
  "@swc/helpers": "0.5.23",
64
65
  "amqplib": "2.0.1",
65
- "@entifix/business": "0.1.0-0",
66
- "@entifix/core": "0.1.0-0"
66
+ "@entifix/business": "0.1.1",
67
+ "@entifix/core": "0.1.1"
67
68
  },
68
69
  "devDependencies": {
69
70
  "@types/amqplib": "0.10.5",
70
71
  "effect": "3.22.1",
71
- "@entifix/transactions": "0.1.0-0",
72
- "@entifix/testing-unit": "0.1.0-0"
72
+ "@entifix/transactions": "0.1.1",
73
+ "@entifix/testing-unit": "0.1.1"
73
74
  },
74
75
  "peerDependencies": {
75
76
  "effect": ">=3.22 <4",
76
- "@entifix/transactions": "0.1.0-0"
77
+ "@entifix/transactions": "0.1.1"
77
78
  },
78
79
  "peerDependenciesMeta": {
79
80
  "@entifix/transactions": {