Skip to content

Commit

Permalink
Merge pull request #258 from great-detail/changeset-release/main
Browse files Browse the repository at this point in the history
chore(release): version packages
  • Loading branch information
domwebber authored Nov 20, 2024
2 parents 8645e3e + 08359d6 commit 9a0f0e1
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 34 deletions.
33 changes: 0 additions & 33 deletions .changeset/silver-deers-double.md

This file was deleted.

34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 9a0f0e1

Please sign in to comment.