Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs(changelog): record MessageProjector in the decomposition entry
Yudhi Armyndharis90813d9e9350
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 5a134f078..94d83d980 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -27,14 +27,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0around twenty call sites as `isLiveEngine(id, e) && engines.delete(id)`. It is now `isLive` /`deleteIfLive` on the registry, written once.-- **Four self-contained concerns were lifted out of `SessionService`.** Each was previously reachable+- **Five self-contained concerns were lifted out of `SessionService`.** Each was previously reachableonly by driving the full session lifecycle, so the trickiest logic in the file had the least directcoverage. The `@lid`→phone read-through cache became `SessionLidResolver` (and took an `@Optional`constructor dependency with it); the reconnect backoff *decision* became a pure `decideReconnect()`with injected clock and jitter, leaving the service to apply only the effects; the liveness watchdogbecame `SessionLivenessWatchdog`, which owns its interval and failure counter and reports back- through a single `onDead` callback; and the per-message serialization chain became a general- `KeyedMutationQueue`. Behaviour is unchanged — the existing session specs pass untouched — and the+ through a single `onDead` callback; the per-message serialization chain became a general+ `KeyedMutationQueue`; and every path that turns an engine message callback into a persisted row —+ live inbound, own-send echo, ack reconciliation, revoke, reactions, edits and history backfill —+ became `MessageProjector`, which owns the one mutation chain that IS the per-message ordering+ guarantee. Behaviour is unchanged — the existing session specs pass untouched — and thesplit adds 77 tests over branches that previously needed hours of uptime or live engine callbacks toreach: the FIFO eviction that bounds the lid cache, the stability reset that stops a long-livedsession slowly wedging `FAILED` across unrelated transient drops, the loop-alert re-arm after a