From 08359d6dd8105d1614feac33bd44ecd4a3abff45 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 20 Nov 2024 17:38:24 +0000 Subject: [PATCH] chore(release): version packages --- .changeset/silver-deers-double.md | 33 ------------------------------ CHANGELOG.md | 34 +++++++++++++++++++++++++++++++ package.json | 2 +- 3 files changed, 35 insertions(+), 34 deletions(-) delete mode 100644 .changeset/silver-deers-double.md diff --git a/.changeset/silver-deers-double.md b/.changeset/silver-deers-double.md deleted file mode 100644 index 7f2194f5..00000000 --- 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 0bf21b35..fd547ff5 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 0f2fddb4..60c2fbeb 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": {