Skip to content

chore: bump baileys 7.0.0-rc.9 → 7.0.0 (estável) + 3 fixes contidos - #3

Merged
Faelst merged 3 commits into
mainfrom
chore/baileys-7.0.0
Dec 3, 2026
Merged

Faelst merged 3 commits into
mainfrom
chore/baileys-7.0.0

Conversation

@Faelst

@Faelst Faelst commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Sobe o Baileys do pre-release 7.0.0-rc.9 para o estável 7.0.0 (WhiskeySockets) e, no mesmo branch, carrega os 3 fixes que estavam na PR #2.

Já está em produção como release v9 (deploy direto autorizado). Esta PR é o registro/revisão. Supera a PR #2 — o conteúdo dela foi incluído aqui (cherry-pick), então a #2 pode ser fechada.

Bump do Baileys (evolution-foundation#2638 / evolution-foundation#2686 / CVE-2026-48063)

Fixes contidos (vindos da PR #2)

Validação

🤖 Generated with Claude Code

Faelst and others added 3 commits December 2, 2026 17:53
The runtime config var NODE_OPTIONS=--max-old-space-size=384 (set to
contain R14 on the 512MB dyno) leaks into the Heroku Node buildpack
build phase, capping tsc+tsup at 384MB and causing a JS heap OOM.
Override NODE_OPTIONS inline in the build script so the build gets
2048MB; start:prod keeps the inherited 384MB ceiling at runtime.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Moves off the 7.0.0-rc.9 pre-release to the stable 7.0.0 release of
WhiskeySockets/baileys. Rationale:

- evolution-foundation#2638: outbound messages intermittently stay PENDING on rc.9 and deliver
  normally on newer builds; 7.0.0 supersedes the whole rc line.
- evolution-foundation#2686 / CVE-2026-48063: the fix landed in >= rc.12; 7.0.0 includes it.

Pinned exactly (no caret) so the applied patch can't silently break on a
later install.

Patch re-authored for 7.0.0: the CB:status stanza ack (issue evolution-foundation#2778 /
Baileys #2858) is still NOT in upstream 7.0.0, so it is carried forward.
The rc.9 patch filename no longer matched the version and was replaced by
patches/baileys+7.0.0.patch (patch-package regenerated, node --check OK).

The fork's own backports (evolution-foundation#2663 @lid->PN, evolution-foundation#2688 BR 9th digit, evolution-foundation#2708
reply/quote, evolution-foundation#2808 group history bundle) are kept as-is: they type-check and
build clean against 7.0.0 and are either still required or degrade to a
harmless no-op, so removing them would risk reopening a bug.

Validated: tsc --noEmit, eslint, npm run build all green. Still needs a
live send/receive smoke test before it is trusted in production.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…k fetchInstances token

Three contained, verified fixes for open upstream issues that affect the
Radar de Ingressos (inbound reading) and SafetySwap (outbound delivery),
all on the live messages.upsert / fetch path, with src diverging from
upstream.

- evolution-foundation#2773: unwrap ephemeralMessage / viewOnce envelopes before content
  handling. Baileys delivers disappearing/view-once messages with the real
  content nested; Evolution never called normalizeMessageContent on the
  live path, so getContentType() reported `ephemeralMessage`, the
  text->conversation flattening and isMedia checks never fired, and the
  message was stored/webhooked with its text buried. Any offer sent in a
  chat with disappearing messages on was invisible to the radar.

- evolution-foundation#2705: getMessage() returned { conversation: '' } on a DB miss. Baileys
  treats any truthy return as "found" and relays the empty envelope to
  satisfy a retry, burning one attempt and leaving the recipient stuck on
  "Waiting for this message" forever. Return undefined instead so Baileys
  falls through to its resend path. (full=true already returned undefined.)

- evolution-foundation#2677: fetchInstances returned the instance `token` (auth hash)
  unconditionally; AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES was only ever
  applied to the webhook apiKey field, never this HTTP response. Mask the
  token when the flag is false. Real exposure on a shared multi-instance
  server.

Validated with tsc --noEmit, eslint and npm run build. Baileys-coupled
paths (evolution-foundation#2773, evolution-foundation#2705) still want a live smoke test on a real instance.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Faelst
Faelst merged commit ef71f30 into main Dec 3, 2026
1 check passed

This branch was previously deployed

1 inactive deployment
evolution-app — 00d2a33b Deployed Dec 3, 2026 by Faelst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant