@krizaka/outbox 0.1.2 → 0.1.3

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 +1 -1
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @krizaka/outbox
2
2
 
3
- The transactional outbox of every Krizaka product. An event is **written in the caller's transaction**, so it exists exactly when the work committed, and is **delivered after the commit, at least once**, by workers that lease a batch. No broker: PostgreSQL and `FOR UPDATE SKIP LOCKED` share the work between instances. It replaces Akinaza's `mail_outbox` (whose `flushOutbox` nobody called), Orochia's `reco_outbox` and analytics outbox and Yasakia's `analytics_outbox`; it is the TypeScript twin of `krizaka-messaging`'s `krizaka_outbox` (the envelope is `id`, `type`, `occurredAt`, `payload`).
3
+ The transactional outbox of every Krizaka product. An event is **written in the caller's transaction**, so it exists exactly when the work committed, and is **delivered after the commit, at least once**, by workers that lease a batch. No broker: PostgreSQL and `FOR UPDATE SKIP LOCKED` share the work between instances. It replaces Akinaza's `mail_outbox` (whose `flushOutbox` nobody called) and the analytics outboxes the products carried; it is the TypeScript twin of `krizaka-messaging`'s `krizaka_outbox` (the envelope is `id`, `type`, `occurredAt`, `payload`).
4
4
 
5
5
  > **The guarantee is *at least once*. Consumers must be idempotent on the message id.** A claim is exclusive while its lease is valid. A worker that delivers and then crashes before `complete` lets the lease expire, and the message is delivered **again**. The outbox never promises « exactly once ».
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krizaka/outbox",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "The transactional outbox of every Krizaka product: an event written in the caller's transaction, delivered after the commit at least once by leased workers, with doubling retries, dead letters and an idempotent-consumer helper. No broker, no database client, no wall clock.",
5
5
  "keywords": [
6
6
  "krizaka",
@@ -55,12 +55,12 @@
55
55
  "typescript": "^5.9.3",
56
56
  "vitest": "^4.1.11",
57
57
  "zod": "^4.6.7",
58
- "@krizaka/config": "^0.14.1"
58
+ "@krizaka/config": "^0.17.0"
59
59
  },
60
60
  "dependencies": {
61
- "@krizaka/db": "^0.3.0",
62
- "@krizaka/settings": "^0.5.1",
63
- "@krizaka/time": "^0.1.0"
61
+ "@krizaka/db": "^0.3.1",
62
+ "@krizaka/settings": "^0.5.2",
63
+ "@krizaka/time": "^0.2.0"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "vitest": ">=4",