@duckduckgo/autoconsent 18.3.0 → 18.5.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 (107) hide show
  1. package/.github/workflows/ddg-release.yml +3 -1
  2. package/CHANGELOG.md +72 -0
  3. package/ci/asana-create-platform-release-tasks.js +9 -2
  4. package/ci/asana-update-tasks.js +17 -3
  5. package/ci/create-pr-template.js +1 -1
  6. package/dist/addon-firefox/compact-rules.json +1 -1
  7. package/dist/addon-firefox/manifest.json +1 -1
  8. package/dist/addon-firefox/rule-index.json +1 -1
  9. package/dist/addon-firefox/rules.json +1 -1
  10. package/dist/addon-mv3/compact-rules.json +1 -1
  11. package/dist/addon-mv3/manifest.json +1 -1
  12. package/dist/addon-mv3/rule-index.json +1 -1
  13. package/dist/addon-mv3/rules.json +1 -1
  14. package/dist/autoconsent.standalone.js +1 -1
  15. package/package.json +1 -1
  16. package/rules/autoconsent/amasty-gdpr-sidebar.json +61 -0
  17. package/rules/autoconsent/arena-pl.json +16 -0
  18. package/rules/autoconsent/bannercookie-dashboard.json +10 -0
  19. package/rules/autoconsent/blastingnews.json +36 -0
  20. package/rules/autoconsent/bn-org-pl.json +37 -0
  21. package/rules/autoconsent/ccconsent-holder.json +56 -0
  22. package/rules/autoconsent/cloudcms-cookie-alert-notice.json +12 -0
  23. package/rules/autoconsent/cloudcms-cookie-alert.json +13 -0
  24. package/rules/autoconsent/cookie-button-basic.json +47 -0
  25. package/rules/autoconsent/cookiesck.json +31 -0
  26. package/rules/autoconsent/didomi.json +5 -0
  27. package/rules/autoconsent/doc24-ch.json +33 -0
  28. package/rules/autoconsent/ernesto.json +30 -0
  29. package/rules/autoconsent/eu-cookie-compliance-legacy.json +15 -0
  30. package/rules/autoconsent/fora-se.json +13 -0
  31. package/rules/autoconsent/fusedeck.json +38 -0
  32. package/rules/autoconsent/gjerrigknark.json +38 -0
  33. package/rules/autoconsent/hemsol.se.json +22 -0
  34. package/rules/autoconsent/historiskatlas.dk.json +35 -0
  35. package/rules/autoconsent/hmi-basen-dk.json +27 -0
  36. package/rules/autoconsent/jobbland.json +17 -0
  37. package/rules/autoconsent/kadokawa-ascii.json +34 -0
  38. package/rules/autoconsent/kglakademi.json +37 -0
  39. package/rules/autoconsent/kredittbanken.json +14 -0
  40. package/rules/autoconsent/matspar-se.json +34 -0
  41. package/rules/autoconsent/mitrejsevejr.dk.json +13 -0
  42. package/rules/autoconsent/morgenlevering.no.json +46 -0
  43. package/rules/autoconsent/multicalcolo.json +37 -0
  44. package/rules/autoconsent/nutri.se.json +40 -0
  45. package/rules/autoconsent/onecall-no.json +44 -0
  46. package/rules/autoconsent/peppes.json +38 -0
  47. package/rules/autoconsent/planteportalen-no.json +32 -0
  48. package/rules/autoconsent/sian-it.json +35 -0
  49. package/rules/autoconsent/skisport.json +22 -0
  50. package/rules/autoconsent/skogforsk.json +9 -0
  51. package/rules/autoconsent/skovborghogh-cookies.json +17 -0
  52. package/rules/autoconsent/sportstiming.json +37 -0
  53. package/rules/autoconsent/squarespace-cookie-banner.json +3 -3
  54. package/rules/autoconsent/vardgivarguiden.json +45 -0
  55. package/rules/autoconsent/wbd-consent-modal.json +54 -0
  56. package/rules/autoconsent/welcome-city-yokohama.json +75 -0
  57. package/rules/autoconsent/wordpress-wordads.json +20 -0
  58. package/rules/compact-rules.json +1 -1
  59. package/rules/rule-index.json +1 -1
  60. package/rules/rules.json +1 -1
  61. package/tests/amasty-gdpr-sidebar.spec.ts +16 -0
  62. package/tests/arena-pl.spec.ts +3 -0
  63. package/tests/bannercookie-dashboard.spec.ts +3 -0
  64. package/tests/blastingnews.spec.ts +3 -0
  65. package/tests/bn-org-pl.spec.ts +3 -0
  66. package/tests/ccconsent-holder.spec.ts +11 -0
  67. package/tests/cloudcms-cookie-alert-notice.spec.ts +10 -0
  68. package/tests/cloudcms-cookie-alert.spec.ts +6 -0
  69. package/tests/cookie-button-basic.spec.ts +9 -0
  70. package/tests/cookiesck.spec.ts +5 -0
  71. package/tests/didomi.spec.ts +9 -0
  72. package/tests/doc24-ch.spec.ts +3 -0
  73. package/tests/ernesto.spec.ts +8 -0
  74. package/tests/eu-cookie-compliance-legacy.spec.ts +8 -0
  75. package/tests/fora-se.spec.ts +3 -0
  76. package/tests/fusedeck.spec.ts +9 -0
  77. package/tests/gjerrigknark.spec.ts +6 -0
  78. package/tests/hemsol.se.spec.ts +3 -0
  79. package/tests/historiskatlas.dk.spec.ts +3 -0
  80. package/tests/hmi-basen-dk.spec.ts +5 -0
  81. package/tests/jobbland.spec.ts +5 -0
  82. package/tests/kadokawa-ascii.spec.ts +5 -0
  83. package/tests/kglakademi.spec.ts +3 -0
  84. package/tests/kredittbanken.spec.ts +3 -0
  85. package/tests/matspar-se.spec.ts +3 -0
  86. package/tests/mitrejsevejr.dk.spec.ts +3 -0
  87. package/tests/morgenlevering.no.spec.ts +3 -0
  88. package/tests/multicalcolo.spec.ts +3 -0
  89. package/tests/nutri.se.spec.ts +3 -0
  90. package/tests/onecall-no.spec.ts +3 -0
  91. package/tests/peppes.spec.ts +5 -0
  92. package/tests/planteportalen-no.spec.ts +3 -0
  93. package/tests/sian-it.spec.ts +3 -0
  94. package/tests/skisport.spec.ts +9 -0
  95. package/tests/skogforsk.spec.ts +3 -0
  96. package/tests/skovborghogh-cookies.spec.ts +9 -0
  97. package/tests/sportstiming.spec.ts +8 -0
  98. package/tests/squarespace-cookie-banner.spec.ts +1 -0
  99. package/tests/vardgivarguiden.spec.ts +3 -0
  100. package/tests/wbd-consent-modal.spec.ts +6 -0
  101. package/tests/welcome-city-yokohama.spec.ts +3 -0
  102. package/tests/wordpress-wordads.spec.ts +9 -0
  103. package/tests-wtr/rules/cmp-test-urls.json +0 -1
  104. package/rules/autoconsent/delta-com.json +0 -12
  105. package/rules/generated/auto_CH_fhgr.ch_9nr.json +0 -40
  106. package/tests/delta.spec.ts +0 -3
  107. package/tests/generated/auto_CH_fhgr.ch_9nr.spec.ts +0 -2
