@duckduckgo/autoconsent 16.1.0 → 16.3.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 (38) hide show
  1. package/.agents/skills/proxy-testing/scripts/regional-proxy.mjs +4 -1
  2. package/.github/PULL_REQUEST_TEMPLATE.md +2 -2
  3. package/.github/dependabot.yml +1 -1
  4. package/.github/labeler.yml +6 -6
  5. package/CHANGELOG.md +36 -0
  6. package/dist/addon-firefox/compact-rules.json +1 -1
  7. package/dist/addon-firefox/content.bundle.js +516 -10
  8. package/dist/addon-firefox/manifest.json +1 -1
  9. package/dist/addon-firefox/rule-index.json +1 -1
  10. package/dist/addon-firefox/rules.json +1 -1
  11. package/dist/addon-mv3/compact-rules.json +1 -1
  12. package/dist/addon-mv3/content.bundle.js +516 -10
  13. package/dist/addon-mv3/manifest.json +1 -1
  14. package/dist/addon-mv3/rule-index.json +1 -1
  15. package/dist/addon-mv3/rules.json +1 -1
  16. package/dist/autoconsent.cjs.js +516 -10
  17. package/dist/autoconsent.esm.js +516 -10
  18. package/dist/autoconsent.playwright.js +516 -10
  19. package/dist/autoconsent.standalone.js +518 -12
  20. package/docs/puppeteer.md +1 -1
  21. package/docs/release-notes.md +12 -43
  22. package/lib/heuristic-patterns.ts +553 -1
  23. package/package.json +15 -15
  24. package/rules/autoconsent/nhnieuws.json +5 -8
  25. package/rules/compact-rules.json +1 -1
  26. package/rules/rule-index.json +1 -1
  27. package/rules/rules.json +1 -1
  28. package/scripts/check-pr-release-labels.ts +24 -24
  29. package/standalone/content.ts +1 -1
  30. package/tests-wtr/lifecycle/find-cmp.ts +2 -2
  31. package/tests-wtr/web/do-opt-in.test.ts +1 -1
  32. package/tests-wtr/web/do-opt-out.test.ts +1 -1
  33. package/tests-wtr/web/do-self-test.test.ts +1 -1
  34. package/tests-wtr/web/filter-cmps.test.ts +1 -1
  35. package/tests-wtr/web/receive-message-callback.test.ts +1 -1
  36. package/tests-wtr/web/update-state.test.ts +1 -1
  37. package/rules/autoconsent/theverge.json +0 -36
  38. package/tests/theverge.spec.ts +0 -3
@@ -55,6 +55,8 @@
55
55
  * @property {(url: string, region: string) => TestResult} collectResult
56
56
  */
57
57
 
58
+ /** @typedef {import('../../../../lib/types').Config} Config */
59
+
58
60
  /**
59
61
  * Primitives the message handler uses to talk to a specific frame's content script.
60
62
  * `frameRef` is the isolated world's execution-context uniqueId the message arrived from;
@@ -140,6 +142,7 @@ export async function injectAutoconsent(page, options = {}) {
140
142
  const action = 'action' in options ? options.action : 'optOut';
141
143
  /** @type {any[]} */
142
144
  const received = [];
