@duckduckgo/autoconsent 14.69.0 โ†’ 14.71.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 +42 -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 +82 -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/didomi.json +22 -0
  27. package/rules/autoconsent/gallup.json +9 -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/didomi.spec.ts +5 -4
  40. package/tests/gallup.spec.ts +6 -0
  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,45 @@
1
+ # v14.71.0 (Tue Apr 14 2026)
2
+
3
+ #### ๐Ÿš€ Enhancement
4
+
5
+ - 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))
6
+ - 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))
7
+
8
+ #### ๐Ÿ› Bug Fix
9
+
10
+ - 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]))
11
+
12
+ #### ๐Ÿ“ Documentation
13
+
14
+ - docs: add puppeteer tutorial [#1152](https://github.com/duckduckgo/autoconsent/pull/1152) ([@Kikobeats](https://github.com/Kikobeats) [@muodov](https://github.com/muodov))
15
+
16
+ #### ๐Ÿงช Tests
17
+
18
+ - 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))
19
+
20
+ #### Authors: 5
21
+
22
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
23
+ - Cursor Agent ([@cursoragent](https://github.com/cursoragent))
24
+ - Jose Francisco 'Kiko' Verdรบ Gambรญn ([@Kikobeats](https://github.com/Kikobeats))
25
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
26
+ - Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
27
+
28
+ ---
29
+
30
+ # v14.70.0 (Sat Apr 11 2026)
31
+
32
+ #### ๐Ÿš€ Enhancement
33
+
34
+ - Add autoconsent rule for Gallup cookie banner [#1251](https://github.com/duckduckgo/autoconsent/pull/1251) ([@cursoragent](https://github.com/cursoragent) [@muodov](https://github.com/muodov))
35
+
36
+ #### Authors: 2
37
+
38
+ - Cursor Agent ([@cursoragent](https://github.com/cursoragent))
39
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
40
+
41
+ ---
42
+
1
43
  # v14.69.0 (Thu Apr 09 2026)
2
44
 
3
45
  #### ๐Ÿš€ 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 {