Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs(changelog): record the initializeEngine breakdown
Yudhi Armyndharisc3d31a7040aa
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex b3012339f..6961f10c1 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -49,6 +49,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0the by-type stats), and `storableWaMessageId()` makes the empty-sentinel chokepoint real rather thana comment repeated at each call site.+ `initializeEngine` itself drops from 807 lines to 327. Nearly all of it was engine-callback bodies+ inlined into one object literal, which hid the wiring — which events exist, and in what order —+ under the handling; the five largest (inbound message, own-send echo, ack, ready, revoke) are now+ named methods and the function reads as the event table it is. Pure code motion: each method takes+ the same captured `(id, engine)` the closure did, so the stale-generation identity guards are+ unchanged.+### Fixed- **The non-root smoke test can actually be run.** `scripts/smoke-test-non-root.sh` carried a UTF-8