@duckduckgo/autoconsent 18.5.0 → 18.7.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 (42) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/ci/asana-create-release-task.js +5 -1
  3. package/dist/addon-firefox/background.bundle.js +1 -0
  4. package/dist/addon-firefox/compact-rules.json +1 -1
  5. package/dist/addon-firefox/content.bundle.js +9 -6
  6. package/dist/addon-firefox/manifest.json +1 -1
  7. package/dist/addon-firefox/rule-index.json +1 -1
  8. package/dist/addon-firefox/rules.json +1 -1
  9. package/dist/addon-mv3/background.bundle.js +1 -0
  10. package/dist/addon-mv3/compact-rules.json +1 -1
  11. package/dist/addon-mv3/content.bundle.js +9 -6
  12. package/dist/addon-mv3/manifest.json +1 -1
  13. package/dist/addon-mv3/rule-index.json +1 -1
  14. package/dist/addon-mv3/rules.json +1 -1
  15. package/dist/autoconsent.cjs.js +9 -6
  16. package/dist/autoconsent.esm.js +9 -6
  17. package/dist/autoconsent.playwright.js +9 -6
  18. package/dist/autoconsent.standalone.js +10 -7
  19. package/dist/heuristics.cjs.js +8 -6
  20. package/dist/heuristics.mjs +8 -6
  21. package/dist/types/eval-snippets.d.ts +1 -0
  22. package/lib/eval-snippets.ts +1 -0
  23. package/lib/heuristic-literals.ts +1 -0
  24. package/lib/heuristic-patterns.ts +7 -5
  25. package/package.json +1 -1
  26. package/rules/autoconsent/anthropic.json +4 -4
  27. package/rules/autoconsent/burpee-com.json +5 -1
  28. package/rules/autoconsent/jobmount.json +26 -0
  29. package/rules/autoconsent/mediamarkt-de.json +12 -2
  30. package/rules/autoconsent/posthog.com.json +12 -0
  31. package/rules/autoconsent/sirdata.json +1 -1
  32. package/rules/autoconsent/walmart-ca.json +13 -2
  33. package/rules/autoconsent/wbd-legal-terms.json +4 -5
  34. package/rules/compact-rules.json +1 -1
  35. package/rules/rule-index.json +1 -1
  36. package/rules/rules.json +1 -1
  37. package/tests/anthropic.spec.ts +1 -1
  38. package/tests/jobmount.spec.ts +3 -0
  39. package/tests/mediamarkt.spec.ts +1 -1
  40. package/tests/posthog.com.spec.ts +3 -0
  41. package/tests/trustarc.spec.ts +6 -0
  42. package/tests-wtr/heuristics/heuristics-utils.test.ts +11 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,43 @@
