@duckduckgo/autoconsent 14.0.0 → 14.1.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 (52) 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/privacy-config-pr.yml +2 -10
  4. package/.github/workflows/release.yml +2 -2
  5. package/.github/workflows/update-filterlist.yml +2 -2
  6. package/CHANGELOG.md +41 -0
  7. package/api.md +1 -0
  8. package/dist/addon-firefox/background.bundle.js +5 -1
  9. package/dist/addon-firefox/content.bundle.js +504 -346
  10. package/dist/addon-firefox/manifest.json +1 -1
  11. package/dist/addon-firefox/rules.json +1 -1
  12. package/dist/addon-mv3/background.bundle.js +5 -1
  13. package/dist/addon-mv3/content.bundle.js +504 -346
  14. package/dist/addon-mv3/manifest.json +1 -1
  15. package/dist/addon-mv3/popup.bundle.js +19 -1
  16. package/dist/addon-mv3/popup.html +14 -0
  17. package/dist/addon-mv3/rules.json +1 -1
  18. package/dist/autoconsent.cjs.js +347 -218
  19. package/dist/autoconsent.esm.js +348 -218
  20. package/dist/autoconsent.extra.cjs.js +513 -346
  21. package/dist/autoconsent.extra.esm.js +514 -346
  22. package/dist/autoconsent.playwright.js +514 -347
  23. package/lib/cmps/admiral.ts +6 -6
  24. package/lib/cmps/base.ts +43 -8
  25. package/lib/cmps/consentmanager.ts +8 -7
  26. package/lib/cmps/cookiebot.ts +4 -4
  27. package/lib/cmps/evidon.ts +2 -2
  28. package/lib/cmps/klaro.ts +8 -8
  29. package/lib/cmps/onetrust.ts +6 -6
  30. package/lib/cmps/sourcepoint-frame.ts +12 -12
  31. package/lib/cmps/tiktok.ts +3 -3
  32. package/lib/cmps/trustarc-frame.ts +11 -11
  33. package/lib/cmps/trustarc-top.ts +2 -6
  34. package/lib/dom-actions.ts +6 -6
  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/cookiehub.json +61 -0
  44. package/rules/autoconsent/termsfeed.json +24 -1
  45. package/rules/compact-rules.json +1 -1
  46. package/rules/filterlist.txt +191 -177
  47. package/rules/rules.json +1 -1
  48. package/scripts/bundle-config-rules.mjs +1 -4
  49. package/tests/cookiehub.spec.ts +8 -0
  50. package/tests/termsfeed.spec.ts +5 -1
  51. package/tests-wtr/dom-actions/dom-actions.click.ts +14 -14
  52. 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
@@ -24,20 +24,15 @@ jobs:
24
24
  with:
25
25
  path: autoconsent/
26
26
  - uses: ./autoconsent/.github/actions/setup-release-scripts
27
-
28
27
  - name: Checkout config
29
28
  uses: actions/checkout@v3
30
29
  with:
31
30
  repository: duckduckgo/privacy-configuration
32
31
  path: privacy-configuration/
33
- token: ${{ secrets.DAX_WEB_AUTOFILL_AUTOMATION }}
34
- - uses: actions/setup-node@v3
35
- with:
36
- node-version: current
32
+ token: ${{ secrets.PRIVACY_CONFIG_PAT }}
37
33
  - name: Build and compact rules
38
34
  run: |
39
35
  cd autoconsent
40
- npm ci
41
36
  npm run build-rules
42
37
  npm run bundle-config-rules ../privacy-configuration
43
38
  - name: Prepare and update privacy-config
@@ -45,19 +40,16 @@ jobs:
45
40
  cd privacy-configuration
46
41
  npm ci
47
42
  npm run lint-fix
48
- npm install @duckduckgo/autoconsent@${{ env.TAG }}
49
43
  - name: Create config PR
50
44
  uses: peter-evans/create-pull-request@v7
51
45
  id: create-pr
52
46
  with:
53
47
  path: privacy-configuration/
54
48
  add-paths: |
55
- package.json
56
- package-lock.json
57
49
  overrides/*
58
50
  features/autoconsent.json
59
51
  commit-message: Update autoconsent to ${{ env.TAG }}
60
52
  branch: update-autoconsent
61
53
  title: Update autoconsent to ${{ env.TAG }}
62
54
  body: ''
63
- token: ${{ secrets.DAX_WEB_AUTOFILL_AUTOMATION }}
55
+ token: ${{ secrets.PRIVACY_CONFIG_PAT }}
@@ -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,44 @@
1
+ # v14.1.0 (Fri Jun 06 2025)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - 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]))
6
+ - Visual test mode [#756](https://github.com/duckduckgo/autoconsent/pull/756) ([@muodov](https://github.com/muodov))
7
+ - 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))
8
+ - 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))
9
+ - 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))
10
+ - Add cookiehub CMP [#778](https://github.com/duckduckgo/autoconsent/pull/778) ([@noisysocks](https://github.com/noisysocks))
11
+ - 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]))
12
+
13
+ #### 🐛 Bug Fix
14
+
15
+ - 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]))
16
+ - Bump node in CI to LTS. [#761](https://github.com/duckduckgo/autoconsent/pull/761) ([@sammacbeth](https://github.com/sammacbeth))
17
+
18
+ #### Authors: 5
19
+
20
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
21
+ - [@github-actions[bot]](https://github.com/github-actions[bot])
22
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
23
+ - Robert Anderson ([@noisysocks](https://github.com/noisysocks))
24
+ - Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
25
+
26
+ ---
27
+
28
+ # v14.0.1 (Mon Jun 02 2025)
29
+
30
+ #### 🐛 Bug Fix
31
+
32
+ - Add support for non-'reject-all' version of the termsfeed popup. [#750](https://github.com/duckduckgo/autoconsent/pull/750) ([@sammacbeth](https://github.com/sammacbeth) [@muodov](https://github.com/muodov))
33
+ - CI: Fix release PR to privacy config repo [#751](https://github.com/duckduckgo/autoconsent/pull/751) ([@sammacbeth](https://github.com/sammacbeth))
34
+
35
+ #### Authors: 2
36
+
37
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
38
+ - Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
39
+
40
+ ---
41
+
1
42
  # v13.0.0 (Tue May 20 2025)
2
43
 
3
44
  #### 💥 Breaking Change
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,