@duckduckgo/autoconsent 12.10.0 โ 12.11.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.
- package/.github/workflows/ddg-release.yml +26 -89
- package/CHANGELOG.md +30 -0
- package/ci/asana-create-tasks.js +4 -8
- package/ci/asana-update-tasks.js +1 -2
- package/ci/create-pr-template.js +1 -1
- package/data/coverage.json +1018 -1100
- package/dist/addon-firefox/background.bundle.js +2 -0
- package/dist/addon-firefox/content.bundle.js +5 -2
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/rules.json +40 -0
- package/dist/addon-mv3/background.bundle.js +2 -0
- package/dist/addon-mv3/content.bundle.js +5 -2
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/rules.json +40 -0
- package/dist/autoconsent.cjs.js +3 -0
- package/dist/autoconsent.esm.js +3 -0
- package/dist/autoconsent.extra.cjs.js +5 -2
- package/dist/autoconsent.extra.esm.js +5 -2
- package/dist/autoconsent.playwright.js +45 -2
- package/lib/cmps/sourcepoint-frame.ts +3 -0
- package/lib/eval-snippets.ts +2 -0
- package/lib/filterlist-engine.ts +2 -2
- package/package.json +1 -1
- package/rules/autoconsent/gdpr-legal-cookie.json +38 -0
- package/rules/filterlist.txt +39 -79
- package/rules/rules.json +40 -0
- package/tests/gdpr-legal-cookie.spec.ts +3 -0
|
@@ -11,13 +11,8 @@ on:
|
|
|
11
11
|
type: boolean
|
|
12
12
|
required: true
|
|
13
13
|
default: true
|
|
14
|
-
|
|
15
|
-
description: 'Propagate to iOS'
|
|
16
|
-
type: boolean
|
|
17
|
-
required: true
|
|
18
|
-
default: true
|
|
19
|
-
macos:
|
|
20
|
-
description: 'Propagate to macOS'
|
|
14
|
+
apple:
|
|
15
|
+
description: 'Propagate to iOS & macOS'
|
|
21
16
|
type: boolean
|
|
22
17
|
required: true
|
|
23
18
|
default: true
|
|
@@ -37,12 +32,8 @@ on:
|
|
|
37
32
|
description: 'Propagate to Android'
|
|
38
33
|
type: boolean
|
|
39
34
|
default: true
|
|
40
|
-
|
|
41
|
-
description: 'Propagate to iOS'
|
|
42
|
-
type: boolean
|
|
43
|
-
default: true
|
|
44
|
-
macos:
|
|
45
|
-
description: 'Propagate to macOS'
|
|
35
|
+
apple:
|
|
36
|
+
description: 'Propagate to iOS & macOS'
|
|
46
37
|
type: boolean
|
|
47
38
|
default: true
|
|
48
39
|
windows:
|
|
@@ -178,11 +169,11 @@ jobs:
|
|
|
178
169
|
token: ${{ secrets.DAX_WEB_AUTOFILL_AUTOMATION }}
|
|
179
170
|
|
|
180
171
|
# ------------------------------------------------------------------------------
|
|
181
|
-
# Create PR with updated autoconsent on iOS
|
|
172
|
+
# Create PR with updated autoconsent on iOS & macOS
|
|
182
173
|
# ------------------------------------------------------------------------------
|
|
183
174
|
|
|
184
|
-
|
|
185
|
-
if: ${{ inputs.
|
|
175
|
+
update_apple:
|
|
176
|
+
if: ${{ inputs.apple }}
|
|
186
177
|
runs-on: ubuntu-latest
|
|
187
178
|
outputs:
|
|
188
179
|
pull-request-url: ${{ steps.create-pr.outputs.pull-request-url }}
|
|
@@ -198,107 +189,54 @@ jobs:
|
|
|
198
189
|
path: autoconsent/
|
|
199
190
|
- uses: ./autoconsent/.github/actions/setup-release-scripts
|
|
200
191
|
# --- Action ---
|
|
201
|
-
- name: Checkout
|
|
192
|
+
- name: Checkout Apple monorepo
|
|
202
193
|
uses: actions/checkout@v3
|
|
203
194
|
with:
|
|
204
|
-
repository: duckduckgo/
|
|
205
|
-
path:
|
|
195
|
+
repository: duckduckgo/apple-browsers
|
|
196
|
+
path: apple-monorepo/
|
|
206
197
|
token: ${{ secrets.DAX_WEB_AUTOFILL_AUTOMATION }}
|
|
207
198
|
- uses: actions/setup-node@v3
|
|
208
199
|
with:
|
|
209
200
|
node-version: current
|
|
210
201
|
- name: Update iOS autoconsent reference
|
|
211
202
|
run: |
|
|
212
|
-
cd
|
|
203
|
+
cd apple-monorepo/iOS
|
|
213
204
|
npm install @duckduckgo/autoconsent@${{ env.TAG }}
|
|
214
205
|
npm run rebuild-autoconsent
|
|
215
206
|
cd ..
|
|
216
|
-
- name: Create iOS PR Body
|
|
217
|
-
env:
|
|
218
|
-
ASANA_OUTPUT: ${{ needs.create_asana_tasks.outputs.asana-output }}
|
|
219
|
-
run: |
|
|
220
|
-
TEMPLATE="$(node ./autoconsent/ci/create-pr-template.js ios)"
|
|
221
|
-
# Creates a randomised delimiter. See https://app.asana.com/0/1199892415909552/1203243297643584/f
|
|
222
|
-
DELIMITER=$(echo $RANDOM | md5sum | head -c 20;)
|
|
223
|
-
echo "PR_BODY_IOS<<$DELIMITER" >> $GITHUB_ENV
|
|
224
|
-
echo "$TEMPLATE" >> $GITHUB_ENV
|
|
225
|
-
echo "$DELIMITER" >> $GITHUB_ENV
|
|
226
|
-
# --- Effect ---
|
|
227
|
-
- name: Create PR for iOS
|
|
228
|
-
uses: peter-evans/create-pull-request@v7
|
|
229
|
-
id: create-pr
|
|
230
|
-
with:
|
|
231
|
-
path: ios/
|
|
232
|
-
add-paths: |
|
|
233
|
-
package.json
|
|
234
|
-
package-lock.json
|
|
235
|
-
DuckDuckGo/Autoconsent/
|
|
236
|
-
commit-message: Update autoconsent to ${{ env.TAG }}
|
|
237
|
-
branch: update-autoconsent
|
|
238
|
-
title: Update autoconsent to ${{ env.TAG }}
|
|
239
|
-
body: '${{ env.PR_BODY_IOS }}'
|
|
240
|
-
token: ${{ secrets.DAX_WEB_AUTOFILL_AUTOMATION }}
|
|
241
|
-
|
|
242
|
-
# ------------------------------------------------------------------------------
|
|
243
|
-
# Create PR with updated autoconsent on macOS
|
|
244
|
-
# ------------------------------------------------------------------------------
|
|
245
|
-
|
|
246
|
-
update_macos:
|
|
247
|
-
if: ${{ inputs.macos }}
|
|
248
|
-
runs-on: ubuntu-latest
|
|
249
|
-
outputs:
|
|
250
|
-
pull-request-url: ${{ steps.create-pr.outputs.pull-request-url }}
|
|
251
|
-
needs:
|
|
252
|
-
- create_asana_tasks
|
|
253
|
-
- get_release_info
|
|
254
|
-
env:
|
|
255
|
-
RELEASE_URL: ${{ needs.get_release_info.outputs.release-url }}
|
|
256
|
-
steps:
|
|
257
|
-
# --- Setup ---
|
|
258
|
-
- uses: actions/checkout@v3
|
|
259
|
-
with:
|
|
260
|
-
path: autoconsent/
|
|
261
|
-
- uses: ./autoconsent/.github/actions/setup-release-scripts
|
|
262
|
-
# --- Action ---
|
|
263
|
-
- name: Checkout macOS
|
|
264
|
-
uses: actions/checkout@v3
|
|
265
|
-
with:
|
|
266
|
-
repository: duckduckgo/macos-browser
|
|
267
|
-
path: macos/
|
|
268
|
-
token: ${{ secrets.DAX_WEB_AUTOFILL_AUTOMATION }}
|
|
269
|
-
- uses: actions/setup-node@v3
|
|
270
|
-
with:
|
|
271
|
-
node-version: current
|
|
272
207
|
- name: Update macOS autoconsent reference
|
|
273
208
|
run: |
|
|
274
|
-
cd
|
|
209
|
+
cd apple-monorepo/macOS
|
|
275
210
|
npm install @duckduckgo/autoconsent@${{ env.TAG }}
|
|
276
211
|
npm run rebuild-autoconsent
|
|
277
212
|
cd ..
|
|
278
|
-
- name: Create
|
|
213
|
+
- name: Create Apple PR Body
|
|
279
214
|
env:
|
|
280
215
|
ASANA_OUTPUT: ${{ needs.create_asana_tasks.outputs.asana-output }}
|
|
281
216
|
run: |
|
|
282
|
-
TEMPLATE="$(node ./autoconsent/ci/create-pr-template.js
|
|
217
|
+
TEMPLATE="$(node ./autoconsent/ci/create-pr-template.js apple)"
|
|
283
218
|
# Creates a randomised delimiter. See https://app.asana.com/0/1199892415909552/1203243297643584/f
|
|
284
219
|
DELIMITER=$(echo $RANDOM | md5sum | head -c 20;)
|
|
285
|
-
echo "
|
|
220
|
+
echo "PR_BODY_APPLE<<$DELIMITER" >> $GITHUB_ENV
|
|
286
221
|
echo "$TEMPLATE" >> $GITHUB_ENV
|
|
287
222
|
echo "$DELIMITER" >> $GITHUB_ENV
|
|
288
223
|
# --- Effect ---
|
|
289
|
-
- name: Create PR for
|
|
224
|
+
- name: Create PR for Apple platforms
|
|
290
225
|
uses: peter-evans/create-pull-request@v7
|
|
291
226
|
id: create-pr
|
|
292
227
|
with:
|
|
293
|
-
path:
|
|
228
|
+
path: apple-monorepo/
|
|
294
229
|
add-paths: |
|
|
295
|
-
package.json
|
|
296
|
-
package-lock.json
|
|
297
|
-
DuckDuckGo/Autoconsent/
|
|
230
|
+
iOS/package.json
|
|
231
|
+
iOS/package-lock.json
|
|
232
|
+
iOS/DuckDuckGo/Autoconsent/
|
|
233
|
+
macOS/package.json
|
|
234
|
+
macOS/package-lock.json
|
|
235
|
+
macOS/DuckDuckGo/Autoconsent/
|
|
298
236
|
commit-message: Update autoconsent to ${{ env.TAG }}
|
|
299
237
|
branch: update-autoconsent
|
|
300
238
|
title: Update autoconsent to ${{ env.TAG }}
|
|
301
|
-
body: '${{ env.
|
|
239
|
+
body: '${{ env.PR_BODY_APPLE }}'
|
|
302
240
|
token: ${{ secrets.DAX_WEB_AUTOFILL_AUTOMATION }}
|
|
303
241
|
|
|
304
242
|
# ------------------------------------------------------------------------------
|
|
@@ -370,7 +308,7 @@ jobs:
|
|
|
370
308
|
# Always run this final step, even if any of the updates have failed
|
|
371
309
|
# unless the previous jobs were cancelled
|
|
372
310
|
if: ${{ always() && !contains(needs.*.result, 'cancelled') }}
|
|
373
|
-
needs: [create_asana_tasks, update_android,
|
|
311
|
+
needs: [create_asana_tasks, update_android, update_apple, update_windows]
|
|
374
312
|
steps:
|
|
375
313
|
# --- Setup ---
|
|
376
314
|
- uses: actions/checkout@v3
|
|
@@ -382,8 +320,7 @@ jobs:
|
|
|
382
320
|
env:
|
|
383
321
|
ASANA_ACCESS_TOKEN: ${{ secrets.ASANA_ACCESS_TOKEN }}
|
|
384
322
|
ASANA_OUTPUT: ${{ needs.create_asana_tasks.outputs.asana-output }}
|
|
385
|
-
|
|
386
|
-
MACOS_PR_URL: ${{ needs.update_macos.outputs.pull-request-url }}
|
|
323
|
+
APPLE_PR_URL: ${{ needs.update_apple.outputs.pull-request-url }}
|
|
387
324
|
WINDOWS_PR_URL: ${{ needs.update_windows.outputs.pull-request-url }}
|
|
388
325
|
ANDROID_PR_URL: ${{ needs.update_android.outputs.pull-request-url }}
|
|
389
326
|
run: |
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
|
+
# v12.11.0 (Fri Feb 21 2025)
|
|
2
|
+
|
|
3
|
+
#### ๐ Enhancement
|
|
4
|
+
|
|
5
|
+
- Update EasyList Cookie to 021d8018ab06e861b47cb0c6f2eae756f27c05de [#643](https://github.com/duckduckgo/autoconsent/pull/643) ([@sammacbeth](https://github.com/sammacbeth) [@github-actions[bot]](https://github.com/github-actions[bot]))
|
|
6
|
+
|
|
7
|
+
#### ๐ Bug Fix
|
|
8
|
+
|
|
9
|
+
- Add artificial delay to the sourcepoint rule to mitigate race conditions [#640](https://github.com/duckduckgo/autoconsent/pull/640) ([@muodov](https://github.com/muodov))
|
|
10
|
+
- Add rule for gdpr-legal-cookie CMP [#636](https://github.com/duckduckgo/autoconsent/pull/636) ([@noisysocks](https://github.com/noisysocks))
|
|
11
|
+
|
|
12
|
+
#### ๐ Internal
|
|
13
|
+
|
|
14
|
+
- Update release workflow to support Apple monorepo [#627](https://github.com/duckduckgo/autoconsent/pull/627) ([@samsymons](https://github.com/samsymons))
|
|
15
|
+
|
|
16
|
+
#### ๐งช Tests
|
|
17
|
+
|
|
18
|
+
- Monthly Coverage data update [#642](https://github.com/duckduckgo/autoconsent/pull/642) ([@daxtheduck](https://github.com/daxtheduck) [@sammacbeth](https://github.com/sammacbeth))
|
|
19
|
+
|
|
20
|
+
#### Authors: 6
|
|
21
|
+
|
|
22
|
+
- [@github-actions[bot]](https://github.com/github-actions[bot])
|
|
23
|
+
- Dax ([@daxtheduck](https://github.com/daxtheduck))
|
|
24
|
+
- Maxim Tsoy ([@muodov](https://github.com/muodov))
|
|
25
|
+
- Robert Anderson ([@noisysocks](https://github.com/noisysocks))
|
|
26
|
+
- Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
|
|
27
|
+
- Sam Symons ([@samsymons](https://github.com/samsymons))
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
1
31
|
# v12.10.0 (Fri Feb 14 2025)
|
|
2
32
|
|
|
3
33
|
#### ๐ Enhancement
|
package/ci/asana-create-tasks.js
CHANGED
|
@@ -21,7 +21,8 @@ const projectExtractorRegex = /\[\[project_gids=(.*)]]/;
|
|
|
21
21
|
*
|
|
22
22
|
* @typedef {{
|
|
23
23
|
* android: platformData,
|
|
24
|
-
* windows: platformData
|
|
24
|
+
* windows: platformData,
|
|
25
|
+
* apple: platformData
|
|
25
26
|
* }} AsanaOutput
|
|
26
27
|
*/
|
|
27
28
|
|
|
@@ -37,13 +38,8 @@ const platforms = {
|
|
|
37
38
|
taskGid: '',
|
|
38
39
|
taskUrl: '',
|
|
39
40
|
},
|
|
40
|
-
|
|
41
|
-
displayName: '
|
|
42
|
-
taskGid: '',
|
|
43
|
-
taskUrl: '',
|
|
44
|
-
},
|
|
45
|
-
macos: {
|
|
46
|
-
displayName: 'macOS',
|
|
41
|
+
apple: {
|
|
42
|
+
displayName: 'Apple',
|
|
47
43
|
taskGid: '',
|
|
48
44
|
taskUrl: '',
|
|
49
45
|
},
|
package/ci/asana-update-tasks.js
CHANGED
|
@@ -4,8 +4,7 @@ const { replaceAllInString, getLink } = require('./release-utils.js');
|
|
|
4
4
|
const ASANA_ACCESS_TOKEN = process.env.ASANA_ACCESS_TOKEN;
|
|
5
5
|
const prUrls = {
|
|
6
6
|
android: process.env.ANDROID_PR_URL,
|
|
7
|
-
|
|
8
|
-
macos: process.env.MACOS_PR_URL,
|
|
7
|
+
apple: process.env.APPLE_PR_URL,
|
|
9
8
|
windows: process.env.WINDOWS_PR_URL,
|
|
10
9
|
};
|
|
11
10
|
const asanaOutputRaw = process.env.ASANA_OUTPUT;
|
package/ci/create-pr-template.js
CHANGED
|
@@ -11,7 +11,7 @@ const filepath = (...path) => join(cwd, ...path);
|
|
|
11
11
|
* releaseUrl: string,
|
|
12
12
|
* version: string
|
|
13
13
|
* }} CreatePRTemplateData
|
|
14
|
-
* @typedef {'android' | 'extensions' | '
|
|
14
|
+
* @typedef {'android' | 'extensions' | 'apple' | 'windows'} ReleasePlatform
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
const platform = /** @type {ReleasePlatform} */ (process.argv[2]);
|