@duckduckgo/autoconsent 14.0.1 → 14.2.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 (53) hide show
  1. package/.github/actions/setup-release-scripts/action.yml +1 -1
  2. package/.github/workflows/checks.yml +4 -4
  3. package/.github/workflows/release.yml +2 -2
  4. package/.github/workflows/update-filterlist.yml +2 -2
  5. package/CHANGELOG.md +43 -0
  6. package/api.md +1 -0
  7. package/dist/addon-firefox/background.bundle.js +11 -2
  8. package/dist/addon-firefox/content.bundle.js +510 -347
  9. package/dist/addon-firefox/manifest.json +1 -1
  10. package/dist/addon-firefox/rules.json +1 -1
  11. package/dist/addon-mv3/background.bundle.js +11 -2
  12. package/dist/addon-mv3/content.bundle.js +510 -347
  13. package/dist/addon-mv3/manifest.json +1 -1
  14. package/dist/addon-mv3/popup.bundle.js +19 -1
  15. package/dist/addon-mv3/popup.html +14 -0
  16. package/dist/addon-mv3/rules.json +1 -1
  17. package/dist/autoconsent.cjs.js +353 -219
  18. package/dist/autoconsent.esm.js +354 -219
  19. package/dist/autoconsent.extra.cjs.js +519 -347
  20. package/dist/autoconsent.extra.esm.js +520 -347
  21. package/dist/autoconsent.playwright.js +520 -348
  22. package/lib/cmps/admiral.ts +6 -6
  23. package/lib/cmps/base.ts +43 -8
  24. package/lib/cmps/consentmanager.ts +8 -7
  25. package/lib/cmps/cookiebot.ts +4 -4
  26. package/lib/cmps/evidon.ts +2 -2
  27. package/lib/cmps/klaro.ts +8 -8
  28. package/lib/cmps/onetrust.ts +6 -6
  29. package/lib/cmps/sourcepoint-frame.ts +12 -12
  30. package/lib/cmps/tiktok.ts +3 -3
  31. package/lib/cmps/trustarc-frame.ts +11 -11
  32. package/lib/cmps/trustarc-top.ts +2 -6
  33. package/lib/dom-actions.ts +6 -6
  34. package/lib/eval-snippets.ts +6 -1
  35. package/lib/filterlist-engine.ts +2 -2
  36. package/lib/messages.ts +6 -0
  37. package/lib/types.ts +3 -2
  38. package/lib/utils.ts +49 -0
  39. package/lib/web.ts +50 -37
  40. package/package.json +2 -2
  41. package/playwright/runner.ts +1 -1
  42. package/readme.md +1 -1
  43. package/rules/autoconsent/cookie-law-info.json +16 -5
  44. package/rules/autoconsent/cookiehub.json +61 -0
  45. package/rules/autoconsent/eu-cookie-compliance.json +13 -12
  46. package/rules/compact-rules.json +1 -1
  47. package/rules/filterlist.txt +221 -202
  48. package/rules/rules.json +1 -1
  49. package/tests/{cookielawinfo.spec.ts → cookie-law-info.spec.ts} +4 -1
  50. package/tests/cookiehub.spec.ts +8 -0
  51. package/tests/eu-cookie-compliance-banner.spec.ts +1 -1
  52. package/tests-wtr/dom-actions/dom-actions.click.ts +14 -14
  53. package/tests-wtr/utils/highlight.test.ts +166 -0
@@ -5,7 +5,7 @@ runs:
5
5
  steps:
6
6
  - uses: actions/setup-node@v3
7
7
  with:
8
- node-version: 18.x
8
+ node-version: lts/*
9
9
  cache: 'npm'
10
10
  cache-dependency-path: 'autoconsent/package-lock.json'
11
11
  - run: |
@@ -8,10 +8,10 @@ jobs:
8
8
  steps:
9
9
  - uses: actions/checkout@v3
10
10
 
11
- - name: Use Node.js 18.x
11
+ - name: Use Node.js
12
12
  uses: actions/setup-node@v3
13
13
  with:
14
- node-version: 18.x
14
+ node-version: lts/*
15
15
  cache: 'npm'
16
16
 
17
17
  - run: npm ci
@@ -22,10 +22,10 @@ jobs:
22
22
  runs-on: ubuntu-latest
23
23
  steps:
24
24
  - uses: actions/checkout@v3
25
- - name: Use Node.js 18.x
25
+ - name: Use Node.js
26
26
  uses: actions/setup-node@v3
27
27
  with:
28
- node-version: 18.x
28
+ node-version: lts/*
29
29
  cache: 'npm'
30
30
  - run: npm ci
31
31
  - run: npm run test:lib
@@ -17,10 +17,10 @@ jobs:
17
17
  - name: Prepare repository
18
18
  run: git fetch --unshallow --tags
19
19
 
20
- - name: Use Node.js 18.x
20
+ - name: Use Node.js
21
21
  uses: actions/setup-node@v3
22
22
  with:
23
- node-version: 18.x
23
+ node-version: lts/*
24
24
 
25
25
  - name: Install dependencies
26
26
  run: npm ci
@@ -12,10 +12,10 @@ jobs:
12
12
  steps:
13
13
  - uses: actions/checkout@v4
14
14
 
15
- - name: Use Node.js 18.x
15
+ - name: Use Node.js
16
16
  uses: actions/setup-node@v3
17
17
  with:
18
- node-version: 18.x
18
+ node-version: lts/*
19
19
 
20
20
  - name: Install dependencies
21
21
  run: npm ci
package/CHANGELOG.md CHANGED
@@ -1,3 +1,46 @@
1
+ # v14.2.0 (Wed Jun 18 2025)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - Update EasyList Cookie to 83f2073ea4b9c66c3c6b1b9034f2164034b1a515 [#782](https://github.com/duckduckgo/autoconsent/pull/782) ([@sammacbeth](https://github.com/sammacbeth) [@github-actions[bot]](https://github.com/github-actions[bot]))
6
+ - Remove 'hide' step from eu-cookie-compliance-banner [#784](https://github.com/duckduckgo/autoconsent/pull/784) ([@noisysocks](https://github.com/noisysocks))
7
+ - Update cookie-law-info rule to hide .cli-popup-overlay [#785](https://github.com/duckduckgo/autoconsent/pull/785) ([@noisysocks](https://github.com/noisysocks))
8
+
9
+ #### Authors: 3
10
+
11
+ - [@github-actions[bot]](https://github.com/github-actions[bot])
12
+ - Robert Anderson ([@noisysocks](https://github.com/noisysocks))
13
+ - Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
14
+
15
+ ---
16
+
17
+ # v14.1.0 (Fri Jun 06 2025)
18
+
19
+ #### 🚀 Enhancement
20
+
21
+ - Update EasyList Cookie to 9fba285e18d0dc14f2ee64142b56e76a59b58649 [#777](https://github.com/duckduckgo/autoconsent/pull/777) ([@sammacbeth](https://github.com/sammacbeth) [@github-actions[bot]](https://github.com/github-actions[bot]))
22
+ - Visual test mode [#756](https://github.com/duckduckgo/autoconsent/pull/756) ([@muodov](https://github.com/muodov))
23
+ - Bump @ghostery/adblocker-content from 2.5.2 to 2.6.1 [#754](https://github.com/duckduckgo/autoconsent/pull/754) ([@dependabot[bot]](https://github.com/dependabot[bot]) [@muodov](https://github.com/muodov))
24
+ - Bump @ghostery/adblocker from 2.5.2 to 2.6.1 [#753](https://github.com/duckduckgo/autoconsent/pull/753) ([@dependabot[bot]](https://github.com/dependabot[bot]) [@muodov](https://github.com/muodov))
25
+ - Bump the dev-dependencies group across 1 directory with 7 updates [#763](https://github.com/duckduckgo/autoconsent/pull/763) ([@dependabot[bot]](https://github.com/dependabot[bot]) [@muodov](https://github.com/muodov))
26
+ - Add cookiehub CMP [#778](https://github.com/duckduckgo/autoconsent/pull/778) ([@noisysocks](https://github.com/noisysocks))
27
+ - Update EasyList Cookie to 0b4c698c6cf070415d7dcda1b8eabe9d6cb5fa99 [#752](https://github.com/duckduckgo/autoconsent/pull/752) ([@sammacbeth](https://github.com/sammacbeth) [@github-actions[bot]](https://github.com/github-actions[bot]))
28
+
29
+ #### 🐛 Bug Fix
30
+
31
+ - Bump tldts-experimental from 7.0.7 to 7.0.8 [#762](https://github.com/duckduckgo/autoconsent/pull/762) ([@dependabot[bot]](https://github.com/dependabot[bot]))
32
+ - Bump node in CI to LTS. [#761](https://github.com/duckduckgo/autoconsent/pull/761) ([@sammacbeth](https://github.com/sammacbeth))
33
+
34
+ #### Authors: 5
35
+
36
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
37
+ - [@github-actions[bot]](https://github.com/github-actions[bot])
38
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
39
+ - Robert Anderson ([@noisysocks](https://github.com/noisysocks))
40
+ - Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
41
+
42
+ ---
43
+
1
44
  # v14.0.1 (Mon Jun 02 2025)
2
45
 
3
46
  #### 🐛 Bug Fix
package/api.md CHANGED
@@ -16,6 +16,7 @@ const consent = new AutoConsent( // make sure not to leak anything to the page g
16
16
  detectRetries: 20,
17
17
  isMainWorld: false,
18
18
  prehideTimeout: 2000,
19
+ visualTest: false,
19
20
  logs: {
20
21
  lifecycle: false,
21
22
  rulesteps: false,