@cookiemunch/sdk 0.8.0 → 0.9.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 +5 -0
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +61 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Every published release, newest first. Dates are the day the version was cut.
|
|
4
4
|
|
|
5
|
+
## 0.9.0 (2026-10-30)
|
|
6
|
+
|
|
7
|
+
- Added: `regulatory.upcomingForSite(cbid, { days?, minShare? })`: laws taking effect where a site's visitors are (`GET /v1/sites/{cbid}/regulatory/upcoming`).
|
|
8
|
+
- Changed: a preset manifest's `warnings` name the entry Cookie Munch dropped (`name`), now that one bad entry no longer invalidates the whole manifest.
|
|
9
|
+
|
|
5
10
|
## 0.8.0 (2026-10-30)
|
|
6
11
|
|
|
7
12
|
- Added: `mintFrom` and `externalId` on the DSAR executor connect method: a partner with an `executorKeyUrl` mints the executor key, so `secretKey` is optional. The dry run's `mint` shows the plan.
|
package/dist/index.cjs
CHANGED
|
@@ -465,7 +465,7 @@ async function exchangeOperatorToken(input) {
|
|
|
465
465
|
}
|
|
466
466
|
|
|
467
467
|
// src/index.ts
|
|
468
|
-
var SDK_VERSION = "0.
|
|
468
|
+
var SDK_VERSION = "0.9.0";
|
|
469
469
|
var CookieMunchApiError = class extends Error {
|
|
470
470
|
constructor(status, message, code, body) {
|
|
471
471
|
super(message);
|
|
@@ -777,7 +777,8 @@ function createCookieMunch(opts) {
|
|
|
777
777
|
},
|
|
778
778
|
regulatory: {
|
|
779
779
|
feed: (jurisdictions) => get(`/regulatory/feed${qs({ jurisdictions: jurisdictions?.join(",") })}`),
|
|
780
|
-
upcoming: (days) => get(`/regulatory/upcoming${qs({ days })}`)
|
|
780
|
+
upcoming: (days) => get(`/regulatory/upcoming${qs({ days })}`),
|
|
781
|
+
upcomingForSite: (cbid, opts2) => get(`/sites/${enc(cbid)}/regulatory/upcoming${qs({ days: opts2?.days, minShare: opts2?.minShare })}`)
|
|
781
782
|
},
|
|
782
783
|
ai: {
|
|
783
784
|
getPolicy: () => get("/ai/policy"),
|