Skip to content

Commit d6ccdfa

Browse files
authored
Merge branch 'development' into fix/SQDSDKS-7619-compare-emailsha256-with-other
2 parents 64da1e4 + ca4a655 commit d6ccdfa

36 files changed

+954
-1441
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
## [2.47.1](https://github.com/mParticle/mparticle-web-sdk/compare/v2.47.0...v2.47.1) (2025-10-06)
2+
3+
# [2.47.0](https://github.com/mParticle/mparticle-web-sdk/compare/v2.46.0...v2.47.0) (2025-10-01)
4+
5+
6+
### Bug Fixes
7+
8+
* SDKE-317 Call deferred methods on Rokt Manager instead of kit ([#1076](https://github.com/mParticle/mparticle-web-sdk/issues/1076)) ([3a0643b](https://github.com/mParticle/mparticle-web-sdk/commit/3a0643b13ce1d7ade12be85fa9d87ac5278fe158))
9+
10+
11+
### Features
12+
13+
* added DisabledVault to disable id-cache when noFunctional is set ([#1072](https://github.com/mParticle/mparticle-web-sdk/issues/1072)) ([8187d72](https://github.com/mParticle/mparticle-web-sdk/commit/8187d726aac79493a1a6c5891eaa23823ca7bf52))
14+
* added noFunctional in batchUploader to disable offline storage ([#1063](https://github.com/mParticle/mparticle-web-sdk/issues/1063)) ([97dd88a](https://github.com/mParticle/mparticle-web-sdk/commit/97dd88aa20938f2976552c86c6db774d4b6c1023))
15+
* disable session cookie/localStorage when noFunctional is set ([#1070](https://github.com/mParticle/mparticle-web-sdk/issues/1070)) ([edb2e61](https://github.com/mParticle/mparticle-web-sdk/commit/edb2e61825ffacd2ca0b444c4a9d730cd9c95590))
16+
* disable time tracking when noTargeting is set to true ([#1064](https://github.com/mParticle/mparticle-web-sdk/issues/1064)) ([71c891c](https://github.com/mParticle/mparticle-web-sdk/commit/71c891c703353451aaad712d2e7d25722cb9f641))
17+
118
# [2.46.0](https://github.com/mParticle/mparticle-web-sdk/compare/v2.45.0...v2.46.0) (2025-09-17)
219

320

dist/mparticle.common.js

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

dist/mparticle.esm.js

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

dist/mparticle.js

Lines changed: 98 additions & 247 deletions
Large diffs are not rendered by default.

jest.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,14 @@ module.exports = {
44
// The built mParticle.js file needs to exist for integration tests
55
setupFiles: ['./dist/mparticle.js'],
66
setupFilesAfterEnv: ['jest-expect-message'],
7+
transform: {
8+
'^.+\\.(js)$': 'ts-jest',
9+
},
10+
globals: {
11+
'ts-jest': {
12+
tsconfig: {
13+
allowJs: true,
14+
},
15+
},
16+
},
717
};

package-lock.json

Lines changed: 2 additions & 2 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
@@ -1,6 +1,6 @@
11
{
22
"name": "@mparticle/web-sdk",
3-
"version": "2.46.0",
3+
"version": "2.47.1",
44
"description": "mParticle core SDK for web applications",
55
"license": "Apache-2.0",
66
"keywords": [

src/constants.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ const Constants = {
66
platform: 'web',
77
Messages: {
88
DeprecationMessages: {
9-
MethodIsDeprecatedPostfix:
10-
'is a deprecated method and will be removed in future releases',
9+
MethodHasBeenDeprecated: 'has been deprecated.',
10+
MethodMarkedForDeprecationPostfix:
11+
'is a deprecated method and will be removed in future releases.',
1112
AlternativeMethodPrefix: 'Please use the alternate method:',
1213
},
1314
ErrorMessages: {
@@ -232,11 +233,10 @@ export const HTTP_SERVER_ERROR = 500 as const;
232233

233234
export type PrivacyControl = 'functional' | 'targeting';
234235

235-
export type StorageTypes = 'SDKState' | 'Products' | 'OfflineEvents' | 'IdentityCache' | 'TimeOnSite';
236+
export type StorageTypes = 'SDKState' | 'OfflineEvents' | 'IdentityCache' | 'TimeOnSite';
236237

237238
export const StoragePrivacyMap: Record<StorageTypes, PrivacyControl> = {
238239
SDKState: 'functional',
239-
Products: 'targeting',
240240
OfflineEvents: 'functional',
241241
IdentityCache: 'functional',
242242
TimeOnSite: 'targeting',

src/helpers.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -376,16 +376,6 @@ export default function Helpers(mpInstance) {
376376
}
377377
};
378378

379-
this.createProductStorageName = function(workspaceToken) {
380-
if (workspaceToken) {
381-
return (
382-
StorageNames.currentStorageProductsName + '_' + workspaceToken
383-
);
384-
} else {
385-
return StorageNames.currentStorageProductsName;
386-
}
387-
};
388-
389379
// TODO: Refactor SDK to directly use these methods
390380
// https://go.mparticle.com/work/SQDSDKS-5239
391381
// Utility Functions

src/identity-user-interfaces.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ export interface IdentityModifyResultBody {
115115
}
116116

117117
export interface mParticleUserCart {
118-
add(product: SDKProduct | SDKProduct[], logEvent: boolean): void;
119-
remove(product: SDKProduct | SDKProduct[], logEvent: boolean): void;
118+
add(): void;
119+
remove(): void;
120120
clear(): void;
121121
getCartProducts(): SDKProduct[];
122122
}

0 commit comments

Comments
 (0)