@@ -103,6 +103,7 @@ jobs:
103
103
  ASANA_ACCESS_TOKEN: ${{ secrets.ASANA_ACCESS_TOKEN }}
104
104
  PLATFORM_ANDROID: ${{ inputs.android }}
105
105
  PLATFORM_APPLE: ${{ inputs.apple || inputs.apple_embedded }}
106
+ PLATFORM_APPLE_EMBEDDED: ${{ inputs.apple_embedded }}
106
107
  PLATFORM_WINDOWS: ${{ inputs.windows }}
107
108
  PLATFORM_EXTENSION: ${{ inputs.extension || inputs.apple_embedded }}
108
109
  run: |
@@ -243,8 +244,9 @@ jobs:
243
244
  branch: update-autoconsent
244
245
  title: Update autoconsent to ${{ env.TAG }}
245
246
  body: '${{ env.PR_BODY_APPLE }}'
246
- # the PR will be marked ready when the extension PR is merged
247
+ # the PR will be marked ready and unlabelled when the extension PR is merged
247
248
  draft: ${{ inputs.apple_embedded }}
249
+ labels: ${{ inputs.apple_embedded && 'DO NOT MERGE' || '' }}
248
250
  token: ${{ secrets.DAX_WEB_AUTOFILL_AUTOMATION }}
249
251
 
250
252
  # ------------------------------------------------------------------------------
