zohocpaas 0.0.0-stage → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,39 @@
1
+ # Changelog
2
+
3
+ All notable changes to `zohocpaas` are documented here.
4
+
5
+ ## [1.0.2] - 2026-12-03
6
+
7
+ ### Breaking
8
+
9
+ - `NetworkError` and `TimeoutError` no longer extend `AuthenticationError`. Both now extend the new `SdkError` base. Code that caught `AuthenticationError` for network or timeout failures should catch `NetworkError`, `TimeoutError`, or `SdkError` instead.
10
+ - The empty-credential message from `SendMailClient` changed from `Send Mail token cannot be empty` to `API key cannot be empty`. Update any code that matches the message text.
11
+
12
+ ### Added
13
+
14
+ - `SdkError` base class, exported from the package. Every error the SDK throws extends it, so `err instanceof SdkError` matches all of them.
15
+ - `SendMailClient` accepts `apiKey`, the same credential used by the WhatsApp, SMS, and Voice `apiKey` option. `token` still works as a fallback. When both are set, `apiKey` is used.
16
+
17
+ ### Fixed
18
+
19
+ - `SendMailClient`: when `url` contained `/v1.1`, every send method (`sendMail`, `sendBatchMail`, `sendMailWithTemplate`, `mailBatchWithTemplate`) was posted to the same endpoint. Each method now uses its own path. URLs without a trailing slash and URLs with a plain-HTTP scheme are also handled correctly.
20
+ - Path parameters (domain key, agent key, email reference, suppression type) are URL-encoded.
21
+ - Suppression email and domain validation no longer backtracks exponentially on long input. Accepted inputs are unchanged for the tested samples.
22
+
23
+ ### Changed
24
+
25
+ - Documentation: Quick Start shows Email, WhatsApp, SMS, and Voice side by side. Added a channel configuration section with setup links, and a single credential table.
26
+
27
+ ## [1.0.1] - 2026-11-24
28
+
29
+ ### Changed
30
+
31
+ - Documentation update.
32
+
33
+ ## [1.0.0] - 2026-11-23
34
+
35
+ ### Added
36
+
37
+ - First release under the `zohocpaas` name, the Zoho CPaaS rename of the ZeptoMail Node.js SDK.
38
+ - Email (`SendMailClient`), WhatsApp, SMS, and Voice clients.
39
+ - Account APIs: `AgentClient`, `DomainClient`, `SuppressionClient`, and `EmailLogsClient`, authenticated with OAuth through `AuthenticationClient`.