@duckduckgo/autoconsent 14.96.0 → 15.0.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/addon-firefox/background.bundle.js +10 -1
  3. package/dist/addon-firefox/compact-rules.json +1 -1
  4. package/dist/addon-firefox/content.bundle.js +142 -33
  5. package/dist/addon-firefox/manifest.json +1 -1
  6. package/dist/addon-firefox/popup.bundle.js +10 -1
  7. package/dist/addon-firefox/rules.json +1 -1
  8. package/dist/addon-mv3/background.bundle.js +10 -1
  9. package/dist/addon-mv3/compact-rules.json +1 -1
  10. package/dist/addon-mv3/content.bundle.js +142 -33
  11. package/dist/addon-mv3/manifest.json +1 -1
  12. package/dist/addon-mv3/popup.bundle.js +10 -1
  13. package/dist/addon-mv3/rules.json +1 -1
  14. package/dist/autoconsent.cjs.js +142 -33
  15. package/dist/autoconsent.esm.js +142 -33
  16. package/dist/autoconsent.extra.cjs.js +142 -33
  17. package/dist/autoconsent.extra.esm.js +142 -33
  18. package/dist/autoconsent.playwright.js +142 -33
  19. package/dist/types/cmps/base.d.ts +4 -2
  20. package/dist/types/heuristic-patterns.d.ts +3 -0
  21. package/dist/types/heuristics.d.ts +4 -7
  22. package/dist/types/types.d.ts +18 -2
  23. package/lib/cmps/base.ts +20 -7
  24. package/lib/heuristic-patterns.ts +68 -1
  25. package/lib/heuristics.ts +76 -27
  26. package/lib/types.ts +20 -2
  27. package/lib/utils.ts +2 -1
  28. package/lib/web.ts +3 -1
  29. package/package.json +1 -1
  30. package/rules/autoconsent/bbc.com.json +1 -1
  31. package/rules/autoconsent/twitch.json +1 -1
  32. package/rules/compact-rules.json +1 -1
  33. package/rules/rules.json +1 -1
  34. package/tests/bbc.com.spec.ts +1 -1
  35. package/tests-wtr/heuristics/get-actionable-popups.html +16 -0
  36. package/tests-wtr/heuristics/get-actionable-popups.ts +85 -6
  37. package/tests-wtr/heuristics/heuristic-cmp.html +69 -0
  38. package/tests-wtr/heuristics/heuristic-cmp.ts +178 -0
  39. package/tests-wtr/heuristics/heuristics-utils.test.ts +96 -28
  40. package/tests-wtr/lifecycle/find-cmp.html +14 -0
  41. package/tests-wtr/lifecycle/find-cmp.ts +44 -2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,34 @@
1
+ # v15.0.0 (Sat Jun 20 2026)
2
+
3
+ #### 💥 Breaking Change
4
+
5
+ - Handle non-reject buttons in heuristic mode [#1390](https://github.com/duckduckgo/autoconsent/pull/1390) ([@sammacbeth](https://github.com/sammacbeth))
6
+
7
+ #### 🚀 Enhancement
8
+
9
+ - Extend twitch.tv rule to cover m.twitch.tv subdomain [#1402](https://github.com/duckduckgo/autoconsent/pull/1402) ([@cursoragent](https://github.com/cursoragent) [@muodov](https://github.com/muodov))
10
+
11
+ #### Authors: 3
12
+
13
+ - Cursor Agent ([@cursoragent](https://github.com/cursoragent))
14
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
15
+ - Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
16
+
17
+ ---
18
+
19
+ # v14.97.0 (Fri Jun 19 2026)
20
+
21
+ #### 🚀 Enhancement
22
+
23
+ - Extend bbc.com rule to cover bbc.co.uk [#1400](https://github.com/duckduckgo/autoconsent/pull/1400) ([@cursoragent](https://github.com/cursoragent) [@muodov](https://github.com/muodov))
24
+
25
+ #### Authors: 2
26
+
27
+ - Cursor Agent ([@cursoragent](https://github.com/cursoragent))
28
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
29
+
30
+ ---
31
+
1
32
  # v14.96.0 (Thu Jun 18 2026)
2
33
 
3
34
  #### 🚀 Enhancement
@@ -934,6 +934,14 @@
934
934
  return parseImpl(url, 5, suffixLookup, options, getEmptyResult());
935
935
  }
936
936
 
937
+ // lib/types.ts
938
+ var PopupHandlingModes = {
939
+ None: -1,
940
+ Reject: 0,
941
+ Tier1: 1,
942
+ Tier2: 2
943
+ };
944
+
937
945
  // lib/utils.ts
938
946
  function copyObject(data) {
939
947
  if (globalThis.structuredClone) {
@@ -968,7 +976,8 @@
968
976
  waits: false
969
977
  },
970
978
  performanceLoggingEnabled: false,
971
- heuristicPopupSearchTimeout: 100
979
+ heuristicPopupSearchTimeout: 100,
980
+ heuristicMode: PopupHandlingModes.Reject
972
981
  };
973
982
  const updatedConfig = copyObject(defaultConfig);
974
983
  for (const key of Object.keys(defaultConfig)) {