@duckduckgo/autoconsent 14.92.0 → 14.93.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 +12 -0
- package/dist/addon-firefox/content.bundle.js +0 -14
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-mv3/content.bundle.js +0 -14
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/autoconsent.cjs.js +0 -14
- package/dist/autoconsent.esm.js +0 -14
- package/dist/autoconsent.extra.cjs.js +0 -14
- package/dist/autoconsent.extra.esm.js +0 -14
- package/dist/autoconsent.playwright.js +0 -14
- package/dist/types/web.d.ts +0 -1
- package/lib/web.ts +0 -19
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v14.93.0 (Wed Jun 10 2026)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- Disable per-rule performance measurement [#1389](https://github.com/duckduckgo/autoconsent/pull/1389) ([@sammacbeth](https://github.com/sammacbeth))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v14.92.0 (Tue Jun 09 2026)
|
|
2
14
|
|
|
3
15
|
#### 🚀 Enhancement
|
|
@@ -3498,10 +3498,7 @@
|
|
|
3498
3498
|
];
|
|
3499
3499
|
const runDetectCmp = async (cmp) => {
|
|
3500
3500
|
try {
|
|
3501
|
-
this.config.performanceLoggingEnabled && performance.mark(`detectCmp_${cmp.name}`);
|
|
3502
3501
|
const result = await cmp.detectCmp();
|
|
3503
|
-
this.config.performanceLoggingEnabled && performance.mark(`detectCmpEnd_${cmp.name}`);
|
|
3504
|
-
this.config.performanceLoggingEnabled && performance.measure(`detectCmp_${cmp.name}`, `detectCmp_${cmp.name}`, `detectCmpEnd_${cmp.name}`);
|
|
3505
3502
|
if (result) {
|
|
3506
3503
|
logsConfig.lifecycle && console.log(`Found CMP: ${cmp.name} ${window.location.href}`);
|
|
3507
3504
|
this.sendContentMessage({
|
|
@@ -3829,17 +3826,6 @@
|
|
|
3829
3826
|
parseDeclarativeRules: getRoundedPerformanceEntries("parseDeclarativeRules")
|
|
3830
3827
|
};
|
|
3831
3828
|
}
|
|
3832
|
-
measureDetailedRulePerformance() {
|
|
3833
|
-
const cmpPerformance = performance.getEntriesByType("measure").filter((m) => m.name.startsWith("detectCmp_")).reduce((acc, m) => {
|
|
3834
|
-
const k = m.name.slice(10);
|
|
3835
|
-
if (!acc[k]) {
|
|
3836
|
-
acc[k] = 0;
|
|
3837
|
-
}
|
|
3838
|
-
acc[k] += m.duration;
|
|
3839
|
-
return acc;
|
|
3840
|
-
}, /* @__PURE__ */ Object.create(null));
|
|
3841
|
-
return cmpPerformance;
|
|
3842
|
-
}
|
|
3843
3829
|
};
|
|
3844
3830
|
|
|
3845
3831
|
// addon/content.ts
|
|
@@ -3498,10 +3498,7 @@
|
|
|
3498
3498
|
];
|
|
3499
3499
|
const runDetectCmp = async (cmp) => {
|
|
3500
3500
|
try {
|
|
3501
|
-
this.config.performanceLoggingEnabled && performance.mark(`detectCmp_${cmp.name}`);
|
|
3502
3501
|
const result = await cmp.detectCmp();
|
|
3503
|
-
this.config.performanceLoggingEnabled && performance.mark(`detectCmpEnd_${cmp.name}`);
|
|
3504
|
-
this.config.performanceLoggingEnabled && performance.measure(`detectCmp_${cmp.name}`, `detectCmp_${cmp.name}`, `detectCmpEnd_${cmp.name}`);
|
|
3505
3502
|
if (result) {
|
|
3506
3503
|
logsConfig.lifecycle && console.log(`Found CMP: ${cmp.name} ${window.location.href}`);
|
|
3507
3504
|
this.sendContentMessage({
|
|
@@ -3829,17 +3826,6 @@
|
|
|
3829
3826
|
parseDeclarativeRules: getRoundedPerformanceEntries("parseDeclarativeRules")
|
|
3830
3827
|
};
|
|
3831
3828
|
}
|
|
3832
|
-
measureDetailedRulePerformance() {
|
|
3833
|
-
const cmpPerformance = performance.getEntriesByType("measure").filter((m) => m.name.startsWith("detectCmp_")).reduce((acc, m) => {
|
|
3834
|
-
const k = m.name.slice(10);
|
|
3835
|
-
if (!acc[k]) {
|
|
3836
|
-
acc[k] = 0;
|
|
3837
|
-
}
|
|
3838
|
-
acc[k] += m.duration;
|
|
3839
|
-
return acc;
|
|
3840
|
-
}, /* @__PURE__ */ Object.create(null));
|
|
3841
|
-
return cmpPerformance;
|
|
3842
|
-
}
|
|
3843
3829
|
};
|
|
3844
3830
|
|
|
3845
3831
|
// addon/content.ts
|
package/dist/autoconsent.cjs.js
CHANGED
|
@@ -3766,10 +3766,7 @@ var AutoConsent = class {
|
|
|
3766
3766
|
];
|
|
3767
3767
|
const runDetectCmp = async (cmp) => {
|
|
3768
3768
|
try {
|
|
3769
|
-
this.config.performanceLoggingEnabled && performance.mark(`detectCmp_${cmp.name}`);
|
|
3770
3769
|
const result = await cmp.detectCmp();
|
|
3771
|
-
this.config.performanceLoggingEnabled && performance.mark(`detectCmpEnd_${cmp.name}`);
|
|
3772
|
-
this.config.performanceLoggingEnabled && performance.measure(`detectCmp_${cmp.name}`, `detectCmp_${cmp.name}`, `detectCmpEnd_${cmp.name}`);
|
|
3773
3770
|
if (result) {
|
|
3774
3771
|
logsConfig.lifecycle && console.log(`Found CMP: ${cmp.name} ${window.location.href}`);
|
|
3775
3772
|
this.sendContentMessage({
|
|
@@ -4097,17 +4094,6 @@ var AutoConsent = class {
|
|
|
4097
4094
|
parseDeclarativeRules: getRoundedPerformanceEntries("parseDeclarativeRules")
|
|
4098
4095
|
};
|
|
4099
4096
|
}
|
|
4100
|
-
measureDetailedRulePerformance() {
|
|
4101
|
-
const cmpPerformance = performance.getEntriesByType("measure").filter((m) => m.name.startsWith("detectCmp_")).reduce((acc, m) => {
|
|
4102
|
-
const k = m.name.slice(10);
|
|
4103
|
-
if (!acc[k]) {
|
|
4104
|
-
acc[k] = 0;
|
|
4105
|
-
}
|
|
4106
|
-
acc[k] += m.duration;
|
|
4107
|
-
return acc;
|
|
4108
|
-
}, /* @__PURE__ */ Object.create(null));
|
|
4109
|
-
return cmpPerformance;
|
|
4110
|
-
}
|
|
4111
4097
|
};
|
|
4112
4098
|
_config = new WeakMap();
|
|
4113
4099
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/autoconsent.esm.js
CHANGED
|
@@ -3736,10 +3736,7 @@ var AutoConsent = class {
|
|
|
3736
3736
|
];
|
|
3737
3737
|
const runDetectCmp = async (cmp) => {
|
|
3738
3738
|
try {
|
|
3739
|
-
this.config.performanceLoggingEnabled && performance.mark(`detectCmp_${cmp.name}`);
|
|
3740
3739
|
const result = await cmp.detectCmp();
|
|
3741
|
-
this.config.performanceLoggingEnabled && performance.mark(`detectCmpEnd_${cmp.name}`);
|
|
3742
|
-
this.config.performanceLoggingEnabled && performance.measure(`detectCmp_${cmp.name}`, `detectCmp_${cmp.name}`, `detectCmpEnd_${cmp.name}`);
|
|
3743
3740
|
if (result) {
|
|
3744
3741
|
logsConfig.lifecycle && console.log(`Found CMP: ${cmp.name} ${window.location.href}`);
|
|
3745
3742
|
this.sendContentMessage({
|
|
@@ -4067,17 +4064,6 @@ var AutoConsent = class {
|
|
|
4067
4064
|
parseDeclarativeRules: getRoundedPerformanceEntries("parseDeclarativeRules")
|
|
4068
4065
|
};
|
|
4069
4066
|
}
|
|
4070
|
-
measureDetailedRulePerformance() {
|
|
4071
|
-
const cmpPerformance = performance.getEntriesByType("measure").filter((m) => m.name.startsWith("detectCmp_")).reduce((acc, m) => {
|
|
4072
|
-
const k = m.name.slice(10);
|
|
4073
|
-
if (!acc[k]) {
|
|
4074
|
-
acc[k] = 0;
|
|
4075
|
-
}
|
|
4076
|
-
acc[k] += m.duration;
|
|
4077
|
-
return acc;
|
|
4078
|
-
}, /* @__PURE__ */ Object.create(null));
|
|
4079
|
-
return cmpPerformance;
|
|
4080
|
-
}
|
|
4081
4067
|
};
|
|
4082
4068
|
_config = new WeakMap();
|
|
4083
4069
|
export {
|
|
@@ -14764,10 +14764,7 @@ var AutoConsent = class {
|
|
|
14764
14764
|
];
|
|
14765
14765
|
const runDetectCmp = async (cmp) => {
|
|
14766
14766
|
try {
|
|
14767
|
-
this.config.performanceLoggingEnabled && performance.mark(`detectCmp_${cmp.name}`);
|
|
14768
14767
|
const result = await cmp.detectCmp();
|
|
14769
|
-
this.config.performanceLoggingEnabled && performance.mark(`detectCmpEnd_${cmp.name}`);
|
|
14770
|
-
this.config.performanceLoggingEnabled && performance.measure(`detectCmp_${cmp.name}`, `detectCmp_${cmp.name}`, `detectCmpEnd_${cmp.name}`);
|
|
14771
14768
|
if (result) {
|
|
14772
14769
|
logsConfig.lifecycle && console.log(`Found CMP: ${cmp.name} ${window.location.href}`);
|
|
14773
14770
|
this.sendContentMessage({
|
|
@@ -15095,17 +15092,6 @@ var AutoConsent = class {
|
|
|
15095
15092
|
parseDeclarativeRules: getRoundedPerformanceEntries("parseDeclarativeRules")
|
|
15096
15093
|
};
|
|
15097
15094
|
}
|
|
15098
|
-
measureDetailedRulePerformance() {
|
|
15099
|
-
const cmpPerformance = performance.getEntriesByType("measure").filter((m) => m.name.startsWith("detectCmp_")).reduce((acc, m) => {
|
|
15100
|
-
const k = m.name.slice(10);
|
|
15101
|
-
if (!acc[k]) {
|
|
15102
|
-
acc[k] = 0;
|
|
15103
|
-
}
|
|
15104
|
-
acc[k] += m.duration;
|
|
15105
|
-
return acc;
|
|
15106
|
-
}, /* @__PURE__ */ Object.create(null));
|
|
15107
|
-
return cmpPerformance;
|
|
15108
|
-
}
|
|
15109
15095
|
};
|
|
15110
15096
|
_config = new WeakMap();
|
|
15111
15097
|
|
|
@@ -14698,10 +14698,7 @@ var AutoConsent = class {
|
|
|
14698
14698
|
];
|
|
14699
14699
|
const runDetectCmp = async (cmp) => {
|
|
14700
14700
|
try {
|
|
14701
|
-
this.config.performanceLoggingEnabled && performance.mark(`detectCmp_${cmp.name}`);
|
|
14702
14701
|
const result = await cmp.detectCmp();
|
|
14703
|
-
this.config.performanceLoggingEnabled && performance.mark(`detectCmpEnd_${cmp.name}`);
|
|
14704
|
-
this.config.performanceLoggingEnabled && performance.measure(`detectCmp_${cmp.name}`, `detectCmp_${cmp.name}`, `detectCmpEnd_${cmp.name}`);
|
|
14705
14702
|
if (result) {
|
|
14706
14703
|
logsConfig.lifecycle && console.log(`Found CMP: ${cmp.name} ${window.location.href}`);
|
|
14707
14704
|
this.sendContentMessage({
|
|
@@ -15029,17 +15026,6 @@ var AutoConsent = class {
|
|
|
15029
15026
|
parseDeclarativeRules: getRoundedPerformanceEntries("parseDeclarativeRules")
|
|
15030
15027
|
};
|
|
15031
15028
|
}
|
|
15032
|
-
measureDetailedRulePerformance() {
|
|
15033
|
-
const cmpPerformance = performance.getEntriesByType("measure").filter((m) => m.name.startsWith("detectCmp_")).reduce((acc, m) => {
|
|
15034
|
-
const k = m.name.slice(10);
|
|
15035
|
-
if (!acc[k]) {
|
|
15036
|
-
acc[k] = 0;
|
|
15037
|
-
}
|
|
15038
|
-
acc[k] += m.duration;
|
|
15039
|
-
return acc;
|
|
15040
|
-
}, /* @__PURE__ */ Object.create(null));
|
|
15041
|
-
return cmpPerformance;
|
|
15042
|
-
}
|
|
15043
15029
|
};
|
|
15044
15030
|
_config = new WeakMap();
|
|
15045
15031
|
|
|
@@ -3506,10 +3506,7 @@
|
|
|
3506
3506
|
];
|
|
3507
3507
|
const runDetectCmp = async (cmp) => {
|
|
3508
3508
|
try {
|
|
3509
|
-
this.config.performanceLoggingEnabled && performance.mark(`detectCmp_${cmp.name}`);
|
|
3510
3509
|
const result = await cmp.detectCmp();
|
|
3511
|
-
this.config.performanceLoggingEnabled && performance.mark(`detectCmpEnd_${cmp.name}`);
|
|
3512
|
-
this.config.performanceLoggingEnabled && performance.measure(`detectCmp_${cmp.name}`, `detectCmp_${cmp.name}`, `detectCmpEnd_${cmp.name}`);
|
|
3513
3510
|
if (result) {
|
|
3514
3511
|
logsConfig.lifecycle && console.log(`Found CMP: ${cmp.name} ${window.location.href}`);
|
|
3515
3512
|
this.sendContentMessage({
|
|
@@ -3837,17 +3834,6 @@
|
|
|
3837
3834
|
parseDeclarativeRules: getRoundedPerformanceEntries("parseDeclarativeRules")
|
|
3838
3835
|
};
|
|
3839
3836
|
}
|
|
3840
|
-
measureDetailedRulePerformance() {
|
|
3841
|
-
const cmpPerformance = performance.getEntriesByType("measure").filter((m) => m.name.startsWith("detectCmp_")).reduce((acc, m) => {
|
|
3842
|
-
const k = m.name.slice(10);
|
|
3843
|
-
if (!acc[k]) {
|
|
3844
|
-
acc[k] = 0;
|
|
3845
|
-
}
|
|
3846
|
-
acc[k] += m.duration;
|
|
3847
|
-
return acc;
|
|
3848
|
-
}, /* @__PURE__ */ Object.create(null));
|
|
3849
|
-
return cmpPerformance;
|
|
3850
|
-
}
|
|
3851
3837
|
};
|
|
3852
3838
|
_config = new WeakMap();
|
|
3853
3839
|
|
package/dist/types/web.d.ts
CHANGED
package/lib/web.ts
CHANGED
|
@@ -304,11 +304,7 @@ export default class AutoConsent {
|
|
|
304
304
|
];
|
|
305
305
|
const runDetectCmp = async (cmp: AutoCMP) => {
|
|
306
306
|
try {
|
|
307
|
-
this.config.performanceLoggingEnabled && performance.mark(`detectCmp_${cmp.name}`);
|
|
308
307
|
const result = await cmp.detectCmp();
|
|
309
|
-
this.config.performanceLoggingEnabled && performance.mark(`detectCmpEnd_${cmp.name}`);
|
|
310
|
-
this.config.performanceLoggingEnabled &&
|
|
311
|
-
performance.measure(`detectCmp_${cmp.name}`, `detectCmp_${cmp.name}`, `detectCmpEnd_${cmp.name}`);
|
|
312
308
|
if (result) {
|
|
313
309
|
logsConfig.lifecycle && console.log(`Found CMP: ${cmp.name} ${window.location.href}`);
|
|
314
310
|
this.sendContentMessage({
|
|
@@ -701,19 +697,4 @@ export default class AutoConsent {
|
|
|
701
697
|
parseDeclarativeRules: getRoundedPerformanceEntries('parseDeclarativeRules'),
|
|
702
698
|
};
|
|
703
699
|
}
|
|
704
|
-
|
|
705
|
-
measureDetailedRulePerformance() {
|
|
706
|
-
const cmpPerformance: Record<string, number> = performance
|
|
707
|
-
.getEntriesByType('measure')
|
|
708
|
-
.filter((m) => m.name.startsWith('detectCmp_'))
|
|
709
|
-
.reduce((acc, m) => {
|
|
710
|
-
const k = m.name.slice(10);
|
|
711
|
-
if (!acc[k]) {
|
|
712
|
-
acc[k] = 0;
|
|
713
|
-
}
|
|
714
|
-
acc[k] += m.duration;
|
|
715
|
-
return acc;
|
|
716
|
-
}, Object.create(null));
|
|
717
|
-
return cmpPerformance;
|
|
718
|
-
}
|
|
719
700
|
}
|