@duckduckgo/autoconsent 14.66.0 → 14.67.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 CHANGED
@@ -1,3 +1,22 @@
1
+ # v14.67.0 (Tue Mar 31 2026)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - Merge ensighten rules [#1124](https://github.com/duckduckgo/autoconsent/pull/1124) ([@muodov](https://github.com/muodov))
6
+
7
+ #### 🐛 Bug Fix
8
+
9
+ - Fix optIn in test extension and Playwright runner by using full rules [#1219](https://github.com/duckduckgo/autoconsent/pull/1219) ([@cursoragent](https://github.com/cursoragent) [@muodov](https://github.com/muodov))
10
+ - Add CLAUDE.md as symlink to AGENTS.md [#1220](https://github.com/duckduckgo/autoconsent/pull/1220) ([@cursoragent](https://github.com/cursoragent) [@noisysocks](https://github.com/noisysocks))
11
+
12
+ #### Authors: 3
13
+
14
+ - Cursor Agent ([@cursoragent](https://github.com/cursoragent))
15
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
16
+ - Robert Anderson ([@noisysocks](https://github.com/noisysocks))
17
+
18
+ ---
19
+
1
20
  # v14.66.0 (Sat Mar 28 2026)
2
21
 
3
22
  #### 🚀 Enhancement
@@ -884,6 +884,11 @@
884
884
  storageSet({
885
885
  rules: await res.json()
886
886
  });
887
+ const fullRes = await fetch("./rules.json");
888
+ const fullRules = await fullRes.json();
889
+ storageSet({
890
+ fullRules: fullRules.autoconsent
891
+ });
887
892
  }
888
893
  async function evalInTab(tabId, frameId, code, snippetId) {
889
894
  return chrome.scripting.executeScript({
@@ -929,12 +934,21 @@
929
934
  if (frameId === 0) {
930
935
  await showOptOutStatus(tabId, "idle");
931
936
  }
932
- const rules = {
933
- autoconsent: [],
934
- consentomatic,
935
- compact: filterCompactRules(await storageGet("rules"), { url: senderUrl, mainFrame: frameId === 0 })
936
- };
937
- console.log("filtered rules:", rules.compact, JSON.stringify(rules.compact).length);
937
+ let rules;
938
+ if (autoconsentConfig.autoAction === "optIn") {
939
+ const fullRules = await storageGet("fullRules") || [];
940
+ rules = {
941
+ autoconsent: fullRules,
942
+ consentomatic
943
+ };
944
+ } else {
945
+ rules = {
946
+ autoconsent: [],
947
+ consentomatic,
948
+ compact: filterCompactRules(await storageGet("rules"), { url: senderUrl, mainFrame: frameId === 0 })
949
+ };
950
+ }
951
+ console.log("filtered rules:", rules.compact || rules.autoconsent?.length, JSON.stringify(rules).length);
938
952
  chrome.tabs.sendMessage(
939
953
  tabId,
940
954
  {