diff --git a/.changeset/silver-deers-double.md b/.changeset/silver-deers-double.md deleted file mode 100644 index 7f2194f..0000000 --- a/.changeset/silver-deers-double.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -"@great-detail/whatsapp": major ---- - -Refactor & Rewrite SDK. - -**Before**: - -```ts -import CloudAPI from "@great-detail/whatsapp"; - -const sdk = new CloudAPI(); -const message = sdk - .message({ phoneNumberID: "123...809" }) - .text({ body: "Hello" }, { toNumber: "1234567890" }); -const sendReceipt = await message.send(); -``` - -**After**: - -```ts -import Client from "@great-detail/whatsapp"; - -const sdk = new Client(); -const message = await sdk.message.createMessage({ - phoneNumberID: "123...809", - to: "1234567890", - type: "text", - text: { - body: "Hello", - }, -}); -``` diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bf21b3..fd547ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,39 @@ # `@great-detail/whatsapp` +## 7.0.0 + +### Major Changes + +- 685b4de: Refactor & Rewrite SDK. + + **Before**: + + ```ts + import CloudAPI from "@great-detail/whatsapp"; + + const sdk = new CloudAPI(); + const message = sdk + .message({ phoneNumberID: "123...809" }) + .text({ body: "Hello" }, { toNumber: "1234567890" }); + const sendReceipt = await message.send(); + ``` + + **After**: + + ```ts + import Client from "@great-detail/whatsapp"; + + const sdk = new Client(); + const message = await sdk.message.createMessage({ + phoneNumberID: "123...809", + to: "1234567890", + type: "text", + text: { + body: "Hello", + }, + }); + ``` + ## 6.10.10 ### Patch Changes diff --git a/package.json b/package.json index 0f2fddb..60c2fbe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@great-detail/whatsapp", - "version": "6.10.10", + "version": "7.0.0", "type": "module", "description": "SDK for interfacing with WhatsApp Business Platform in Typescript or Node.js using the Cloud API, hosted by Meta.", "repository": {