1
+ # v18.7.0 (Wed Nov 18 2026)
2
+
3
+ #### Rules
4
+
5
+ - Rule update: Rule fix for Site Breakage: can't add items to shopping cart on royalmail.com [#2646](https://github.com/duckduckgo/autoconsent/pull/2646) ([@daxtheduck](https://github.com/daxtheduck))
6
+ - Rule update: ddg_android (euw) CPM magic report: www.walmart.ca [#2598](https://github.com/duckduckgo/autoconsent/pull/2598) ([@daxtheduck](https://github.com/daxtheduck))
7
+ - Sirdata: opt in with Accept all, not the first choice button [#2643](https://github.com/duckduckgo/autoconsent/pull/2643) ([@sammacbeth](https://github.com/sammacbeth) [@daxtheduck](https://github.com/daxtheduck))
8
+ - Rule update: Cookie popup on mediamarkt.nl [#2657](https://github.com/duckduckgo/autoconsent/pull/2657) ([@daxtheduck](https://github.com/daxtheduck) [@sammacbeth](https://github.com/sammacbeth))
9
+ - Rule update: CPM feedback: bleacherreport.com [#2658](https://github.com/duckduckgo/autoconsent/pull/2658) ([@daxtheduck](https://github.com/daxtheduck) [@sammacbeth](https://github.com/sammacbeth))
10
+ - Rule update: Cookie popup on posthog.com [#2659](https://github.com/duckduckgo/autoconsent/pull/2659) ([@daxtheduck](https://github.com/daxtheduck) [@sammacbeth](https://github.com/sammacbeth))
11
+
12
+ #### CI / Release Automation
13
+
14
+ - Release task: read every page of scheduled tasks [#2739](https://github.com/duckduckgo/autoconsent/pull/2739) ([@muodov](https://github.com/muodov))
15
+
16
+ #### Authors: 3
17
+
18
+ - Dax ([@daxtheduck](https://github.com/daxtheduck))
19
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
20
+ - Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
21
+
22
+ ---
23
+
24
+ # v18.6.0 (Tue Nov 17 2026)
25
+
26
+ #### Rules
27
+
28
+ - Rule update: CPM crawl #1926: aok.de [#2648](https://github.com/duckduckgo/autoconsent/pull/2648) ([@daxtheduck](https://github.com/daxtheduck) [@sammacbeth](https://github.com/sammacbeth))
29
+ - Rule update: CPM crawl #1841: 3hentai.net [#2647](https://github.com/duckduckgo/autoconsent/pull/2647) ([@daxtheduck](https://github.com/daxtheduck))
30
+ - Rule update: CPM crawl #1752: amazon.com [#2644](https://github.com/duckduckgo/autoconsent/pull/2644) ([@daxtheduck](https://github.com/daxtheduck))
31
+ - Rule update: CPM feedback: jobs.military.com [#2645](https://github.com/duckduckgo/autoconsent/pull/2645) ([@daxtheduck](https://github.com/daxtheduck))
32
+ - Rule update: anthropic [#2652](https://github.com/duckduckgo/autoconsent/pull/2652) ([@daxtheduck](https://github.com/daxtheduck))
33
+
34
+ #### Authors: 2
35
+
36
+ - Dax ([@daxtheduck](https://github.com/daxtheduck))
37
+ - Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
38
+
39
+ ---
40
+
1
41
  # v18.5.0 (Sat Nov 14 2026)
2
42
 
3
43
  #### CI / Release Automation
@@ -78,10 +78,14 @@ const waitForJobSuccess = async (job_gid) => {
78
78
  * @returns {Promise<string>}
79
79
  */
80
80
  const processReleaseTasks = async (releaseTaskGid) => {
81
- const { data: tasks } = await asana.tasks.getTasksForSection(scheduledForReleaseSectionGid, {
81
+ // The response is paginated (50 per page by default), so follow every
82
+ // page. Reading only `.data` left the rest for the next release.
83
+ const firstPage = await asana.tasks.getTasksForSection(scheduledForReleaseSectionGid, {
82
84
  opt_fields: 'name,permalink_url,completed',
83
85
  completed_since: 'now', // Fetch only incomplete tasks
86
+ limit: 100,
84
87
  });
88
+ const tasks = await firstPage.fetch();
85
89
 
86
90
  if (!tasks || tasks.length === 0) {
87
91
  return '';
@@ -175,6 +175,7 @@
175
175
  document.cookie.split(";").find((s) => s.trim().startsWith("_pandectes_gdpr")).split("=")[1]
176
176
  )
177
177
  ).status === "deny",
178
+ EVAL_POSTHOG_TEST: () => localStorage.getItem("cookie_consent") === "acknowledged",
178
179
  EVAL_POVR_GOBACK: () => window.history.back() || true,
179
180
  EVAL_PUBTECH_0: () => document.cookie.includes("euconsent-v2") && (document.cookie.match(/.YAAAAAAAAAAA/) || document.cookie.match(/.aAAAAAAAAAAA/) || document.cookie.match(/.YAAACFgAAAAA/)),
180
181
  EVAL_SHOPIFY_TEST: () => document.cookie.includes("gdpr_cookie_consent=0") || document.cookie.includes("_tracking_consent=") && JSON.parse(