Skip to content

Commit 03e77b6

Browse files
Bump the content-scope-scripts group across 1 directory with 2 updates (#3473)
* Bump the content-scope-scripts group across 1 directory with 2 updates Bumps the content-scope-scripts group with 2 updates in the / directory: [@duckduckgo/content-scope-scripts](https://github.com/duckduckgo/content-scope-scripts) and [@duckduckgo/privacy-configuration](https://github.com/duckduckgo/privacy-configuration). Updates `@duckduckgo/content-scope-scripts` from 13.34.0 to 17.10.0 - [Release notes](https://github.com/duckduckgo/content-scope-scripts/releases) - [Commits](duckduckgo/content-scope-scripts@01571a9...4481961) Updates `@duckduckgo/privacy-configuration` from `96d6905` to `8d35468` - [Release notes](https://github.com/duckduckgo/privacy-configuration/releases) - [Commits](duckduckgo/privacy-configuration@96d6905...8d35468) --- updated-dependencies: - dependency-name: "@duckduckgo/content-scope-scripts" dependency-version: 4493d5fc34bf9259f4ca93fde59806fc920d21df dependency-type: direct:production dependency-group: content-scope-scripts - dependency-name: "@duckduckgo/privacy-configuration" dependency-version: a8317c66a6ae14f212d81e791ec52db72336b9db dependency-type: direct:development dependency-group: content-scope-scripts ... Signed-off-by: dependabot[bot] <support@github.com> * Fix tsc error from updated privacy-configuration schema types The bumped @duckduckgo/privacy-configuration schema now types `features.contentBlocking` as optional in ConfigV5, so `tsc` fails on `features[CONTENT_BLOCKING].features` in TDSStorage.checkShouldOverrideTDS (TS2532), which broke the `lint (ubuntu-latest)` CI job. Add an optional chain; this also avoids a runtime TypeError if a remote config ever omits the contentBlocking feature. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PzL28Fhypuafy3ispo465F --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
1 parent 93f4354 commit 03e77b6

3 files changed

Lines changed: 193 additions & 39 deletions

File tree

‎package-lock.json‎

Lines changed: 191 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"dependencies": {
7070
"@duckduckgo/autoconsent": "^16.34.0",
7171
"@duckduckgo/autofill": "github:duckduckgo/duckduckgo-autofill#17.0.1",
72-
"@duckduckgo/content-scope-scripts": "github:duckduckgo/content-scope-scripts#13.34.0",
72+
"@duckduckgo/content-scope-scripts": "github:duckduckgo/content-scope-scripts#17.10.0",
7373
"@duckduckgo/ddg2dnr": "file:packages/ddg2dnr",
7474
"@duckduckgo/jsbloom": "^1.0.2",
7575
"@duckduckgo/privacy-dashboard": "github:duckduckgo/privacy-dashboard#9.10.1",

‎shared/js/background/components/tds.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default class TDSStorage {
6161
}
6262

6363
checkShouldOverrideTDS() {
64-
const contentBlockingSubFeatures = this.config.config?.features[CONTENT_BLOCKING].features || {};
64+
const contentBlockingSubFeatures = this.config.config?.features[CONTENT_BLOCKING]?.features || {};
6565
const enabledBlocklistOverrides = Object.keys(contentBlockingSubFeatures).filter(
6666
(k) => k.startsWith('TDS') && this.config.isSubFeatureEnabled(CONTENT_BLOCKING, k),
6767
);

0 commit comments

Comments
 (0)