|
| 1 | +# 2.3.7 (2025-11-07) |
| 2 | + |
| 3 | +### Features |
| 4 | + |
| 5 | +* **WhatsApp Business Meta Templates**: Add update and delete endpoints for Meta templates |
| 6 | + - New endpoints to edit and delete WhatsApp Business templates |
| 7 | + - Added DTOs and validation schemas for template management |
| 8 | + - Enhanced template lifecycle management capabilities |
| 9 | + |
| 10 | +### Fixed |
| 11 | + |
| 12 | +* **Baileys Message Processor**: Fix incoming message events not working after reconnection |
| 13 | + - Added cleanup logic in mount() to prevent memory leaks from multiple subscriptions |
| 14 | + - Recreate messageSubject if it was completed during logout |
| 15 | + - Remount messageProcessor in connectToWhatsapp() to ensure subscription is active |
| 16 | + - Fixed issue where onDestroy() calls complete() on RxJS Subject, making it permanently closed |
| 17 | + - Ensures old subscriptions are properly cleaned up before creating new ones |
| 18 | + |
| 19 | +* **Baileys Authentication**: Resolve "waiting for message" state after reconnection |
| 20 | + - Fixed Redis keys not being properly removed during instance logout |
| 21 | + - Prevented loading of old/invalid cryptographic keys on reconnection |
| 22 | + - Fixed blocking state where instances authenticate but cannot send messages |
| 23 | + - Ensures new credentials (creds) are properly used after reconnection |
| 24 | + |
| 25 | +* **OnWhatsapp Cache**: Prevent unique constraint errors and optimize database writes |
| 26 | + - Fixed `Unique constraint failed on the fields: (remoteJid)` error when sending to groups |
| 27 | + - Refactored query to use OR condition finding by jidOptions or remoteJid |
| 28 | + - Added deep comparison to skip unnecessary database updates |
| 29 | + - Replaced sequential processing with Promise.allSettled for parallel execution |
| 30 | + - Sorted JIDs alphabetically in jidOptions for accurate change detection |
| 31 | + - Added normalizeJid helper function for cleaner code |
| 32 | + |
| 33 | +* **Proxy Integration**: Fix "Media upload failed on all hosts" error when using proxy |
| 34 | + - Created makeProxyAgentUndici() for Undici-compatible proxy agents |
| 35 | + - Fixed compatibility with Node.js 18+ native fetch() implementation |
| 36 | + - Replaced traditional HttpsProxyAgent/SocksProxyAgent with Undici ProxyAgent |
| 37 | + - Maintained legacy makeProxyAgent() for Axios compatibility |
| 38 | + - Fixed protocol handling in makeProxyAgent to prevent undefined errors |
| 39 | + |
| 40 | +* **WhatsApp Business API**: Fix base64, filename and caption handling |
| 41 | + - Corrected base64 media conversion in Business API |
| 42 | + - Fixed filename handling for document messages |
| 43 | + - Improved caption processing for media messages |
| 44 | + - Enhanced remoteJid validation and processing |
| 45 | + |
| 46 | +* **Chat Service**: Fix fetchChats and message panel errors |
| 47 | + - Fixed cleanMessageData errors in Manager message panel |
| 48 | + - Improved chat fetching reliability |
| 49 | + - Enhanced message data sanitization |
| 50 | + |
| 51 | +* **Contact Filtering**: Apply where filters correctly in findContacts endpoint |
| 52 | + - Fixed endpoint to process all where clause fields (id, remoteJid, pushName) |
| 53 | + - Previously only processed remoteJid field, ignoring other filters |
| 54 | + - Added remoteJid field to contactValidateSchema for proper validation |
| 55 | + - Maintained multi-tenant isolation with instanceId filtering |
| 56 | + - Allows filtering contacts by any supported field instead of returning all contacts |
| 57 | + |
| 58 | +* **Chatwoot and Baileys Integration**: Multiple integration improvements |
| 59 | + - Enhanced code formatting and consistency |
| 60 | + - Fixed integration issues between Chatwoot and Baileys services |
| 61 | + - Improved message handling and delivery |
| 62 | + |
| 63 | +### Code Quality & Refactoring |
| 64 | + |
| 65 | +* **Template Management**: Remove unused template edit/delete DTOs after refactoring |
| 66 | +* **Proxy Utilities**: Improve makeProxyAgent for Undici compatibility |
| 67 | +* **Code Formatting**: Enhance code formatting and consistency across services |
| 68 | + |
1 | 69 | # 2.3.6 (2025-10-21) |
2 | 70 |
|
3 | 71 | ### Features |
|
0 commit comments