@entifix/transactions 0.1.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.
- package/README.md +21 -0
- package/package.json +3 -2
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# @entifix/transactions
|
|
2
|
+
|
|
3
|
+
Writes that span more than one step. A client mints the transaction id, which is also the idempotency key; the event announcing a write is enqueued in an outbox inside the same database transaction as the write itself; and a flow across several services is a saga — a declarative definition, run and resumed from its own record.
|
|
4
|
+
|
|
5
|
+
This package holds the ports and the engine only. The storage and transport behind them come from `@entifix/mongo/transactions`, `@entifix/redis/transactions` and `@entifix/amqp/transactions`.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pnpm add @entifix/transactions effect
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Entry points
|
|
14
|
+
|
|
15
|
+
| Import | What it holds |
|
|
16
|
+
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
17
|
+
| `@entifix/transactions` | Command envelopes, transaction events, inbox / outbox / event-bus / lock / sequence ports, `defineSaga`, `runSaga`, `resumeSaga`, the transaction stream hub |
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
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/transactions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Commands, transactions and sagas: inbox and outbox ports, an event bus, locks, and a declarative saga runner.",
|
|
4
5
|
"license": "MIT",
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "git",
|
|
@@ -54,7 +55,7 @@
|
|
|
54
55
|
},
|
|
55
56
|
"dependencies": {
|
|
56
57
|
"@swc/helpers": "0.5.23",
|
|
57
|
-
"@entifix/core": "0.1.
|
|
58
|
+
"@entifix/core": "0.1.1"
|
|
58
59
|
},
|
|
59
60
|
"peerDependencies": {
|
|
60
61
|
"effect": ">=3.22 <4"
|