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 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.
@@ -1,5 +1,5 @@
1
1
  import { readFileSync, writeFileSync } from 'fs';
2
- import { argv, exit } from 'process';
2
+ import { exit } from 'process';
3
3
 
4
4
  const filePath = './index.js';
5
5
 
@@ -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.18",
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",