Releases: great-detail/WhatsApp-Nodejs-SDK
Releases · great-detail/WhatsApp-Nodejs-SDK
v5.1.0
v5.0.0
5.0.0 (2023-11-30)
Code Refactoring
- adjust exports to distinguish between
Incoming
vsOutgoing
enums forMessageType
-s (e86f705) - distinguish between Cloud API and Premises API (59965e6)
- move CloudWhatsAppAPI SDK from default export (fa2a6db)
- move existing
Message/
dir ->OldMessageType/
(7a97da0) - Prefer object destructuring for API constructor (e68f703)
Features
- add handling for incoming webhook requests (b70bfca)
- correct and document typing for Messages (b27e791)
- introduce initial types for detail objects for Webhook EventNotification parsing (9fc56d6)
- start to introduce EventNotification types (ae202c7)
BREAKING CHANGES
MessageTypesEnum
->OutgoingMessageType
in imports- introduces types that are more consistent with actual types. Some changes have been made that aren't consistent with the original types in this library (which can be found, temporarily, within
OldMessageTypes/
) - Anything moved from is deprecated and will be removed shortly
- MessageAPI -> CloudMessageAPI, WebhookAPI -> CloudWebhookAPI, WhatsAppAPI -> CloudWhatsAppAPI
- import { CloudWhatsAppAPI } from "..." instead of import WhatsAppAPI from "..."
- uses object as constructor param, replace businessId and logger params with single { businessID, logger } parameter
v4.2.0
v4.1.0
v4.0.0
v3.0.0
3.0.0 (2023-10-18)
Code Refactoring
Features
- Add response typing to createStatus GraphRequest instances (647f8f4)
- Introduce shorthand access for message creation (b9b88c5)
BREAKING CHANGES
- Changes createReadStatus to createStatus, calls to such method should be renamed
- toNumber, replyMessageId, requestProps parameters for MessageAPI.createMessage have moved to the options object