@waffo/pancake-ts 0.10.0 → 0.11.0
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 +24 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,30 @@ All notable changes to `@waffo/pancake-ts` will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [0.11.0] - 2026-06-05
|
|
8
|
+
|
|
9
|
+
Aligns Create/Update Product params with backend product-service v2026.6.4: `description` and `successUrl` accept `null` for explicit field clearing (previously only `undefined` / omitted). Backend also tightens `name` to ≤ 64 characters to match the PSP `goodsName` cap — passing a longer name now returns 400.
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- **`CreateOnetimeProductParams.description` / `successUrl`** — typed `string | null` (was `string`).
|
|
14
|
+
- **`UpdateOnetimeProductParams.description` / `successUrl`** — typed `string | null`.
|
|
15
|
+
- **`CreateSubscriptionProductParams.description` / `successUrl`** — typed `string | null`.
|
|
16
|
+
- **`UpdateSubscriptionProductParams.description` / `successUrl`** — typed `string | null`.
|
|
17
|
+
|
|
18
|
+
### Migration
|
|
19
|
+
|
|
20
|
+
If you currently omit `description` / `successUrl` (or pass `undefined`), no change needed — the backend keeps the existing value. To explicitly clear a previously-set value:
|
|
21
|
+
|
|
22
|
+
```diff
|
|
23
|
+
-await client.onetimeProducts.update({ id, description: undefined }); // keeps existing value
|
|
24
|
+
+await client.onetimeProducts.update({ id, description: null }); // clears the field
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Backend also accepts `""` for the same effect; SDK uses `null` as the canonical "clear" sentinel.
|
|
28
|
+
|
|
29
|
+
Note `name.length` must now be ≤ 64. The backend enforced no limit previously; existing names > 64 chars are rare (production scan found 1 internal test outlier, no real merchant data). New attempts > 64 chars return `400 { errors: [{ message: "name must not exceed 64 characters", layer: "product" }] }`.
|
|
30
|
+
|
|
7
31
|
## [0.10.0] - 2026-06-01
|
|
8
32
|
|
|
9
33
|
Expands `NotificationSettings` to the full 19-field schema (8 consumer-email + 11 merchant-notify toggles) and narrows `UpdateStoreParams.notificationSettings` to the merchant-writable subset.
|