Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated functions #126

Merged

Conversation

ashleysmithTTD
Copy link
Contributor

No description provided.

@@ -22,7 +22,7 @@ export class EUID extends SdkBase {
);
return EUID.cookieName;
}
static get EuidDetails(): ProductDetails {
private static get EuidDetails(): ProductDetails {
return productDetails;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be private to match the corresponding function in uid2Sdk.ts

@@ -528,14 +530,14 @@ describe('Store config UID2', () => {
const cookie = getConfigCookie();
expect(cookie).toBeInstanceOf(Object);
expect(cookie).toHaveProperty('cookieDomain');
const storageConfig = loadConfig(productDetails);
const storageConfig = getConfigStorage();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have been getConfigStorage() all along. loadConfig can return the config from local storage or the cookie, but we are testing that it is not in local storage

localStorageKey: 'EUID-sdk-identity',
cookieName: '__euid',
};

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could possibly import these product details from euidSdk.ts and same for the uid2 product details from uid2Sdk.ts instead of redefining them in multiple places - but the point is that productDetails is private and if we exported them to import in these test files, would that make them public now?

@ashleysmithTTD ashleysmithTTD changed the title Address deprecated cookie_name Remove deprecated functions Dec 17, 2024
@ashleysmithTTD ashleysmithTTD merged commit 90055b7 into main Dec 17, 2024
3 checks passed
@ashleysmithTTD ashleysmithTTD deleted the ans-UID2-4079-address-deprecated-methods-and-properties branch December 17, 2024 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants