@cookiemunch/sdk 0.31.0 → 0.32.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 +6 -0
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +14 -4
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Every published release, newest first. Dates are the day the version was cut.
|
|
4
4
|
|
|
5
|
+
## 0.32.0 (2026-11-16)
|
|
6
|
+
|
|
7
|
+
- Added: `sites.applyCookies(cbid, input)`, `POST /v1/sites/{cbid}/cookies/apply`: what `planCookies` shows, stored all or nothing.
|
|
8
|
+
- Added: `handOver` on `CookiePlanInput`: own rows to give to a preset in the same run.
|
|
9
|
+
- Changed: `CookiePlanResult.dryRun` is optional; `applyCookies` answers `applied: true` instead.
|
|
10
|
+
|
|
5
11
|
## 0.31.0 (2026-11-14)
|
|
6
12
|
|
|
7
13
|
- Added: `CookiePreset.appliedRevision`, `appliedAt`, `latestRevision`, `latestAt` in `sites.cookiePresets()`: the revision a preset's rows came from against what the vendor's source answers now. Chatly's storage declaration is named by its own `version` (`instance:<version>`).
|
package/dist/index.cjs
CHANGED
|
@@ -571,7 +571,7 @@ async function exchangeOperatorToken(input) {
|
|
|
571
571
|
}
|
|
572
572
|
|
|
573
573
|
// src/index.ts
|
|
574
|
-
var SDK_VERSION = "0.
|
|
574
|
+
var SDK_VERSION = "0.32.0";
|
|
575
575
|
var CookieMunchApiError = class extends Error {
|
|
576
576
|
constructor(status, message, code, body) {
|
|
577
577
|
super(message);
|
|
@@ -751,6 +751,7 @@ function createCookieMunch(opts) {
|
|
|
751
751
|
}),
|
|
752
752
|
declareCookies: (cbid, cookies, o) => request("PUT", `/sites/${enc(cbid)}/cookies${qs({ dryRun: o?.dryRun ? "1" : void 0 })}`, { cookies, ...o?.replace ? { replace: true } : {} }),
|
|
753
753
|
planCookies: (cbid, input) => request("POST", `/sites/${enc(cbid)}/cookies/plan`, input),
|
|
754
|
+
applyCookies: (cbid, input) => request("POST", `/sites/${enc(cbid)}/cookies/apply`, input),
|
|
754
755
|
snippet: (cbid, opts2) => get(`/sites/${enc(cbid)}/snippet${qs({ blockingmode: opts2?.blockingMode, culture: opts2?.culture })}`),
|
|
755
756
|
previewToken: (cbid, o) => request("POST", `/sites/${enc(cbid)}/preview-token`, o ?? {}),
|
|
756
757
|
verify: (cbid, method) => request("POST", `/sites/${enc(cbid)}/verify`, { method }),
|