@duckduckgo/autoconsent 7.1.0 → 8.1.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/CHANGELOG.md +37 -0
- package/Jenkinsfile +20 -37
- package/data/coverage.json +507 -531
- package/dist/addon-firefox/background.bundle.js +1 -0
- package/dist/addon-firefox/content.bundle.js +12 -15
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/rules.json +127 -184
- package/dist/addon-mv3/background.bundle.js +1 -0
- package/dist/addon-mv3/content.bundle.js +12 -15
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/rules.json +127 -184
- package/dist/autoconsent.cjs.js +12 -15
- package/dist/autoconsent.esm.js +12 -15
- package/dist/autoconsent.playwright.js +1 -1
- package/lib/cmps/cookiebot.ts +1 -4
- package/lib/cmps/evidon.ts +1 -1
- package/lib/cmps/trustarc-top.ts +1 -1
- package/lib/eval-snippets.ts +1 -0
- package/lib/rule-executors.ts +4 -4
- package/lib/rules.ts +1 -6
- package/lib/utils.ts +3 -5
- package/lib/web.ts +1 -1
- package/package.json +3 -2
- package/playwright/runner.ts +1 -0
- package/playwright.config.ts +0 -2
- package/readme.md +37 -28
- package/rules/autoconsent/1password-com.json +1 -1
- package/rules/autoconsent/agolde-com.json +1 -1
- package/rules/autoconsent/altium-com.json +1 -1
- package/rules/autoconsent/aquasana-com.json +1 -1
- package/rules/autoconsent/athlinks-com.json +1 -1
- package/rules/autoconsent/ausopen.json +1 -1
- package/rules/autoconsent/baden-wuerttemberg-de.json +1 -1
- package/rules/autoconsent/bbb.json +1 -1
- package/rules/autoconsent/burpee-com.json +1 -1
- package/rules/autoconsent/cc-banner.json +1 -1
- package/rules/autoconsent/clustrmaps-com.json +1 -1
- package/rules/autoconsent/complianz-notice.json +1 -1
- package/rules/autoconsent/cookie-law-info.json +1 -1
- package/rules/autoconsent/cookie-notice.json +1 -1
- package/rules/autoconsent/cookieinformation.json +1 -1
- package/rules/autoconsent/cookieyes.json +1 -1
- package/rules/autoconsent/crossfit-com.json +1 -1
- package/rules/autoconsent/dailymotion-us.json +1 -1
- package/rules/autoconsent/delta-com.json +1 -1
- package/rules/autoconsent/dsgvo.json +1 -1
- package/rules/autoconsent/eu-cookie-compliance.json +1 -1
- package/rules/autoconsent/eu-cookie-law.json +1 -1
- package/rules/autoconsent/geeks-for-geeks.json +1 -1
- package/rules/autoconsent/generic-cosmetic.json +1 -1
- package/rules/autoconsent/hema-com.json +21 -0
- package/rules/autoconsent/hl-co-uk.json +1 -1
- package/rules/autoconsent/indeed-com.json +1 -1
- package/rules/autoconsent/ing-de.json +18 -0
- package/rules/autoconsent/itopvpn-com.json +1 -1
- package/rules/autoconsent/jquery-cookiebar.json +1 -1
- package/rules/autoconsent/macpaw-com.json +1 -1
- package/rules/autoconsent/marksandspencer.json +1 -1
- package/rules/autoconsent/midway-usa.json +1 -1
- package/rules/autoconsent/moove.json +1 -1
- package/rules/autoconsent/nba-com.json +1 -1
- package/rules/autoconsent/netflix-de.json +1 -1
- package/rules/autoconsent/notice-cookie.json +1 -1
- package/rules/autoconsent/nrk-no.json +1 -1
- package/rules/autoconsent/osano.json +1 -1
- package/rules/autoconsent/pinetools-com.json +1 -1
- package/rules/autoconsent/pmc-cmp.json +1 -1
- package/rules/autoconsent/pornhub.json +1 -1
- package/rules/autoconsent/pornpics.json +1 -1
- package/rules/autoconsent/primebox.json +1 -1
- package/rules/autoconsent/samsung-com.json +1 -1
- package/rules/autoconsent/similarweb-com.json +1 -1
- package/rules/autoconsent/takealot-com.json +1 -1
- package/rules/autoconsent/tealium.json +2 -2
- package/rules/autoconsent/testcmp-cosmetic.json +1 -1
- package/rules/autoconsent/tidbits-com.json +1 -1
- package/rules/autoconsent/tractor-supply.json +1 -1
- package/rules/autoconsent/trader-joes-com.json +1 -1
- package/rules/autoconsent/true-car.json +1 -1
- package/rules/autoconsent/tumblr-com.json +1 -1
- package/rules/autoconsent/twitch.json +1 -1
- package/rules/autoconsent/uk-cookie-consent.json +1 -1
- package/rules/autoconsent/urbanarmorgear-com.json +1 -1
- package/rules/autoconsent/whitepages.json +1 -1
- package/rules/autoconsent/wpcc.json +1 -1
- package/rules/autoconsent/xhamster-us.json +1 -1
- package/rules/autoconsent/xnxx-com.json +1 -1
- package/rules/autoconsent/youporn.json +1 -1
- package/rules/rules.json +127 -184
- package/tests/_sample-test.spec.ts +16 -0
- package/tests/hema.spec.ts +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
1
|
+
# v8.1.0 (Wed Jan 10 2024)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- Add a rule for ing.de [#337](https://github.com/duckduckgo/autoconsent/pull/337) ([@seia-soto](https://github.com/seia-soto))
|
|
6
|
+
- Add a rule for hema.com [#319](https://github.com/duckduckgo/autoconsent/pull/319) ([@seia-soto](https://github.com/seia-soto) [@muodov](https://github.com/muodov))
|
|
7
|
+
|
|
8
|
+
#### 🐛 Bug Fix
|
|
9
|
+
|
|
10
|
+
- Only use sites where the popup is open by default as examples [#336](https://github.com/duckduckgo/autoconsent/pull/336) ([@sammacbeth](https://github.com/sammacbeth))
|
|
11
|
+
- Test a subset of sites found in the coverage crawl in CI [#323](https://github.com/duckduckgo/autoconsent/pull/323) ([@sammacbeth](https://github.com/sammacbeth))
|
|
12
|
+
|
|
13
|
+
#### Authors: 3
|
|
14
|
+
|
|
15
|
+
- HoJeong Go ([@seia-soto](https://github.com/seia-soto))
|
|
16
|
+
- Maxim Tsoy ([@muodov](https://github.com/muodov))
|
|
17
|
+
- Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# v8.0.0 (Sat Jan 06 2024)
|
|
22
|
+
|
|
23
|
+
#### 💥 Breaking Change
|
|
24
|
+
|
|
25
|
+
- single selector in hide rules [#334](https://github.com/duckduckgo/autoconsent/pull/334) ([@muodov](https://github.com/muodov))
|
|
26
|
+
|
|
27
|
+
#### 🔩 Dependency Updates
|
|
28
|
+
|
|
29
|
+
- Bump the dev-dependencies group with 4 updates [#328](https://github.com/duckduckgo/autoconsent/pull/328) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
|
30
|
+
|
|
31
|
+
#### Authors: 2
|
|
32
|
+
|
|
33
|
+
- [@dependabot[bot]](https://github.com/dependabot[bot])
|
|
34
|
+
- Maxim Tsoy ([@muodov](https://github.com/muodov))
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
1
38
|
# v7.1.0 (Wed Jan 03 2024)
|
|
2
39
|
|
|
3
40
|
#### 🚀 Enhancement
|
package/Jenkinsfile
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
def runPlaywrightTests(resultDir, browser, grep) {
|
|
2
2
|
try {
|
|
3
|
-
timeout(
|
|
4
|
-
sh 'mkdir -p ./test-results'
|
|
3
|
+
timeout(120) {
|
|
5
4
|
sh """
|
|
6
|
-
|
|
5
|
+
rm -f results.xml
|
|
6
|
+
PLAYWRIGHT_JUNIT_OUTPUT_NAME=results.xml npx playwright test tests/_sample-test.spec.ts --project $browser --reporter=junit --grep "$grep"|| true
|
|
7
7
|
"""
|
|
8
8
|
}
|
|
9
9
|
} finally {
|
|
10
10
|
junit 'results.xml'
|
|
11
|
-
sh """
|
|
12
|
-
mkdir -p ${resultDir}/results/${BRANCH_NAME}/${BUILD_NUMBER}/$REGION/
|
|
13
|
-
mkdir -p ./test-results
|
|
14
|
-
mv ./test-results/ ${resultDir}/results/${BRANCH_NAME}/${BUILD_NUMBER}/$REGION/
|
|
15
|
-
"""
|
|
16
11
|
}
|
|
17
12
|
}
|
|
18
13
|
|
|
@@ -29,6 +24,8 @@ pipeline {
|
|
|
29
24
|
string(name: 'TEST_RESULT_ROOT', defaultValue: '/mnt/efs/users/smacbeth/autoconsent/ci', description: 'Where test results and configuration are stored')
|
|
30
25
|
choice(name: 'BROWSER', choices: ['chrome', 'webkit', 'iphoneSE', 'firefox'], description: 'Browser')
|
|
31
26
|
string(name: 'GREP', defaultValue: '', description: 'filter for tests matching a specific string')
|
|
27
|
+
string(name: 'NSITES', defaultValue: '1', description: 'number of sites to test per CMP')
|
|
28
|
+
string(name: 'BRANCH', defaultValue: 'main', description: 'Branch or PR to checkout (e.g. pr/123)')
|
|
32
29
|
}
|
|
33
30
|
environment {
|
|
34
31
|
NODENV_VERSION = "16.16.0"
|
|
@@ -38,7 +35,9 @@ pipeline {
|
|
|
38
35
|
stages {
|
|
39
36
|
stage('Checkout') {
|
|
40
37
|
steps {
|
|
41
|
-
checkout
|
|
38
|
+
checkout([$class: 'GitSCM', branches: [[name: "${params.BRANCH}"]],
|
|
39
|
+
extensions: [[$class: 'LocalBranch']],
|
|
40
|
+
userRemoteConfigs: [[refspec: "+refs/pull/*/head:refs/remotes/origin/pr/*", credentialsId: 'GitHubAccess', url: 'https://github.com/duckduckgo/autoconsent.git']]])
|
|
42
41
|
}
|
|
43
42
|
}
|
|
44
43
|
|
|
@@ -49,39 +48,23 @@ pipeline {
|
|
|
49
48
|
npx playwright install
|
|
50
49
|
'''
|
|
51
50
|
script {
|
|
52
|
-
currentBuild.description = "${params.
|
|
51
|
+
currentBuild.description = "${params.BRANCH} - ${params.BROWSER}"
|
|
53
52
|
}
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
55
|
|
|
57
|
-
stage('Test
|
|
56
|
+
stage('Test') {
|
|
58
57
|
steps {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
stage('Test: GB') {
|
|
74
|
-
steps {
|
|
75
|
-
withEnvFile("${params.TEST_RESULT_ROOT}/gb.env") {
|
|
76
|
-
runPlaywrightTests(params.TEST_RESULT_ROOT, params.BROWSER, params.GREP)
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
stage('Test: FR') {
|
|
82
|
-
steps {
|
|
83
|
-
withEnvFile("${params.TEST_RESULT_ROOT}/fr.env") {
|
|
84
|
-
runPlaywrightTests(params.TEST_RESULT_ROOT, params.BROWSER, params.GREP)
|
|
58
|
+
withEnv(["NSITES=${params.NSITES}}"]) {
|
|
59
|
+
withEnvFile("${params.TEST_RESULT_ROOT}/de.env") {
|
|
60
|
+
runPlaywrightTests(params.TEST_RESULT_ROOT, params.BROWSER, params.GREP)
|
|
61
|
+
}
|
|
62
|
+
withEnvFile("${params.TEST_RESULT_ROOT}/us.env") {
|
|
63
|
+
runPlaywrightTests(params.TEST_RESULT_ROOT, params.BROWSER, params.GREP)
|
|
64
|
+
}
|
|
65
|
+
withEnvFile("${params.TEST_RESULT_ROOT}/gb.env") {
|
|
66
|
+
runPlaywrightTests(params.TEST_RESULT_ROOT, params.BROWSER, params.GREP)
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
}
|
|
87
70
|
}
|