Skip to content

Commit b901e4c

Browse files
Merge branch 'development' into feat/SQDSDKS-6940-tiktok-partner-id
2 parents c743c0e + 62c7707 commit b901e4c

File tree

12 files changed

+135
-38
lines changed

12 files changed

+135
-38
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Auto respond and close issue
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
8+
jobs:
9+
auto-respond-and-close-issue:
10+
uses: mparticle/mparticle-workflows/.github/workflows/auto-respond-close-issue.yml@main
11+
with:
12+
issue_number: ${{ github.event.issue.number }}
13+
repository: ${{ github.repository }}
14+
user_login: ${{ github.event.issue.user.login }}

.github/workflows/pull-request.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: NPM install
1919
uses: actions/setup-node@v3
2020
with:
21-
node-version: 16.x
21+
node-version: latest
2222

2323
- name: Run NPM CI
2424
run: npm ci
@@ -55,7 +55,7 @@ jobs:
5555
runs-on: 'ubuntu-latest'
5656
strategy:
5757
matrix:
58-
node-version: [16.x, 17.x, 18.x, 19.x, 20.x]
58+
node-version: [18.x, 19.x, 20.x, 21.x, 22.x, 23.x]
5959
steps:
6060
- name: Checkout
6161
uses: actions/checkout@v3
@@ -107,7 +107,7 @@ jobs:
107107
- name: NPM install
108108
uses: actions/setup-node@v3
109109
with:
110-
node-version: 16.x
110+
node-version: latest
111111

112112
- name: Run NPM CI
113113
run: npm ci
@@ -224,7 +224,7 @@ jobs:
224224
- name: NPM install
225225
uses: actions/setup-node@v3
226226
with:
227-
node-version: 16.x
227+
node-version: latest
228228

229229
- name: Run NPM CI
230230
run: npm ci
@@ -275,7 +275,7 @@ jobs:
275275
- name: NPM install
276276
uses: actions/setup-node@v3
277277
with:
278-
node-version: 16.x
278+
node-version: latest
279279

280280
- name: Compress Bundle
281281
run: npm run bundle

.github/workflows/release.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: NPM install
2929
uses: actions/setup-node@v3
3030
with:
31-
node-version: 16.x
31+
node-version: latest
3232

3333
- name: Run NPM CI
3434
run: npm ci
@@ -57,17 +57,14 @@ jobs:
5757
test-jest:
5858
name: 'Test Jest'
5959
runs-on: 'ubuntu-latest'
60-
strategy:
61-
matrix:
62-
node-version: [16.x, 17.x, 18.x, 19.x, 20.x]
6360
steps:
6461
- name: Checkout
6562
uses: actions/checkout@v3
6663

6764
- name: NPM install
6865
uses: actions/setup-node@v3
6966
with:
70-
node-version: ${{ matrix.node-version }}
67+
node-version: latest
7168

7269
- name: Run NPM CI
7370
run: npm ci
@@ -111,7 +108,7 @@ jobs:
111108
- name: NPM install
112109
uses: actions/setup-node@v3
113110
with:
114-
node-version: 16.x
111+
node-version: latest
115112

116113
- name: Run NPM CI
117114
run: npm ci
@@ -272,7 +269,7 @@ jobs:
272269
- name: Setup Node.js
273270
uses: actions/setup-node@v3
274271
with:
275-
node-version: 16.x
272+
node-version: latest
276273

