Skip to content

Commit 1056c74

Browse files
committed
chore: release v4.8.0
1 parent 732bf94 commit 1056c74

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

.changeset/cloud-api-provider.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# zaileys
22

3+
## 4.8.0
4+
5+
### Minor Changes
6+
7+
- 9541add: Official Meta WhatsApp Cloud API provider. `new Client({ provider: 'cloud', cloud: { accessToken, phoneNumberId, verifyToken, appSecret } })` keeps the full zaileys DX on the sanctioned API: `send().text/media/buttons/list/location/contact`, `reply`, `react`, `forward`, plus cloud-only `sendTemplate()`, `markRead(id, { typing })`, and a `message-status` event. Inbound arrives through `wa.webhook()` — a framework-agnostic `(Request) => Response` handler with GET verification and HMAC signature checks — and flows through the same event pipeline (`text`, `image`, `reaction`, `button-click`, `list-select`, ...). Web-only surfaces (`group`, `newsletter`, `community`, `privacy`, `presence`, `edit`, `delete`, `pin`) throw a typed `ZaileysProviderError('UNSUPPORTED_ON_CLOUD')`. The baileys provider stays the default and is completely unchanged. Batch 2 adds the cloud-only management namespace `wa.cloud.*`: template CRUD with a `template-status` event, business profile get/update, WhatsApp Flows (send + `flow-response` event + list), catalog commerce (product/product-list sends + inbound `order` event), address requests, blocklist, QR code links, conversation/messaging analytics, and phone-number registration management.
8+
39
## 4.7.2
410

511
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "zaileys",
33
"description": "Zaileys - Simplified WhatsApp Node.js TypeScript/JavaScript API",
4-
"version": "4.7.2",
4+
"version": "4.8.0",
55
"license": "MIT",
66
"type": "module",
77
"main": "./dist/index.cjs",

0 commit comments

Comments
 (0)