Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs: correct two release-note claims and a stale SDK comment

Yudhi Armyndharisa51519aa8298
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e8acec209..7f49f1994 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,13 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
-- ⚠️ **Breaking (config).** `NODE_ENV` is checked at boot, so a value outside `production`, `development` and `test` fails startup with a named error instead of silently selecting the permissive branch of every production hardening — CORS, Swagger, DTO error detail, the default-secret guard and the `ALLOW_DEV_API_KEY` rejection that stops the public `dev-admin-key` being seeded as an ADMIN credential. The value is compared verbatim, so one padded with surrounding whitespace is rejected too rather than accepted and then treated as non-production: every reader compares the raw variable. Action required: a deployment running `NODE_ENV=staging` (or any other value) now refuses to boot where it previously started with development-grade security. Set `production`, or leave the variable unset. Unset remains legal and unchanged. A blank `NODE_ENV=` counts as unset for the default-secret guard too, so both halves of the rule agree about the same string.
+- ⚠️ **Breaking (config).** `NODE_ENV` is checked at boot, so a value outside `production`, `development` and `test` fails startup with a named error instead of silently selecting the permissive branch of every production hardening — CORS, Swagger, DTO error detail, the default-secret guard and the `ALLOW_DEV_API_KEY` rejection that stops the public `dev-admin-key` being seeded as an ADMIN credential. The value is compared verbatim, so one padded with surrounding whitespace is rejected too rather than accepted and then treated as non-production: the hardening readers compare the raw variable. (The default-secret guard is the exception, and in the safe direction — it runs before boot validation and trims, so a padded `production` is enforced as production there and then refused by the check below either way.) Action required: a deployment running `NODE_ENV=staging` (or any other value) now refuses to boot where it previously started with development-grade security. Set `production`, or leave the variable unset. Unset remains legal and unchanged. A blank `NODE_ENV=` counts as unset for the default-secret guard too, so both halves of the rule agree about the same string.
### Fixed
- The Baileys message-store round-trip test now exercises the serialization it names. Its fixture carried no binary field, so the assertions held under any replacer/reviver pair — including identity — and a regression in the BufferJSON round-trip could not fail CI, on rows that reply, forward, react and delete-by-id resolve against. The fixture now carries bytes, a new spec pins the encoded wire form, and both are checked against an identity codec so neither can go vacuous again.
-- ⚠️ **Breaking (Go SDK).** The Go client can now send the values that clear a field. `UpdateWebhookRequest.Secret`, `.Headers` and `UpdateTemplateRequest.Header`/`.Footer` become pointers, and a `ClearFilters` flag emits the explicit `null` the server reads. They carried `omitempty` over value types, so the values the server reads as "remove this" marshalled away to nothing: the request body came out `{}` and the stored values survived while the call reported success. Action required: Go code assigning these fields directly no longer compiles — take the address of a variable (`s := ""; req.Secret = &s`) or leave the field nil to mean "leave it alone". The four other clients are unaffected.
+- ⚠️ **Breaking (Go SDK).** The Go client can now send the values that clear a field. `UpdateWebhookRequest.Secret`, `.Headers` and `UpdateTemplateRequest.Header`/`.Footer` become pointers, and a `ClearFilters` flag emits the explicit `null` the server reads. They carried `omitempty` over value types, so the values the server reads as "remove this" marshalled away to nothing: the request body came out `{}` and the stored values survived while the call reported success. Action required: Go code assigning these fields directly no longer compiles — take the address of a variable (`s := ""; req.Secret = &s`) or leave the field nil to mean "leave it alone". The four other clients can already express both values, so their request types are unchanged. One narrower gap remains and is not fixed here: the Java client serialises with a Gson that drops nulls, so it can clear `secret`, `headers`, `header` and `footer` by sending an empty value, but cannot emit the explicit `filters: null` that removes a webhook's filters — pass `new WebhookFilters(List.of())`, which stores an empty condition set and stops filtering, until that client gains a clear flag of its own.
- The addressbook write guard now checks the id, not just its domain. `parseWaId('NOT A [email protected]').kind` is `'user'`, so free text, letters and an empty user-part cleared the guard, reached the engine and were reported to the caller as a saved contact — for an entry keyed by something that is not a phone number. It now applies `isIndividualWid`, the same predicate the group-participant, channel-admin and message-mention surfaces already use on these very shapes.
diff --git a/sdk/javascript/src/types.ts b/sdk/javascript/src/types.ts
index 3d7096aff..8764ec110 100644
--- a/sdk/javascript/src/types.ts
+++ b/sdk/javascript/src/types.ts
@@ -641,8 +641,10 @@ export interface ContactRecord {
pushName?: string | null;
isMyContact?: boolean;
/**
- * Whether the account has blocked this contact. Reported best-effort: the Baileys adapter does not
- * track blocklist state and always reports `false`.
+ * Whether the account has blocked this contact. Reflects the account's real blocklist on both
+ * engines. When the blocklist query fails the field stays at its default rather than reporting
+ * "nobody is blocked", and the gateway logs a warning — so a `false` is not proof the contact is
+ * unblocked if the link is unhealthy.
*/
isBlocked?: boolean;
profilePicUrl?: string | null;