277274
- name: Install dependencies
278275
run: npm ci

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## [2.31.1](https://github.com/mParticle/mparticle-web-sdk/compare/v2.31.0...v2.31.1) (2025-01-06)
2+
3+
4+
### Bug Fixes
5+
6+
* Check for uploader to prevent errors when calling upload() too early ([#938](https://github.com/mParticle/mparticle-web-sdk/issues/938)) ([4342b0a](https://github.com/mParticle/mparticle-web-sdk/commit/4342b0a6f9089d8694686afa48e1f46906398997))
7+
* Forward user attributes to kits properly when kit blocking is enabled and unplanned UAs are allowed ([#947](https://github.com/mParticle/mparticle-web-sdk/issues/947)) ([fdbc6ba](https://github.com/mParticle/mparticle-web-sdk/commit/fdbc6baf509f4816bcc835e1b5b7105d40faa05e))
8+
9+
# [2.31.0](https://github.com/mParticle/mparticle-web-sdk/compare/v2.30.4...v2.31.0) (2024-12-11)
10+
11+
12+
### Features
13+
14+
* Add support for Google Click Ids ([#955](https://github.com/mParticle/mparticle-web-sdk/issues/955)) ([#957](https://github.com/mParticle/mparticle-web-sdk/issues/957)) ([3df8d84](https://github.com/mParticle/mparticle-web-sdk/commit/3df8d8435129874bbf0f1a9daf1e7772843c5442))
15+
116
## [2.30.4](https://github.com/mParticle/mparticle-web-sdk/compare/v2.30.3...v2.30.4) (2024-11-05)
217

318

dist/mparticle.common.js

Lines changed: 10 additions & 4 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: 10 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mparticle.js

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ var mParticle = (function () {
393393
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
394394
};
395395

396-
var version = "2.30.4";
396+
var version = "2.31.1";
397397

398398
var Constants = {
399399
sdkVersion: version,
@@ -8885,15 +8885,21 @@ var mParticle = (function () {
88858885
if (!this.blockUserAttributes) {
88868886
return false;
88878887
}
8888-
if (this.blockUserAttributes) {
8889-
var matchedAttributes = this.dataPlanMatchLookups['user_attributes'];
8890-
if (matchedAttributes === true) {
8888+
var matchedAttributes = this.dataPlanMatchLookups['user_attributes'];
8889+
// When additionalProperties is set to true, matchedAttributes
8890+
// will be a boolean, otherwise it will return an object
8891+
if (typeof matchedAttributes === 'boolean' && matchedAttributes) {
8892+
return false;
8893+
}
8894+
if (_typeof$1(matchedAttributes) === "object") {
8895+
if (matchedAttributes[key] === true) {
88918896
return false;
8892-
}
8893-
if (!matchedAttributes[key]) {
8897+
} else {
88948898
return true;
88958899
}
88968900
}
8901+
// When "Block unplanned user attributes" is enabled and "Allow unplanned user
8902+
// attributes" is also enabled in the UI, allowing unplanned user attributes will be prioritized
88978903
return false;
88988904
};
88998905
KitBlocker.prototype.isIdentityBlocked = function (key) {
@@ -9242,6 +9248,7 @@ var mParticle = (function () {
92429248
return "fb.".concat(subdomainIndex, ".").concat(_timestamp, ".").concat(clickId);
92439249
};
92449250
var integrationMapping = {
9251+
// Facebook / Meta
92459252
fbclid: {
92469253
mappedKey: 'Facebook.ClickId',
92479254
processor: facebookClickIdProcessor
@@ -9251,6 +9258,16 @@ var mParticle = (function () {
92519258
},
92529259
_fbc: {
92539260
mappedKey: 'Facebook.ClickId'
9261+
},
9262+
// Google
9263+
gclid: {
9264+
mappedKey: 'GoogleEnhancedConversions.Gclid'
9265+
},
9266+
gbraid: {
9267+
mappedKey: 'GoogleEnhancedConversions.Gbraid'
9268+
},
9269+
wbraid: {
9270+
mappedKey: 'GoogleEnhancedConversions.Wbraid'
92549271
}
92559272
};
92569273
var IntegrationCapture = /** @class */function () {
@@ -9782,7 +9799,8 @@ var mParticle = (function () {
97829799
if (self._Store.webviewBridgeEnabled) {
97839800
self._NativeSdkHelpers.sendToNative(Constants.NativeSdkPaths.Upload);
97849801
} else {
9785-
self._APIClient.uploader.prepareAndUpload(false, false);
9802+
var _self$_APIClient;
9803+
(_self$_APIClient = self._APIClient) === null || _self$_APIClient === void 0 || (_self$_APIClient = _self$_APIClient.uploader) === null || _self$_APIClient === void 0 || _self$_APIClient.prepareAndUpload(false, false);
97869804
}
97879805
}
97889806
};

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.30.4",
3+
"version": "2.31.1",
44
"description": "mParticle core SDK for web applications",
55
"license": "Apache-2.0",
66
"keywords": [

src/integrationCapture.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,18 @@ const integrationMapping: IntegrationIdMapping = {
108108
mappedKey: 'tiktok_cookie_id',
109109
output: IntegrationOutputs.PARTNER_IDENTITIES,
110110
},
111+
112+
// Google
113+
gclid: {
114+
mappedKey: 'GoogleEnhancedConversions.Gclid',
115+
},
116+
gbraid: {
117+
mappedKey: 'GoogleEnhancedConversions.Gbraid',
118+
},
119+
wbraid: {
120+
mappedKey: 'GoogleEnhancedConversions.Wbraid',
121+
},
122+
111123
};
112124

113125
export default class IntegrationCapture {

0 commit comments

Comments
 (0)