- 0b0122a: Return x-hub-signature-256 header alongside event notification return
- da9832f: Update Documentation for Fastify Raw Body Parsing
- 5669c73: Explicitly set UTF-8 encoding in signature calculation
- 4acedc2: Correct prefixUrl construction for graph version selection
- ec11904: Export MessageType enum as non-type
- feebb70: Add Phone Numbers' APIs
- dfaf6eb: Add CLI command: message text
- 500e6e8: Add user_id to Webhook Event Notification contacts object
- 9d5d62a: Add Business Profile APIs
- effa7c1: Add createSubscription and listSubscriptions SubscribedApps APIs
- 6d6b234: Offload authentication to use-case
- 564a24d: Add request method check for webhook event notification processing
-
685b4de: Refactor & Rewrite SDK.
Before:
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:
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", }, });
- 6a95707: Add EventNotificationStatusReason.failed
- abd5903: Update dependencies
- 3685b82: Update dependencies
- 9bea58a: Update dependencies
- dd8f9e3: Remove src from distributed files
- f0457a4: bump dependencies
- ac3661b: bump dependencies
- 47d1827: bump dependencies
- 60377af: Update default Meta Graph API version to v20.0
- 6a13a44: correct encapsulation in GraphRequest class
- 8db15ae: encapsulate request and response objects. replaces class-based inheritance.
- bae08fd: update dependencies
- 634faaf: bump typescript
- c20f756: bump dependencies
- e2e31d8: bump dependencies
- 4ce41e4: bump dependencies
- ac20c25: bump dependencies
- 57098b6: bump dependencies
- 3d68ec7: bump dependencies
- dbe8c3c: bump dependencies
- 2327b8e: bump dependencies
- 78fded2: bump dependencies
- 4b2931a: update default Graph API version from
v18
tov19
- f73b51a: feat: export
WebhookAPIEventNotificationReturn
- fe3dd22: feat: export
WebhookAPIRegisterReturn
- 803fb4e: revert: remove SHA-1 integrity checking
- 2d71b9f: feat: check SHA-1 integrity signature in addition to SHA-256 signature
- 7f7fece: refactor: decouple SDK from routing for compatibility further than ExpressJS
- a1c6cb7: bump dependencies
- efc4f51: bump dependencies
- 46c53b4: bump dependencies
- c2ec105: add
CloudAPIMedia#verifySha256
helper method to ensure downloaded media file integrity
- c2b50cf: correct spelling error of
mime_type
inMediaURL
type
- c2707b1: add
message send media
command - 908b5c7: use
cross-fetch
'sRequest
andResponse
over incompatible native objects
- 074a335: add
cross-fetch
in place of nativefetch
use. Introduces support for browser + node interoperability - 6d8be2e: remove bug-related use of
axios
over fetch in favour ofcross-fetch
- c1ab76f: rename
businessID
parameter forCloudAPIMessage
tophoneNumberID
- 01c1265: bump dependencies
- 3e7b04d: allow media file downloading via CLI
- 0c75799: introduce command line interface for operating WhatsApp operations
- 1341b78: use
tsup
to provide full CJS+ESM transpilation and support - 9b095c5: Add media file handling for Image/Video/Document message support
- 7587307: move requestOptions option for
CloudAPIMessage#createStatus
inside options object. Update use fromCloudAPIMessage.createStatus(/* ... */, requestOptions)
toCloudAPIMessage.createStatus(/* ... */, { requestOptions })
.
- 7a08e88: add default value for CloudAPI constructor parameters
- 7587307: allow options objects to be omitted where not required in
CloudAPIMessage#createStatus
- b534212: bump dependencies
- 06c14f0: chore: move @changesets/cli to devDependencies
- 2ec69a4: bump dependencies
- aa455aa: refactor: rename
requestProps
ofCreateMessageOptionsType
torequestOptions
- 3599139: refactor: add missing response messages.message_status field typing
- f531a68: refactor: add
error
as parameter in response to message sending - 5b9bf96: refactor: add
group
as a suggested value toOutgoingMessage.recipient_type
- f05ab0c: fix: correct GraphResponse typing for createStatus method
- d3e7d5d: fix: correct usable node versions to >=18.x
- 273f996: fix: remove requestInit passing to fetch call
- 1f3f833: fix: allow header merging when using GraphRequest.send method
- 5b89c1e: refactor: revamp internal GraphRequest construction with version, endpoint, baseUrl visibility
- 7d9ff48: refactor: remove on-premises API related types
- b93f020: feat: introduce isUpgraded dynamic property on GraphResponse, indicative of API versioning upgrades
- 3a01264: refactor: pass class logger instance to GraphRequest.create calls
- ca0120e: feat: allow passing logger to GraphRequest.create
- c8762c5: fix: use ESM only
- 53e649c: fix: correct syntax for mjs exports
- 4cf5ca7: fix: use ESM import file extension syntax
- ec8c018: fix: default
package.json#type
tomodule
- c132743: fix: re-instate building process from v6.3.2
- df0a0aa: fix: add
package.json#main
- 92fdc50: fix: combine types and esmodule outputs in dist directory
- bbe381d: use es modules only
- c23a171: use module as primary package type
- 8056f1f: bump dependencies
- c01558f: updated readme to clarify unofficial relational standing
- 6b323d7: introduce multi-module compilation for cjs and mjs support
- 3c1d164: use
@great-detail/prettier-config
- 4faaa2c: remove start of on-premises API
- 53b72ae: bump dependencies
- 2eb8f91: Introduce On-Premises API Compatibility
- 4611d88: add base for URL in webhook registration method
- 914d664: bump dependencies
- c4a11b8: Add empty object default for
CloudAPI.message
method
- 89aeb49: Move Versioning Process to Changesets