@duckduckgo/autoconsent 14.70.0 β†’ 14.72.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 (49) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/Jenkinsfile +8 -22
  3. package/dist/addon-firefox/background.bundle.js +15 -2
  4. package/dist/addon-firefox/compact-rules.json +1 -1
  5. package/dist/addon-firefox/content.bundle.js +13 -0
  6. package/dist/addon-firefox/manifest.json +1 -1
  7. package/dist/addon-firefox/popup.bundle.js +1 -1
  8. package/dist/addon-firefox/rules.json +1 -1
  9. package/dist/addon-mv3/background.bundle.js +15 -2
  10. package/dist/addon-mv3/compact-rules.json +1 -1
  11. package/dist/addon-mv3/content.bundle.js +13 -0
  12. package/dist/addon-mv3/manifest.json +1 -1
  13. package/dist/addon-mv3/popup.bundle.js +1 -1
  14. package/dist/addon-mv3/rules.json +1 -1
  15. package/dist/autoconsent.cjs.js +13 -0
  16. package/dist/autoconsent.esm.js +13 -0
  17. package/dist/autoconsent.extra.cjs.js +14 -1
  18. package/dist/autoconsent.extra.esm.js +14 -1
  19. package/dist/autoconsent.playwright.js +14 -1
  20. package/dist/types/eval-snippets.d.ts +2 -0
  21. package/docs/puppeteer.md +156 -0
  22. package/lib/eval-snippets.ts +13 -0
  23. package/package.json +1 -1
  24. package/readme.md +4 -0
  25. package/rules/autoconsent/consentmo.json +44 -0
  26. package/rules/autoconsent/cookieconsent2.json +3 -1
  27. package/rules/autoconsent/didomi.json +22 -0
  28. package/rules/autoconsent/real-cookie-banner.json +1 -1
  29. package/rules/autoconsent/squarespace-cookie-banner.json +31 -0
  30. package/rules/build.ts +1 -1
  31. package/rules/compact-rules.json +1 -1
  32. package/rules/consentomatic.json +1 -1
  33. package/rules/generated/auto_AU_goodmoodprints.com_9fy.json +11 -11
  34. package/rules/generated/auto_GB_supremecourt.uk_0.json +9 -9
  35. package/rules/generated/auto_US_musicnotes.com_0.json +20 -5
  36. package/rules/rules.json +1 -1
  37. package/scripts/get-tests-to-run.js +79 -0
  38. package/tests/consentmo.spec.ts +15 -0
  39. package/tests/cookieconsent2.spec.ts +1 -1
  40. package/tests/didomi.spec.ts +5 -4
  41. package/tests/squarespace-cookie-banner.spec.ts +9 -0
  42. package/rules/generated/auto_AU_urallawoolroom.com.au_3ng.json +0 -28
  43. package/rules/generated/auto_CH_degussa-goldhandel.ch_mqc.json +0 -40
  44. package/rules/generated/auto_GB_filofax.com_uxo.json +0 -40
  45. package/rules/generated/auto_GB_musicnotes.com_0.json +0 -28
  46. package/tests/generated/auto_AU_urallawoolroom.com.au_3ng.spec.ts +0 -6
  47. package/tests/generated/auto_CH_degussa-goldhandel.ch_mqc.spec.ts +0 -6
  48. package/tests/generated/auto_GB_filofax.com_uxo.spec.ts +0 -2
  49. package/tests/generated/auto_GB_musicnotes.com_0.spec.ts +0 -6
