@duckduckgo/autoconsent 4.3.3 → 4.4.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/checks.yml +13 -0
- package/CHANGELOG.md +16 -0
- package/data/Readme.md +16 -0
- package/data/coverage.json +4015 -0
- package/dist/addon-firefox/content.bundle.js +59 -13
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/rules.json +74 -0
- package/dist/addon-mv3/content.bundle.js +59 -13
- package/dist/addon-mv3/devtools/loader.js +64 -1
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/popup.bundle.js +7 -0
- package/dist/addon-mv3/popup.html +8 -0
- package/dist/addon-mv3/rules.json +74 -0
- package/dist/autoconsent.cjs.js +1 -1
- package/dist/autoconsent.esm.js +1 -1
- package/dist/autoconsent.playwright.js +1 -1
- package/lib/cmps/base.ts +8 -0
- package/lib/cmps/sourcepoint-frame.ts +2 -2
- package/lib/rule-executors.ts +59 -17
- package/lib/rules.ts +14 -7
- package/package.json +5 -2
- package/readme.md +23 -2
- package/rules/autoconsent/ubuntu.com.json +73 -0
- package/rules/build.mjs +67 -0
- package/rules/create-rule.mjs +35 -0
- package/rules/rules.json +74 -0
- package/rules/watch-build.mjs +23 -0
- package/tests/rule-executors.spec.ts +84 -0
- package/tests/ubuntu.spec.ts +5 -0
- package/rules/build.js +0 -63
|
@@ -17,3 +17,16 @@ jobs:
|
|
|
17
17
|
- run: npm ci
|
|
18
18
|
|
|
19
19
|
- run: npm run lint
|
|
20
|
+
|
|
21
|
+
test:
|
|
22
|
+
runs-on: ubuntu-latest
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v3
|
|
25
|
+
- name: Use Node.js 16.x
|
|
26
|
+
uses: actions/setup-node@v3
|
|
27
|
+
with:
|
|
28
|
+
node-version: 16.x
|
|
29
|
+
cache: 'npm'
|
|
30
|
+
- run: npm ci
|
|
31
|
+
- run: npx playwright install --with-deps
|
|
32
|
+
- run: npm run test:lib
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
# v4.4.0 (Tue Jul 11 2023)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- Support Chrome recorder generated selectors [#148](https://github.com/duckduckgo/autoconsent/pull/148) ([@sammacbeth](https://github.com/sammacbeth))
|
|
6
|
+
|
|
7
|
+
#### 🐛 Bug Fix
|
|
8
|
+
|
|
9
|
+
- Add initial coverage data [#188](https://github.com/duckduckgo/autoconsent/pull/188) ([@sammacbeth](https://github.com/sammacbeth))
|
|
10
|
+
|
|
11
|
+
#### Authors: 1
|
|
12
|
+
|
|
13
|
+
- Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
1
17
|
# v4.3.3 (Thu Jun 22 2023)
|
|
2
18
|
|
|
3
19
|
#### 🐛 Bug Fix
|
package/data/Readme.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Autoconsent Coverage Data
|
|
2
|
+
|
|
3
|
+
This folder contains statistics gathered from running crawls with autoconsent active, to determine which rules trigger on which sites.
|
|
4
|
+
The crawler uses [tracker-radar-collector](https://github.com/duckduckgo/tracker-radar-collector/) to crawl a list of the top 10k sites for US, DE and GB regions.
|
|
5
|
+
The results report how many sites in this list the rule triggered for, and some error counts.
|
|
6
|
+
|
|
7
|
+
## Data format
|
|
8
|
+
|
|
9
|
+
In `coverage.json` the data is included as a JSON object. Keys correspond to rule names and contain stats for `US`, `DE` and `GB` regions, where applicable.
|
|
10
|
+
The stats contain the following keys:
|
|
11
|
+
- `sites`: Number of sites where this rule was triggered (`detectCmp` was true).
|
|
12
|
+
- `errors`: Count of sites where an error occured processing the rule.
|
|
13
|
+
- `selfTestFailures`: If the rule has a self-test, and it didn't return true after opting out.
|
|
14
|
+
- `exampleSites`: A list of up to 5 example sites where this rule applies when accessing from this region.
|
|
15
|
+
- `failingSites`: A list of up to 5 sites where the self test is failing.
|
|
16
|
+
- `errorSites`: A list of up to 5 sites where an error occured.
|