@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duckduckgo/autoconsent",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"types": "./dist/types/web.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -36,13 +36,15 @@
|
|
|
36
36
|
"launch:firefox": "web-ext run -s dist/addon-firefox",
|
|
37
37
|
"release": "auto shipit",
|
|
38
38
|
"get-text-for-xpath": "ts-node scripts/get-text-for-xpath.ts",
|
|
39
|
-
"bundle-config-rules": "ts-node scripts/bundle-config-rules.ts"
|
|
39
|
+
"bundle-config-rules": "ts-node scripts/bundle-config-rules.ts",
|
|
40
|
+
"check-pr-release-labels": "ts-node scripts/check-pr-release-labels.ts"
|
|
40
41
|
},
|
|
41
42
|
"author": "Sam Macbeth",
|
|
42
43
|
"license": "MPL-2.0",
|
|
43
44
|
"devDependencies": {
|
|
44
45
|
"@duckduckgo/eslint-config": "github:duckduckgo/eslint-config#v0.1.0",
|
|
45
46
|
"@esm-bundle/chai": "^4.3.4-fix.0",
|
|
47
|
+
"@octokit/rest": "^22.0.1",
|
|
46
48
|
"@playwright/test": "^1.17.1",
|
|
47
49
|
"@types/chai": "^5.0.0",
|
|
48
50
|
"@types/chrome": "^0.1.0",
|
|
@@ -76,6 +78,111 @@
|
|
|
76
78
|
},
|
|
77
79
|
"repository": "duckduckgo/autoconsent",
|
|
78
80
|
"auto": {
|
|
81
|
+
"noDefaultLabels": true,
|
|
82
|
+
"labels": [
|
|
83
|
+
{
|
|
84
|
+
"name": "major",
|
|
85
|
+
"description": "Increment the major version when merged",
|
|
86
|
+
"releaseType": "major",
|
|
87
|
+
"color": "#C5000B"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "minor",
|
|
91
|
+
"description": "Increment the minor version when merged",
|
|
92
|
+
"releaseType": "minor",
|
|
93
|
+
"color": "#F1A60E"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "patch",
|
|
97
|
+
"description": "Increment the patch version when merged",
|
|
98
|
+
"releaseType": "patch",
|
|
99
|
+
"default": true,
|
|
100
|
+
"color": "#870048"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "release",
|
|
104
|
+
"description": "Create a release when this PR is merged",
|
|
105
|
+
"releaseType": "release",
|
|
106
|
+
"color": "#007f70"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "rules",
|
|
110
|
+
"changelogTitle": "Rules",
|
|
111
|
+
"description": "Autoconsent rule additions, updates, and generated rule changes",
|
|
112
|
+
"releaseType": "none",
|
|
113
|
+
"color": "#bfdadc"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "bug",
|
|
117
|
+
"changelogTitle": "Bug Fixes",
|
|
118
|
+
"description": "Something isn't working",
|
|
119
|
+
"releaseType": "none",
|
|
120
|
+
"color": "#d73a4a"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "enhancement",
|
|
124
|
+
"changelogTitle": "Enhancements",
|
|
125
|
+
"description": "New feature or request",
|
|
126
|
+
"releaseType": "none",
|
|
127
|
+
"color": "#a2eeef"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "performance",
|
|
131
|
+
"changelogTitle": "Performance",
|
|
132
|
+
"description": "Improve performance of an existing feature",
|
|
133
|
+
"releaseType": "none",
|
|
134
|
+
"color": "#f4b2d8"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "dependencies",
|
|
138
|
+
"changelogTitle": "Dependencies",
|
|
139
|
+
"description": "Update one or more dependencies version",
|
|
140
|
+
"releaseType": "none",
|
|
141
|
+
"color": "#8732bc"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "ci",
|
|
145
|
+
"changelogTitle": "CI / Release Automation",
|
|
146
|
+
"description": "Automation scripts and release infrastructure",
|
|
147
|
+
"releaseType": "none",
|
|
148
|
+
"color": "#2612BF"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "ai",
|
|
152
|
+
"changelogTitle": "AI / Agent Workflow",
|
|
153
|
+
"description": "Changes to agent workflows and skills",
|
|
154
|
+
"releaseType": "none",
|
|
155
|
+
"color": "#df4f06"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "documentation",
|
|
159
|
+
"changelogTitle": "Documentation",
|
|
160
|
+
"description": "Changes only affect the documentation",
|
|
161
|
+
"releaseType": "none",
|
|
162
|
+
"color": "#cfd3d7"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "tests",
|
|
166
|
+
"changelogTitle": "Test Infrastructure",
|
|
167
|
+
"description": "Changes to test harnesses, fixtures, or test infrastructure",
|
|
168
|
+
"releaseType": "none",
|
|
169
|
+
"color": "#ffd3cc"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "internal",
|
|
173
|
+
"changelogTitle": "Internal",
|
|
174
|
+
"description": "Changes only affect internal implementation details",
|
|
175
|
+
"releaseType": "none",
|
|
176
|
+
"color": "#696969"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "other",
|
|
180
|
+
"changelogTitle": "Other",
|
|
181
|
+
"description": "Changes that should appear in release notes but do not fit another category",
|
|
182
|
+
"releaseType": "none",
|
|
183
|
+
"color": "#ededed"
|
|
184
|
+
}
|
|
185
|
+
],
|
|
79
186
|
"plugins": [
|
|
80
187
|
"npm"
|
|
81
188
|
]
|
|
@@ -7,26 +7,23 @@
|
|
|
7
7
|
"prehideSelectors": ["[class*=ConsentManager]"],
|
|
8
8
|
"detectCmp": [
|
|
9
9
|
{
|
|
10
|
-
"exists": "[class*=
|
|
10
|
+
"exists": "[class*=ConsentManager_cookieBar]"
|
|
11
11
|
}
|
|
12
12
|
],
|
|
13
13
|
"detectPopup": [
|
|
14
14
|
{
|
|
15
|
-
"visible": "[class*=
|
|
15
|
+
"visible": "[class*=ConsentManager_cookieBar]",
|
|
16
|
+
"check": "any"
|
|
16
17
|
}
|
|
17
18
|
],
|
|
18
19
|
"optIn": [
|
|
19
20
|
{
|
|
20
|
-
"waitForThenClick": "[class
|
|
21
|
+
"waitForThenClick": "xpath///button[contains(@class, \"ConsentManager_cookieBarButton\") and contains(., \"accepteren\")]"
|
|
21
22
|
}
|
|
22
23
|
],
|
|
23
24
|
"optOut": [
|
|
24
25
|
{
|
|
25
|
-
"waitForThenClick": "[class
|
|
26
|
-
"all": true
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"waitForThenClick": "[class*=ConsentManager_continue]"
|
|
26
|
+
"waitForThenClick": "xpath///button[contains(@class, \"ConsentManager_cookieBarButton\") and contains(., \"weigeren\")]"
|
|
30
27
|
}
|
|
31
28
|
],
|
|
32
29
|
"test": [
|