@duckduckgo/autoconsent 16.0.0 → 16.2.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/PULL_REQUEST_TEMPLATE.md +7 -0
- package/.github/labeler.yml +36 -0
- package/.github/workflows/release-labels.yml +110 -0
- package/CHANGELOG.md +28 -0
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/content.bundle.js +516 -10
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/rules.json +1 -1
- package/dist/addon-mv3/compact-rules.json +1 -1
- package/dist/addon-mv3/content.bundle.js +516 -10
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/rules.json +1 -1
- package/dist/autoconsent.cjs.js +516 -10
- package/dist/autoconsent.esm.js +516 -10
- package/dist/autoconsent.playwright.js +516 -10
- package/dist/autoconsent.standalone.js +517 -11
- package/docs/release-notes.md +65 -0
- package/lib/heuristic-patterns.ts +553 -1
- package/package.json +109 -2
- package/rules/autoconsent/nhnieuws.json +5 -8
- package/rules/compact-rules.json +1 -1
- package/rules/rules.json +1 -1
- package/scripts/check-pr-release-labels.ts +255 -0
|
@@ -2,6 +2,13 @@ Task/Issue URL:
|
|
|
2
2
|
|
|
3
3
|
## Description:
|
|
4
4
|
|
|
5
|
+
<!--
|
|
6
|
+
Don't forget to label the PR.
|
|
7
|
+
|
|
8
|
+
Impact: choose one of `major`, `minor`, or `patch`.
|
|
9
|
+
Category: choose one of `rules`, `bug`, `enhancement`, `performance`, `dependencies`, `ci`, `ai`, `documentation`, `tests`, `internal`, or `other`.
|
|
10
|
+
Details: https://github.com/duckduckgo/autoconsent/blob/main/docs/release-notes.md
|
|
11
|
+
-->
|
|
5
12
|
|
|
6
13
|
## Steps to test this PR:
|
|
7
14
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
ai:
|
|
2
|
+
- changed-files:
|
|
3
|
+
- any-glob-to-any-file:
|
|
4
|
+
- '.agents/**'
|
|
5
|
+
- 'AGENTS.md'
|
|
6
|
+
- 'CLAUDE.md'
|
|
7
|
+
|
|
8
|
+
ci:
|
|
9
|
+
- changed-files:
|
|
10
|
+
- any-glob-to-any-file:
|
|
11
|
+
- '.github/**'
|
|
12
|
+
- 'ci/**'
|
|
13
|
+
- 'scripts/**'
|
|
14
|
+
|
|
15
|
+
dependencies:
|
|
16
|
+
- changed-files:
|
|
17
|
+
- any-glob-to-any-file:
|
|
18
|
+
- 'package.json'
|
|
19
|
+
- 'package-lock.json'
|
|
20
|
+
|
|
21
|
+
documentation:
|
|
22
|
+
- changed-files:
|
|
23
|
+
- any-glob-to-any-file:
|
|
24
|
+
- 'docs/**'
|
|
25
|
+
|
|
26
|
+
rules:
|
|
27
|
+
- changed-files:
|
|
28
|
+
- any-glob-to-any-file:
|
|
29
|
+
- 'rules/**'
|
|
30
|
+
- 'tests/**/*.spec.ts'
|
|
31
|
+
|
|
32
|
+
tests:
|
|
33
|
+
- changed-files:
|
|
34
|
+
- any-glob-to-any-file:
|
|
35
|
+
- 'playwright/**'
|
|
36
|
+
- 'web-test-runner.config.mjs'
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
name: Release Labels
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request_target:
|
|
5
|
+
types:
|
|
6
|
+
- opened
|
|
7
|
+
- reopened
|
|
8
|
+
- synchronize
|
|
9
|
+
- ready_for_review
|
|
10
|
+
- labeled
|
|
11
|
+
- unlabeled
|
|
12
|
+
- edited
|
|
13
|
+
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
issues: write
|
|
17
|
+
pull-requests: write
|
|
18
|
+
|
|
19
|
+
concurrency:
|
|
20
|
+
group: release-labels-${{ github.event.pull_request.number }}
|
|
21
|
+
cancel-in-progress: true
|
|
22
|
+
|
|
23
|
+
jobs:
|
|
24
|
+
release-labels:
|
|
25
|
+
runs-on: ubuntu-latest
|
|
26
|
+
steps:
|
|
27
|
+
- uses: actions/checkout@v4
|
|
28
|
+
|
|
29
|
+
- name: Apply path-based labels
|
|
30
|
+
if: >-
|
|
31
|
+
${{
|
|
32
|
+
github.event.action == 'opened' ||
|
|
33
|
+
github.event.action == 'reopened' ||
|
|
34
|
+
github.event.action == 'ready_for_review'
|
|
35
|
+
}}
|
|
36
|
+
uses: actions/labeler@v6
|
|
37
|
+
with:
|
|
38
|
+
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
39
|
+
sync-labels: false
|
|
40
|
+
|
|
41
|
+
- name: Use Node.js
|
|
42
|
+
uses: actions/setup-node@v4
|
|
43
|
+
with:
|
|
44
|
+
node-version: lts/*
|
|
45
|
+
cache: 'npm'
|
|
46
|
+
|
|
47
|
+
- name: Install dependencies
|
|
48
|
+
run: npm ci --ignore-scripts
|
|
49
|
+
|
|
50
|
+
- name: Check release labels
|
|
51
|
+
id: check_release_labels
|
|
52
|
+
continue-on-error: true
|
|
53
|
+
env:
|
|
54
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
55
|
+
run: |
|
|
56
|
+
npm run check-pr-release-labels -- \
|
|
57
|
+
--fetch-current-labels \
|
|
58
|
+
--json-output "$RUNNER_TEMP/release-label-check.json"
|
|
59
|
+
|
|
60
|
+
- name: Comment on release label issues
|
|
61
|
+
if: always()
|
|
62
|
+
uses: actions/github-script@v7
|
|
63
|
+
with:
|
|
64
|
+
script: |
|
|
65
|
+
const fs = require('fs');
|
|
66
|
+
|
|
67
|
+
const resultPath = `${process.env.RUNNER_TEMP}/release-label-check.json`;
|
|
68
|
+
|
|
69
|
+
if (!fs.existsSync(resultPath)) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const marker = '<!-- autoconsent-release-label-check -->';
|
|
74
|
+
const result = JSON.parse(fs.readFileSync(resultPath, 'utf8'));
|
|
75
|
+
const { owner, repo } = context.repo;
|
|
76
|
+
const issue_number = context.payload.pull_request.number;
|
|
77
|
+
const { data: comments } = await github.rest.issues.listComments({
|
|
78
|
+
owner,
|
|
79
|
+
repo,
|
|
80
|
+
issue_number,
|
|
81
|
+
per_page: 100,
|
|
82
|
+
});
|
|
83
|
+
const existingComment = comments.find(
|
|
84
|
+
(comment) => comment.user.type === 'Bot' && comment.body?.includes(marker)
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
if (!existingComment && result.ok) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if (existingComment) {
|
|
92
|
+
await github.rest.issues.updateComment({
|
|
93
|
+
owner,
|
|
94
|
+
repo,
|
|
95
|
+
comment_id: existingComment.id,
|
|
96
|
+
body: result.comment,
|
|
97
|
+
});
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
await github.rest.issues.createComment({
|
|
102
|
+
owner,
|
|
103
|
+
repo,
|
|
104
|
+
issue_number,
|
|
105
|
+
body: result.comment,
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
- name: Fail on release label issues
|
|
109
|
+
if: steps.check_release_labels.outcome == 'failure'
|
|
110
|
+
run: exit 1
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
# v16.2.0 (Tue Jun 30 2026)
|
|
2
|
+
|
|
3
|
+
#### Rules
|
|
4
|
+
|
|
5
|
+
- Update nhnieuws rule for redesigned consent popup [#1412](https://github.com/duckduckgo/autoconsent/pull/1412) ([@cursoragent](https://github.com/cursoragent) [@muodov](https://github.com/muodov))
|
|
6
|
+
- Add heuristic patterns for Spanish and Polish [#1404](https://github.com/duckduckgo/autoconsent/pull/1404) ([@GuiltyDolphin](https://github.com/GuiltyDolphin) [@muodov](https://github.com/muodov))
|
|
7
|
+
|
|
8
|
+
#### Authors: 3
|
|
9
|
+
|
|
10
|
+
- Ben Moon ([@GuiltyDolphin](https://github.com/GuiltyDolphin))
|
|
11
|
+
- Cursor Agent ([@cursoragent](https://github.com/cursoragent))
|
|
12
|
+
- Maxim Tsoy ([@muodov](https://github.com/muodov))
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# v16.1.0 (Fri Jun 26 2026)
|
|
17
|
+
|
|
18
|
+
#### CI / Release Automation
|
|
19
|
+
|
|
20
|
+
- Revamp release note labeling [#1410](https://github.com/duckduckgo/autoconsent/pull/1410) ([@cursoragent](https://github.com/cursoragent) [@muodov](https://github.com/muodov))
|
|
21
|
+
|
|
22
|
+
#### Authors: 2
|
|
23
|
+
|
|
24
|
+
- Cursor Agent ([@cursoragent](https://github.com/cursoragent))
|
|
25
|
+
- Maxim Tsoy ([@muodov](https://github.com/muodov))
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
1
29
|
# v16.0.0 (Tue Jun 23 2026)
|
|
2
30
|
|
|
3
31
|
#### 💥 Breaking Change
|