Skip to content

v5.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 30 Nov 16:01
· 870 commits to main since this release
70a11fa

5.0.0 (2023-11-30)

Code Refactoring

  • adjust exports to distinguish between Incoming vs Outgoing enums for MessageType-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