package/CHANGELOG.md CHANGED
@@ -1,3 +1,49 @@
1
+ # v14.72.0 (Fri Apr 17 2026)
2
+
3
+ #### πŸš€ Enhancement
4
+
5
+ - cookieconsent2: add fallback opt-out for sites without reject-all button [#1289](https://github.com/duckduckgo/autoconsent/pull/1289) ([@cursoragent](https://github.com/cursoragent) [@muodov](https://github.com/muodov))
6
+
7
+ #### πŸ“ Documentation
8
+
9
+ - docs: improve Puppeteer integration guide [#1253](https://github.com/duckduckgo/autoconsent/pull/1253) ([@cursoragent](https://github.com/cursoragent) [@muodov](https://github.com/muodov))
10
+
11
+ #### Authors: 2
12
+
13
+ - Cursor Agent ([@cursoragent](https://github.com/cursoragent))
14
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
15
+
16
+ ---
17
+
18
+ # v14.71.0 (Tue Apr 14 2026)
19
+
20
+ #### πŸš€ Enhancement
21
+
22
+ - fix: update rule selectors for goodmoodprints.com, supremecourt.uk, musicnotes.com, degussa-goldhandel.ch; add generic squarespace-cookie-banner and consentmo rules [#1248](https://github.com/duckduckgo/autoconsent/pull/1248) ([@cursoragent](https://github.com/cursoragent) [@muodov](https://github.com/muodov))
23
+ - Replace Didomi consent-o-matic rule with native autoconsent JSON rule [#1247](https://github.com/duckduckgo/autoconsent/pull/1247) ([@cursoragent](https://github.com/cursoragent) [@muodov](https://github.com/muodov))
24
+
25
+ #### πŸ› Bug Fix
26
+
27
+ - Bump tldts-experimental from 7.0.27 to 7.0.28 [#1243](https://github.com/duckduckgo/autoconsent/pull/1243) ([@dependabot[bot]](https://github.com/dependabot[bot]))
28
+
29
+ #### πŸ“ Documentation
30
+
31
+ - docs: add puppeteer tutorial [#1152](https://github.com/duckduckgo/autoconsent/pull/1152) ([@Kikobeats](https://github.com/Kikobeats) [@muodov](https://github.com/muodov))
32
+
33
+ #### πŸ§ͺ Tests
34
+
35
+ - Fix test runner to detect code-based rule changes and generated rules [#1204](https://github.com/duckduckgo/autoconsent/pull/1204) ([@cursoragent](https://github.com/cursoragent) [@sammacbeth](https://github.com/sammacbeth))
36
+
37
+ #### Authors: 5
38
+
39
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
40
+ - Cursor Agent ([@cursoragent](https://github.com/cursoragent))
41
+ - Jose Francisco 'Kiko' VerdΓΊ GambΓ­n ([@Kikobeats](https://github.com/Kikobeats))
42
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
43
+ - Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
44
+
45
+ ---
46
+
1
47
  # v14.70.0 (Sat Apr 11 2026)
2
48
 
3
49
  #### πŸš€ Enhancement
package/Jenkinsfile CHANGED
@@ -32,29 +32,15 @@ def getModifiedFiles() {
32
32
  }
33
33
 
34
34
  def getTestsToRun(modifiedFiles) {
35
- def testsToRun = []
36
-
37
- // Run any modified test files
38
- for (file in modifiedFiles) {
39
- if (file.startsWith("tests/") && file.endsWith(".spec.ts")) {
40
- testsToRun.add(file)
41
- }
42
- }
43
-
44
- // Run the corresponding test file for any modified rule file
45
- for (file in modifiedFiles) {
46
- if (file.startsWith("rules/autoconsent/") && file.endsWith(".json")) {
47
- def fileName = file.substring("rules/autoconsent/".length())
48
- def baseName = fileName.substring(0, fileName.lastIndexOf(".json"))
49
- def testFile = "tests/${baseName}.spec.ts"
50
-
51
- if (fileExists(testFile) && !testsToRun.contains(testFile)) {
52
- testsToRun.add(testFile)
53
- }
54
- }
35
+ def filesArg = modifiedFiles.findAll { it }.join(' ')
36
+ if (!filesArg) {
37
+ return []
55
38
  }
56
-
57
- return testsToRun
39
+ def result = sh(
40
+ script: "node scripts/get-tests-to-run.js ${filesArg}",
41
+ returnStdout: true,
42
+ ).trim()
43
+ return result ? result.split("\n").collect { it.trim() }.findAll { it } : []
58
44
  }
59
45
 
60
46
  pipeline {