aunubaileys 1.0.18 β 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/WAProto/fix-imports.js +1 -1
- package/lib/Socket/messages-recv.js +7 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -64,6 +64,10 @@ Everything else is pure upstream. When upstream moves, we rebase the patch layer
|
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
|
|
67
|
+
### π What's new in 1.0.19 / Baru di 1.0.19
|
|
68
|
+
|
|
69
|
+
- π **A failed retry request can no longer kill your bot** β the retry-receipt path after a decrypt failure runs fire-and-forget (by design), but its promise had no error handler at all: one failure inside it became an unhandled rejection, and Node's default policy terminates the whole process. It now routes to the standard error handler β logged, contained, and the bot keeps processing messages.
|
|
70
|
+
|
|
67
71
|
### π What's new in 1.0.18 / Baru di 1.0.18
|
|
68
72
|
|
|
69
73
|
- π **Retry receipts: the peer's own key bundle is finally used** β when a recipient device asks for a resend, its retry receipt often embeds that device's own current key bundle. Upstream ignored it and always re-fetched a bundle from the server (extra round trip, and JIDβbundle mapping is fragile for LID participants). AunuBaileys now parses the bundle (new exported `parseRetryReceiptSession`, unit-verified) and injects it as the fresh session for the resend, skipping the server fetch for that resend. Receipts without a bundle behave exactly as before.
|
package/WAProto/fix-imports.js
CHANGED
|
@@ -729,7 +729,13 @@ export const makeMessagesRecvSocket = (config) => {
|
|
|
729
729
|
else {
|
|
730
730
|
logger.debug({ node }, 'connection closed, ignoring retry req');
|
|
731
731
|
}
|
|
732
|
-
});
|
|
732
|
+
}).catch(err => onUnexpectedError(err, 'sending retry request'));
|
|
733
|
+
// AunuBaileys: this mutex call is deliberately fire-and-forget
|
|
734
|
+
// (it must not block message processing), but until now its
|
|
735
|
+
// rejection was UNHANDLED β a failed retry request (socket
|
|
736
|
+
// died mid-flight, pre-key fetch error) crashed the whole
|
|
737
|
+
// process under Node's default unhandled-rejection policy.
|
|
738
|
+
// It is now routed to the standard error handler instead.
|
|
733
739
|
}
|
|
734
740
|
else {
|
|
735
741
|
if (author) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aunubaileys",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.19",
|
|
5
5
|
"description": "AunuBaileys \u2014 a WhatsApp Web API for bots that never sleep. Full upstream power with the beloved in-memory store restored and pairing that just works. Forged by AunuCore.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"whatsapp",
|