fix: resolver erro Client outdated (405) com whatsmeow atualizado e handshake dinamico #1

Merged
jfeng merged 5 commits from fix/client-outdated-405 into maintained-develop 2026-11-09 14:45:08 +00:00
5 Commits
Author SHA1 Message Date
jfeng 245510315c chore: sync maintenance documentation and workflows into fix branch
CI - Validacao Go / Validar Codigo e Testes (push) Failing after 4m46s
CI - Validacao Go / Validar Codigo e Testes (pull_request) Failing after 3m53s
2026-11-09 11:17:53 -03:00
jfeng 91c1d0697f fix(handshake): apply dynamic store.SetWAVersion and UserAgent to prevent 405 error 2026-11-09 11:12:27 -03:00
MayconVM 70ecc1746c fix(makefile): read release version from CHANGELOG heading
The old pattern 'grep -om1 "v[0-9].*"' matched the first vN.N.N anywhere in
the file, so any mention of a module pseudo-version above the release heading
silently corrupted the build version (e.g. it produced
"v0.0.0-20261102152715-54038813c47f`." as main.version). Anchor it to the
## vX.Y.Z heading instead.
2026-11-09 11:11:21 -03:00
MayconVM ab5f84213f docs: record whatsmeow bump, Go 1.26 requirement and blocklist response change 2026-11-09 11:11:21 -03:00
MayconVM 99b4d78f62 deps: bump whatsmeow to 2026-11-02 (fix 405 client outdated)
whatsmeow was pinned to 2026-06-30 (v0.0.0-20260630180629-b572e5bcb92b),
which predates WhatsApp's minimum client version bump and causes
405 client-outdated connect failures.

- go.mau.fi/whatsmeow -> v0.0.0-20261102152715-54038813c47f
- go.mau.fi/util 0.9.10 -> 0.11.0, x/{crypto,net,sync,sys,text,tools} bumped
- go directive 1.25.0 -> 1.26.0 (upstream minimum), Dockerfile builder
  golang:1.25.0-alpine -> golang:1.26.10-alpine

API adaptations:
- UpdateBlocklist/GetBlocklist now take a dhash argument
- SetStatusMessage takes types.SetStatusInput (text behind mex query)

Store schema upgrades to v16 (companion_meta_nonce, wasa_root_secret_id)
run automatically on container open; verified against a v14 sqlite auth DB.
2026-11-09 11:11:21 -03:00