Skip to content

Releases: great-detail/WhatsApp-Nodejs-SDK

v5.1.0

01 Dec 17:19
ef1baed
Compare
Choose a tag to compare

5.1.0 (2023-12-01)

Features

  • add full partial typed support for incoming webhook event notifications (ef1baed)

v5.0.0

30 Nov 16:01
70a11fa
Compare
Choose a tag to compare

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

v4.2.0

29 Nov 15:32
23f2d05
Compare
Choose a tag to compare

4.2.0 (2023-11-29)

Features

  • introduce support for register webhook request handling (23f2d05)

v4.1.0

29 Nov 14:09
e7436e4
Compare
Choose a tag to compare

4.1.0 (2023-11-29)

Features

  • scaffold start of WebhookAPI (8bfd03a)

v4.0.0

29 Nov 10:53
9c7c762
Compare
Choose a tag to compare

4.0.0 (2023-11-29)

Code Refactoring

  • use static GraphRequest.create method over direct constructor (ca74bb7)

BREAKING CHANGES

  • removes version, baseUrl, and endpoint properties on GraphRequest

v3.0.0

18 Oct 10:57
32455a4
Compare
Choose a tag to compare

3.0.0 (2023-10-18)

Code Refactoring

  • Move createMessage options to object (e0c53a4)
  • Rename createReadStatus to createStatus (ba9611d)

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

v2.4.0

18 Oct 09:31
54887d3
Compare
Choose a tag to compare

2.4.0 (2023-10-18)

Features

  • Change const enums to standard enums (aa13423), closes #1

v2.3.2

18 Oct 09:18
8531a77
Compare
Choose a tag to compare

2.3.2 (2023-10-18)

Bug Fixes

  • Change enum from const enum to standard enum (8531a77), closes #1

v2.3.1

03 Oct 15:39
f7b4516
Compare
Choose a tag to compare

2.3.1 (2023-10-03)

Bug Fixes

  • Correct incorrect string concatenation ordering in respect to API versioning (bbf6645)
  • Fix baseUrl construction missing protocol in URL (4490d8d)

v2.3.0

03 Oct 15:17
9bc3020
Compare
Choose a tag to compare

2.3.0 (2023-10-03)

Features

  • Change module type to CommonJS rather than ESM modules (9bc3020)