Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs(changelog): split the NUL entries and drop the class name
Yudhi Armyndharis8ba6aac321ac
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 1669a640a..141762db7 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -253,7 +253,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- Group and profile picture writes and media sends answer `400` for a non-string `base64` sent next to a `url`, and `send-template` for a non-string `templateId` or `templateName` sent next to the other, instead of `500`.- `POST /api/sessions/:sessionId/groups/join` trims whitespace around the invite code, as the join preview does.- A request whose path or query string contains `%00` is refused with `400`, the unauthenticated ingress route included, instead of failing with `500` on PostgreSQL.-- A request body holding a NUL character is refused with `400` instead of failing with `500` on PostgreSQL, and an MCP tool input holding one gets a `BadRequestException` tool error instead of `Internal error`; `POST /api/infra/import-data` and the ingress route still accept one.+- A request body holding a NUL character is refused with `400` instead of failing with `500` on PostgreSQL, except a backup sent to `POST /api/infra/import-data` and an ingress delivery.+- An MCP tool input holding a NUL character gets a tool error saying so instead of `Internal error` on PostgreSQL.- On PostgreSQL, a NUL character in received message text, a status, an archived media type or a dead-letter error is dropped when stored instead of failing the write, so a history sync no longer loses the rest of its batch.- On PostgreSQL, a NUL character in the account's own profile name is dropped when a session turns ready, instead of failing the write that binds its phone number.- `POST /api/infra/import-data` drops a NUL character from the message, status, profile-name and dead-letter text it restores, so a SQLite backup with one in that text restores on PostgreSQL instead of rolling back.@@ -486,7 +487,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- ⚠️ **Breaking (API).** A group create or participant add naming more new contacts than a whole day's cold-reachout allowance gets `400` without `retryAfterSeconds` instead of `429`; split the batch.- ⚠️ **Breaking (API).** Media conversion answers `503` instead of `400` when ffmpeg cannot be started, and on Baileys a rate-limited or timed-out group, channel or catalog call answers `503` instead of `403` (`404` for `GET /api/sessions/:sessionId/groups/join-info`, `400` for `POST /api/sessions/:sessionId/groups/join`), except a group or channel create that WhatsApp times out (code 408), which may have succeeded and answers `500` instead of `403`; a profile-picture lookup whose connection drops, that WhatsApp rate-limits or times out (code 429 or 408), or that WhatsApp answers with a server error (code 500 or above), answers `503` instead of `200` with a null `url`; a client that branched on the old code needs updating.- Media conversion on a source install needs ffmpeg 4.4 or newer: an older binary fails every video conversion with `400`.-- A NUL character is now refused with `400` in a request path, query or body, except a backup sent to `POST /api/infra/import-data` and an ingress delivery, and with a `BadRequestException` tool error in MCP tool input; it is dropped when stored from received message text, statuses, contact names, archived media types, the account's own profile name and dead-letter errors, on SQLite as well as PostgreSQL.+- A request with `%00` in its path or query, or with a NUL character in its body, now answers `400` on SQLite too, and an MCP tool input holding one gets a tool error; only a backup sent to `POST /api/infra/import-data` and an ingress delivery may still carry one in the body.+- On SQLite too, a NUL character is now dropped when stored from received message text, statuses, contact names, archived media types, the account's own profile name and dead-letter errors, and from the same text in a restored backup.- ⚠️ **Breaking (API).** `POST /api/sessions` refuses an out-of-range or mistyped `config.maxReconnectAttempts`, `config.reconnectBaseDelay` or `config.autoRejectCalls` with `400` instead of storing it; a string such as `"true"` or `"5"` is still accepted and stored typed.- `PATCH /api/sessions/:sessionId/config` answers `409` when concurrent updates to the same session keep conflicting; retry it.- ⚠️ **Breaking (API).** API key create and update refuse with `400` an `expiresAt` that is valid ISO 8601 but not a date the gateway can read, such as the week form `2026-W40-1`, and a key already stored with such an expiry is treated as expired; give it a new expiry with `PUT /api/auth/api-keys/:id`.