Skip to content

Commit c5abe48

Browse files
Remove CCPA from US as it's being deprecated.
1 parent 2c79866 commit c5abe48

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

.changeset/plain-rivers-sleep.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@guardian/libs': minor
3+
---
4+
5+
Remove CCPA stub and transitional SP config from US/MSPS/USNAT

libs/@guardian/libs/src/consent-management-platform/sourcepoint.test.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,11 @@ describe('Sourcepoint unified', () => {
4848
expect(window.__uspapi).toBeDefined();
4949
expect(window.__gpp).toBeDefined();
5050
} else if (frameworkAndCountryCode.framework == 'usnat') {
51-
expect(window._sp_.config.usnat.includeUspApi).toBeTruthy();
52-
expect(window._sp_.config.usnat.transitionCCPAAuth).toBeTruthy();
5351
expect(window._sp_.config.usnat.targetingParams.framework).toEqual(
5452
frameworkAndCountryCode.framework,
5553
);
5654
expect(window._sp_.config.gdpr).toBeUndefined;
57-
expect(window.__uspapi).toBeDefined();
55+
expect(window.__uspapi).toBeUndefined();
5856
expect(window.__tcfapi).toBeUndefined();
5957
expect(window.__gpp).toBeDefined();
6058
} else if (frameworkAndCountryCode.framework == 'aus') {

libs/@guardian/libs/src/consent-management-platform/sourcepoint.ts

-2
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,6 @@ export const init = (
294294
};
295295

296296
window._sp_.config.usnat = {
297-
includeUspApi: true,
298-
transitionCCPAAuth: true,
299297
targetingParams: {
300298
framework,
301299
},

libs/@guardian/libs/src/consent-management-platform/stub.ts

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export const loadStubsFor = (framework: ConsentFramework): void => {
1515
break;
1616
case 'usnat':
1717
stub_gpp_usnat();
18-
stub_uspapi_ccpa();
1918
break;
2019
case 'aus':
2120
stub_uspapi_ccpa();

libs/@guardian/libs/src/consent-management-platform/types/window.d.ts

-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ declare global {
5555
};
5656
};
5757
usnat?: {
58-
includeUspApi?: boolean;
59-
transitionCCPAAuth?: boolean;
6058
targetingParams?: {
6159
framework?: ConsentFramework;
6260
};

0 commit comments

Comments
 (0)