Skip to content

Commit 8393291

Browse files
committed
Merge branch 'development' into feat/NI-767-create-example-app
* development: chore(release): 1.2.1 [skip ci] chore(build): Generate latest bundle [skip ci] fix: Remove sandbox mode on rokt kit (#22)
2 parents 053fa2d + fe62270 commit 8393291

5 files changed

Lines changed: 22 additions & 19 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [1.2.1](https://github.com/mparticle-integrations/mparticle-javascript-integration-rokt/compare/v1.2.0...v1.2.1) (2025-04-16)
2+
3+
4+
### Bug Fixes
5+
6+
* Remove sandbox mode on rokt kit ([#22](https://github.com/mparticle-integrations/mparticle-javascript-integration-rokt/issues/22)) ([58f8ae5](https://github.com/mparticle-integrations/mparticle-javascript-integration-rokt/commit/58f8ae5112d6d944090f7b9c336bc02b39ed227b))
7+
18
# [1.2.0](https://github.com/mparticle-integrations/mparticle-javascript-integration-rokt/compare/v1.1.0...v1.2.0) (2025-04-08)
29

310

dist/Rokt-Kit.common.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,17 @@ var constructor = function () {
3636

3737
function initForwarder(
3838
settings,
39-
service,
39+
_service,
4040
testMode,
41-
trackerId,
41+
_trackerId,
4242
filteredUserAttributes
4343
) {
4444
var accountId = settings.accountId;
45-
var sandboxMode = window.mParticle.getEnvironment() === 'development';
4645
self.userAttributes = filteredUserAttributes;
4746
self.onboardingExpProvider = settings.onboardingExpProvider;
4847

4948
if (testMode) {
50-
attachLauncher(accountId, sandboxMode);
49+
attachLauncher(accountId);
5150
return;
5251
}
5352

@@ -68,7 +67,7 @@ var constructor = function () {
6867
typeof window.Rokt.createLauncher === 'function' &&
6968
window.Rokt.currentLauncher === undefined
7069
) {
71-
attachLauncher(accountId, sandboxMode);
70+
attachLauncher(accountId);
7271
} else {
7372
console.error(
7473
'Rokt object is not available after script load.'
@@ -155,16 +154,15 @@ var constructor = function () {
155154
delete self.userAttributes[key];
156155
}
157156

158-
function attachLauncher(accountId, sandboxMode) {
157+
function attachLauncher(accountId) {
159158
window.Rokt.createLauncher({
160159
accountId: accountId,
161-
sandbox: sandboxMode,
162160
integrationName:
163161
'mParticle_' +
164162
'wsdkv_' +
165163
window.mParticle.getVersion() +
166164
'_kitv_' +
167-
"1.2.0",
165+
"1.2.1",
168166
})
169167
.then(function (launcher) {
170168
// Assign the launcher to a global variable for later access

dist/Rokt-Kit.iife.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,17 @@ var RoktKit = (function (exports) {
3535

3636
function initForwarder(
3737
settings,
38-
service,
38+
_service,
3939
testMode,
40-
trackerId,
40+
_trackerId,
4141
filteredUserAttributes
4242
) {
4343
var accountId = settings.accountId;
44-
var sandboxMode = window.mParticle.getEnvironment() === 'development';
4544
self.userAttributes = filteredUserAttributes;
4645
self.onboardingExpProvider = settings.onboardingExpProvider;
4746

4847
if (testMode) {
49-
attachLauncher(accountId, sandboxMode);
48+
attachLauncher(accountId);
5049
return;
5150
}
5251

@@ -67,7 +66,7 @@ var RoktKit = (function (exports) {
6766
typeof window.Rokt.createLauncher === 'function' &&
6867
window.Rokt.currentLauncher === undefined
6968
) {
70-
attachLauncher(accountId, sandboxMode);
69+
attachLauncher(accountId);
7170
} else {
7271
console.error(
7372
'Rokt object is not available after script load.'
@@ -154,16 +153,15 @@ var RoktKit = (function (exports) {
154153
delete self.userAttributes[key];
155154
}
156155

157-
function attachLauncher(accountId, sandboxMode) {
156+
function attachLauncher(accountId) {
158157
window.Rokt.createLauncher({
159158
accountId: accountId,
160-
sandbox: sandboxMode,
161159
integrationName:
162160
'mParticle_' +
163161
'wsdkv_' +
164162
window.mParticle.getVersion() +
165163
'_kitv_' +
166-
"1.2.0",
164+
"1.2.1",
167165
})
168166
.then(function (launcher) {
169167
// Assign the launcher to a global variable for later access

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-rokt-kit",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "mParticle integration kit for Rokt",
55
"main": "dist/Rokt-Kit.common.js",
66
"files": [

0 commit comments

Comments
 (0)