145
+ /** @type {Partial<Config>} */
143
146
  const config = {
144
147
  enabled: true,
145
148
  autoAction: action,
@@ -149,7 +152,7 @@ export async function injectAutoconsent(page, options = {}) {
149
152
  enableCosmeticRules: true,
150
153
  enableGeneratedRules: true,
151
154
  enableHeuristicDetection: true,
152
- enableHeuristicAction: true,
155
+ heuristicMode: 'tier2',
153
156
  // The engine runs in the isolated world; eval snippets are forwarded to the main world.
154
157
  isMainWorld: false,
155
158
  logs: { lifecycle: true, rulesteps: true, detectionsteps: false, evals: false, errors: true },
@@ -5,8 +5,8 @@ Task/Issue URL:
5
5
  <!--
6
6
  Don't forget to label the PR.
7
7
 
8
- Impact: choose one of `major`, `minor`, or `patch`.
9
- Category: choose one of `rules`, `bug`, `enhancement`, `performance`, `dependencies`, `ci`, `ai`, `documentation`, `tests`, `internal`, or `other`.
8
+ Version labels use the `version:` prefix, for example `version: patch`.
9
+ Category labels use the `category:` prefix, for example `category: rules`.
10
10
  Details: https://github.com/duckduckgo/autoconsent/blob/main/docs/release-notes.md
11
11
  -->
12
12
 
@@ -5,7 +5,7 @@ updates:
5
5
  schedule:
6
6
  interval: 'weekly'
7
7
  labels:
8
- - 'dependencies'
8
+ - 'category: dependencies'
9
9
  groups:
10
10
  dev-dependencies:
11
11
  dependency-type: 'development'
@@ -1,35 +1,35 @@
1
- ai:
1
+ 'category: ai':
2
2
  - changed-files:
3
3
  - any-glob-to-any-file:
4
4
  - '.agents/**'
5
5
  - 'AGENTS.md'
6
6
  - 'CLAUDE.md'
7
7
 
8
- ci:
8
+ 'category: ci':
9
9
  - changed-files:
10
10
  - any-glob-to-any-file:
11
11
  - '.github/**'
12
12
  - 'ci/**'
13
13
  - 'scripts/**'
14
14
 
15
- dependencies:
15
+ 'category: dependencies':
16
16
  - changed-files:
17
17
  - any-glob-to-any-file:
18
18
  - 'package.json'
19
19
  - 'package-lock.json'
20
20
 
21
- documentation:
21
+ 'category: documentation':
22
22
  - changed-files:
23
23
  - any-glob-to-any-file:
24
24
  - 'docs/**'
25
25
 
26
- rules:
26
+ 'category: rules':
27
27
  - changed-files:
28
28
  - any-glob-to-any-file:
29
29
  - 'rules/**'
30
30
  - 'tests/**/*.spec.ts'
31
31
 
32
- tests:
32
+ 'category: tests':
33
33
  - changed-files:
34
34
  - any-glob-to-any-file:
35
35
  - 'playwright/**'
package/CHANGELOG.md CHANGED
@@ -1,3 +1,39 @@
1
+ # v16.3.0 (Wed Jul 01 2026)
2
+
3
+ #### Rules
4
+
5
+ - Remove theverge rule [#1416](https://github.com/duckduckgo/autoconsent/pull/1416) ([@cursoragent](https://github.com/cursoragent) [@muodov](https://github.com/muodov))
6
+
7
+ #### CI / Release Automation
8
+
9
+ - Prefix release note labels [#1415](https://github.com/duckduckgo/autoconsent/pull/1415) ([@cursoragent](https://github.com/cursoragent) [@muodov](https://github.com/muodov))
10
+
11
+ #### AI / Agent Workflow
12
+
13
+ - Clean up some outdated config parameters [#1414](https://github.com/duckduckgo/autoconsent/pull/1414) ([@muodov](https://github.com/muodov))
14
+
15
+ #### Authors: 2
16
+
17
+ - Cursor Agent ([@cursoragent](https://github.com/cursoragent))
18
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
19
+
20
+ ---
21
+
22
+ # v16.2.0 (Tue Jun 30 2026)
23
+
24
+ #### Rules
25
+
26
+ - Update nhnieuws rule for redesigned consent popup [#1412](https://github.com/duckduckgo/autoconsent/pull/1412) ([@cursoragent](https://github.com/cursoragent) [@muodov](https://github.com/muodov))
27
+ - Add heuristic patterns for Spanish and Polish [#1404](https://github.com/duckduckgo/autoconsent/pull/1404) ([@GuiltyDolphin](https://github.com/GuiltyDolphin) [@muodov](https://github.com/muodov))
28
+
29
+ #### Authors: 3
30
+
31
+ - Ben Moon ([@GuiltyDolphin](https://github.com/GuiltyDolphin))
32
+ - Cursor Agent ([@cursoragent](https://github.com/cursoragent))
33
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
34
+
35
+ ---
36
+
1
37
  # v16.1.0 (Fri Jun 26 2026)
2
38
 
3
39
  #### CI / Release Automation