package/CHANGELOG.md CHANGED
@@ -1,3 +1,75 @@
1
+ # v18.5.0 (Sat Nov 14 2026)
2
+
3
+ #### CI / Release Automation
4
+
5
+ - Mark Apple embedded release PR as DO NOT MERGE and delay its Asana task [#2651](https://github.com/duckduckgo/autoconsent/pull/2651) ([@claude](https://github.com/claude) [@muodov](https://github.com/muodov))
6
+
7
+ #### Authors: 2
8
+
9
+ - Claude ([@claude](https://github.com/claude))
10
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
11
+
12
+ ---
13
+
14
+ # v18.4.0 (Fri Nov 13 2026)
15
+
16
+ #### Rules
17
+
18
+ - Rule update: ccconsent-holder [#2622](https://github.com/duckduckgo/autoconsent/pull/2622) ([@daxtheduck](https://github.com/daxtheduck) [@sammacbeth](https://github.com/sammacbeth))
19
+ - Rule update: skovborghogh-cookies [#2642](https://github.com/duckduckgo/autoconsent/pull/2642) ([@daxtheduck](https://github.com/daxtheduck))
20
+ - Rule update: kredittbanken [#2639](https://github.com/duckduckgo/autoconsent/pull/2639) ([@daxtheduck](https://github.com/daxtheduck))
21
+ - Rule update: historiskatlas.dk [#2638](https://github.com/duckduckgo/autoconsent/pull/2638) ([@daxtheduck](https://github.com/daxtheduck))
22
+ - Rule update: hemsol.se [#2637](https://github.com/duckduckgo/autoconsent/pull/2637) ([@daxtheduck](https://github.com/daxtheduck))
23
+ - Rule update: hmi-basen.dk [#2636](https://github.com/duckduckgo/autoconsent/pull/2636) ([@daxtheduck](https://github.com/daxtheduck))
24
+ - Rule update: fora.se [#2635](https://github.com/duckduckgo/autoconsent/pull/2635) ([@daxtheduck](https://github.com/daxtheduck))
25
+ - Rule update: gjerrigknark [#2634](https://github.com/duckduckgo/autoconsent/pull/2634) ([@daxtheduck](https://github.com/daxtheduck))
26
+ - Rule update: jobbland [#2633](https://github.com/duckduckgo/autoconsent/pull/2633) ([@daxtheduck](https://github.com/daxtheduck))
27
+ - Rule update: fusedeck, remove auto_CH_fhgr.ch_9nr [#2632](https://github.com/duckduckgo/autoconsent/pull/2632) ([@daxtheduck](https://github.com/daxtheduck))
28
+ - Rule update: morgenlevering.no [#2631](https://github.com/duckduckgo/autoconsent/pull/2631) ([@daxtheduck](https://github.com/daxtheduck))
29
+ - Rule update: doc24-ch [#2630](https://github.com/duckduckgo/autoconsent/pull/2630) ([@daxtheduck](https://github.com/daxtheduck))
30
+ - Rule update: matspar-se [#2629](https://github.com/duckduckgo/autoconsent/pull/2629) ([@daxtheduck](https://github.com/daxtheduck))
31
+ - Rule update: wbd-consent-modal [#2628](https://github.com/duckduckgo/autoconsent/pull/2628) ([@daxtheduck](https://github.com/daxtheduck))
32
+ - Rule update: kglakademi.dk [#2627](https://github.com/duckduckgo/autoconsent/pull/2627) ([@daxtheduck](https://github.com/daxtheduck))
33
+ - Rule update: kadokawa-ascii [#2626](https://github.com/duckduckgo/autoconsent/pull/2626) ([@daxtheduck](https://github.com/daxtheduck))
34
+ - Rule update: cookie-button-basic [#2625](https://github.com/duckduckgo/autoconsent/pull/2625) ([@daxtheduck](https://github.com/daxtheduck))
35
+ - Rule update: squarespace-cookie-banner [#2624](https://github.com/duckduckgo/autoconsent/pull/2624) ([@daxtheduck](https://github.com/daxtheduck))
36
+ - Rule update: bannercookie-dashboard [#2623](https://github.com/duckduckgo/autoconsent/pull/2623) ([@daxtheduck](https://github.com/daxtheduck))
37
+ - Rule update: mitrejsevejr.dk [#2621](https://github.com/duckduckgo/autoconsent/pull/2621) ([@daxtheduck](https://github.com/daxtheduck))
38
+ - Rule update: skisport [#2620](https://github.com/duckduckgo/autoconsent/pull/2620) ([@daxtheduck](https://github.com/daxtheduck))
39
+ - Rule update: cloudcms-cookie-alert-notice, cloudcms-cookie-alert [#2617](https://github.com/duckduckgo/autoconsent/pull/2617) ([@daxtheduck](https://github.com/daxtheduck))
40
+ - Rule update: wordpress-wordads [#2616](https://github.com/duckduckgo/autoconsent/pull/2616) ([@daxtheduck](https://github.com/daxtheduck))
41
+ - Rule update: skogforsk [#2615](https://github.com/duckduckgo/autoconsent/pull/2615) ([@daxtheduck](https://github.com/daxtheduck))
42
+ - Rule update: cookiesck [#2614](https://github.com/duckduckgo/autoconsent/pull/2614) ([@daxtheduck](https://github.com/daxtheduck))
43
+ - Rule update: peppes.no [#2613](https://github.com/duckduckgo/autoconsent/pull/2613) ([@daxtheduck](https://github.com/daxtheduck))
44
+ - Rule update: bn-org-pl [#2611](https://github.com/duckduckgo/autoconsent/pull/2611) ([@daxtheduck](https://github.com/daxtheduck))
45
+ - Rule update: amasty-gdpr-sidebar [#2610](https://github.com/duckduckgo/autoconsent/pull/2610) ([@daxtheduck](https://github.com/daxtheduck))
46
+ - Rule update: vardgivarguiden.se [#2609](https://github.com/duckduckgo/autoconsent/pull/2609) ([@daxtheduck](https://github.com/daxtheduck))
47
+ - Rule update: ernesto [#2608](https://github.com/duckduckgo/autoconsent/pull/2608) ([@daxtheduck](https://github.com/daxtheduck))
48
+ - Rule update: nutri.se [#2607](https://github.com/duckduckgo/autoconsent/pull/2607) ([@daxtheduck](https://github.com/daxtheduck))
49
+ - Rule update: multicalcolo [#2606](https://github.com/duckduckgo/autoconsent/pull/2606) ([@daxtheduck](https://github.com/daxtheduck))
50
+ - Rule update: arena.pl [#2605](https://github.com/duckduckgo/autoconsent/pull/2605) ([@daxtheduck](https://github.com/daxtheduck))
51
+ - Rule update: sportstiming [#2604](https://github.com/duckduckgo/autoconsent/pull/2604) ([@daxtheduck](https://github.com/daxtheduck))
52
+ - Rule update: sian-it [#2603](https://github.com/duckduckgo/autoconsent/pull/2603) ([@daxtheduck](https://github.com/daxtheduck))
53
+ - Rule update: blastingnews [#2602](https://github.com/duckduckgo/autoconsent/pull/2602) ([@daxtheduck](https://github.com/daxtheduck))
54
+ - Rule update: eu-cookie-compliance-legacy [#2601](https://github.com/duckduckgo/autoconsent/pull/2601) ([@daxtheduck](https://github.com/daxtheduck))
55
+ - Rule update: planteportalen.no [#2600](https://github.com/duckduckgo/autoconsent/pull/2600) ([@daxtheduck](https://github.com/daxtheduck))
56
+ - Rule update: onecall-no [#2599](https://github.com/duckduckgo/autoconsent/pull/2599) ([@daxtheduck](https://github.com/daxtheduck))
57
+ - Rule update: Cookie Paywall - elconfidencial.com [#2597](https://github.com/duckduckgo/autoconsent/pull/2597) ([@daxtheduck](https://github.com/daxtheduck) [@sammacbeth](https://github.com/sammacbeth))
58
+ - Rule update: www.delta.com (EU sites) [#2595](https://github.com/duckduckgo/autoconsent/pull/2595) ([@daxtheduck](https://github.com/daxtheduck))
59
+ - Rule update: welcome-city-yokohama [#2576](https://github.com/duckduckgo/autoconsent/pull/2576) ([@daxtheduck](https://github.com/daxtheduck))
60
+
61
+ #### Dependencies
62
+
63
+ - Add npm release cooldown (.npmrc: min-release-age=7) [#2618](https://github.com/duckduckgo/autoconsent/pull/2618) ([@jeannamatthews](https://github.com/jeannamatthews))
64
+
65
+ #### Authors: 3
66
+
67
+ - Dax ([@daxtheduck](https://github.com/daxtheduck))
68
+ - Jeanna Matthews ([@jeannamatthews](https://github.com/jeannamatthews))
69
+ - Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
70
+
71
+ ---
72
+
1
73
  # v18.3.0 (Wed Nov 11 2026)
2
74
 
3
75
  #### Rules
@@ -14,7 +14,7 @@ const match = regex.exec(RELEASE_TASK_URL);
14
14
  const releaseTaskGid = match?.groups?.task;
15
15
 
16
16
  /**
17
- * @typedef {{taskGid: string, taskUrl: string, displayName: string}} platformData
17
+ * @typedef {{taskGid: string, taskUrl: string, displayName: string, deferredProjects?: string}} platformData
18
18
  *
19
19
  * @typedef {{
20
20
  * android: platformData,
@@ -56,6 +56,10 @@ const selectedPlatforms = {
56
56
  extension: process.env.PLATFORM_EXTENSION === 'true',
57
57
  };
58
58
 
59
+ // The Apple PR is not ready until the embedded extension release adds the zip,
60
+ // so that workflow adds the Apple task to its projects instead.
61
+ const deferAppleProjects = process.env.PLATFORM_APPLE_EMBEDDED === 'true';
62
+
59
63
  const setupAsana = () => {
60
64
  return Asana.Client.create({
61
65
  defaultHeaders: {
@@ -123,7 +127,10 @@ async function main() {
123
127
  console.error(`updating task ${gid} with name "${newName}"`);
124
128
  await asana.tasks.updateTask(gid, { name: newName, html_notes: subtaskNotes });
125
129
 
126
- if (extractedProjects) {
130
+ if (extractedProjects && platform === 'apple' && deferAppleProjects) {
131
+ console.error(`deferring projects ${extractedProjects} for task ${gid}`);
132
+ platforms.apple.deferredProjects = extractedProjects;
133
+ } else if (extractedProjects) {
127
134
  console.error(`adding projects ${extractedProjects} to task ${gid}`);
128
135
  for (const projectGidAndSection of extractedProjects.split(',')) {
129
136
  const [projectGid, sectionGid] = projectGidAndSection.split(':');
@@ -20,6 +20,19 @@ const setupAsana = () => {
20
20
  }).useAccessToken(ASANA_ACCESS_TOKEN);
21
21
  };
22
22
 
23
+ /**
24
+ * @param {{taskGid: string, deferredProjects?: string}} platformObj
25
+ */
26
+ const addDeferredProjects = async ({ taskGid, deferredProjects }) => {
27
+ if (!deferredProjects) {
28
+ return;
29
+ }
30
+ for (const projectGidAndSection of deferredProjects.split(',')) {
31
+ const [projectGid, sectionGid] = projectGidAndSection.split(':');
32
+ await asana.tasks.addProjectForTask(taskGid, { project: projectGid, section: sectionGid });
33
+ }
34
+ };
35
+
23
36
  const asanaUpdateTasks = async () => {
24
37
  let asanaOutput;
25
38
  try {
@@ -46,12 +59,13 @@ const asanaUpdateTasks = async () => {
46
59
  console.error(`Skipping ${platformName} PR URL update - no PR URL`);
47
60
  }
48
61
 
49
- // Notify the Apple DRIs that the Apple PR will be updated once the extension PR is merged
62
+ // The Apple task is added to its projects when the extension PR is merged and the embedded ZIP is added
50
63
  if (platformName === 'apple' && process.env.APPLE_EMBEDDED === 'true') {
51
64
  const extensionPrUrl = prUrls.extension;
52
- let note = `This PR is in DRAFT. The embedded ZIP will be added once the extension PR is merged: ${extensionPrUrl}`;
65
+ let note = `This PR is in DRAFT and has the "DO NOT MERGE" label. The embedded ZIP will be added once the extension PR is merged: ${extensionPrUrl}. This task will then be added to the Apple projects.`;
53
66
  if (!extensionPrUrl) {
54
- note = 'Extension PR URL is not found. CPM DRI, please check the PR and mark it as ready.';
67
+ note = 'Extension PR URL is not found. CPM DRI, please check the PR, mark it as ready and remove the "DO NOT MERGE" label.';
68
+ await addDeferredProjects(platformObj);
55
69
  }
56
70
  await asana.stories.createStoryForTask(platformObj.taskGid, { text: note });
57
71
  }
@@ -44,7 +44,7 @@ function createPRTemplate(platform, data) {
44
44
 
45
45
  const extraContent =
46
46
  platform === 'extension'
47
- ? `<!-- THESE COMMENTS ARE USED BY CI, DON"T CHANGE THEM MANUALLY: --> <!-- apple_task_url: ${asanaOutput.apple?.taskUrl || ''} apple_task_gid: ${asanaOutput.apple?.taskGid || ''} -->`
47
+ ? `<!-- THESE COMMENTS ARE USED BY CI, DON"T CHANGE THEM MANUALLY: --> <!-- apple_task_url: ${asanaOutput.apple?.taskUrl || ''} apple_task_gid: ${asanaOutput.apple?.taskGid || ''} --> <!-- apple_projects: ${asanaOutput.apple?.deferredProjects || ''} -->`
48
48
  : '';
49
49
 
50
50
  const asanaUrl = asanaOutput[platform]?.taskUrl;