Repository navigation
chore: bump baileys 7.0.0-rc.9 → 7.0.0 (estável) + 3 fixes contidos - #3
Merged
Merged
Conversation
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>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sobe o Baileys do pre-release
7.0.0-rc.9para o estável7.0.0(WhiskeySockets) e, no mesmo branch, carrega os 3 fixes que estavam na PR #2.Bump do Baileys (evolution-foundation#2638 / evolution-foundation#2686 / CVE-2026-48063)
baileyspinado exato (sem caret) pra o patch não quebrar num install futuro.tsc --noEmitlimpo nos 27 símbolos que o fork usa.CB:status(Baileys #2858) não está no upstream 7.0.0, então foi recriado pra nova estrutura (makeOfflineNodeProcessor) →patches/baileys+7.0.0.patch. Testado em install limpo (cola do zero,node --checkok).Fixes contidos (vindos da PR #2)
ephemeralMessage/viewOnce nomessages.upsert(ofertas em modo temporário chegavam com texto enterrado → radar não via).getMessageretornaundefinedno miss (antes{conversation:''}queimava o retry → "Waiting for this message" eterno).tokennofetchInstancesquandoEXPOSE_IN_FETCH_INSTANCES=false.Validação
tsc✅ ·eslint✅ ·npm run build✅ · migrate release ✅ (sem pendências)messages.upserte repassando ao webhook do radar comDELIVERY_ACK.heroku rollback v8.🤖 Generated with Claude Code