Skip to content

Commit 3b71e0f

Browse files
authored
Merge pull request #63 from adjust/v572
Version 5.7.2
2 parents 871175d + 529858c commit 3b71e0f

12 files changed

+58
-47
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
### Version 5.7.2 (11th March 2025)
2+
#### Fixed
3+
- Fixed an issue with update `installed` flag in SDK data when `setReferrer` method called.
4+
- Fixed an issue where failed network requests were not indicated.
5+
6+
---
7+
18
### Version 5.7.1 (20th September 2024)
29
#### Fixed
310
- Type definitions for ThirdPartySharing.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.7.1
1+
5.7.2

dist/INTEGRITY

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sha384-WE6fJqvcE0mjcC/fPYooIQAOhsHpTDVYjC52i6Asn3LECEpjHyI5zUwD8/5esthg
1+
sha384-3BJePftWPBpqzii4G4Z1wjO/OaXCIpqAZ/4hbIB8KGBvrmSwZQLUflAaqRa2poWO

dist/adjust-latest.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ function isLocalStorageSupported() /*: boolean*/{
401401
|}*/
402402
var Globals = {
403403
namespace: "adjust-sdk" || 0,
404-
version: "5.7.0" || 0,
404+
version: "5.7.2" || 0,
405405
env: "production"
406406
};
407407
/* harmony default export */ const globals = (Globals);
@@ -5291,7 +5291,9 @@ function _continue(result /*: HttpSuccessResponseT | HttpErrorResponseT*/, finis
52915291
return storage.getFirst(queue_storeName).then(function (pending) {
52925292
return pending ? storage.deleteItem(queue_storeName, pending.timestamp) : null;
52935293
}).then(function () {
5294-
finish();
5294+
var _result$response;
5295+
var isError = result.status === 'error' || ((_result$response = result.response) === null || _result$response === void 0 ? void 0 : _result$response.error);
5296+
finish(isError);
52955297
_current.running = false;
52965298
return run({
52975299
wait: wait
@@ -5836,8 +5838,9 @@ function _handleSessionRequestFinish(e /*: string*/, result /*: HttpSuccessRespo
58365838
return;
58375839
}
58385840
activity_state.updateInstalled();
5839-
publish('sdk:installed');
5840-
return persist();
5841+
return persist().then(function () {
5842+
return publish('sdk:installed');
5843+
});
58415844
}
58425845

58435846
/**
@@ -6572,6 +6575,7 @@ var _isStarted /*: boolean*/ = false;
65726575
* @private
65736576
*/
65746577
var _isInstalled /*: boolean*/ = false;
6578+
var _installationCallbackId /*: string*/ = null;
65756579

65766580
/**
65776581
* Initiate the instance with parameters
@@ -6952,7 +6956,7 @@ function main_continue(activityState /*: ActivityStateMapT*/) /*: Promise<void>*
69526956
function _handleSdkInstalled() {
69536957
_isInstalled = true;
69546958
flush();
6955-
unsubscribe('sdk:installed');
6959+
unsubscribe(_installationCallbackId);
69566960
}
69576961

69586962
/**
@@ -7001,7 +7005,7 @@ function _start(options /*: InitOptionsT*/) /*: void*/{
70017005
}
70027006
sdk_config.set(options);
70037007
register();
7004-
subscribe('sdk:installed', _handleSdkInstalled);
7008+
_installationCallbackId = subscribe('sdk:installed', _handleSdkInstalled);
70057009
subscribe('sdk:shutdown', function () {
70067010
return _shutdown(true);
70077011
});

dist/adjust-latest.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/adjust-latest.min.js.LICENSE.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

dist/sdk.snippet-sri.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 29 additions & 25 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": "@adjustcom/adjust-web-sdk",
3-
"version": "5.7.1",
3+
"version": "5.7.2",
44
"description": "This is the guide to the Javascript SDK of Adjust™ for web sites or web apps. You can read more about Adjust™ at [adjust.com].",
55
"scripts": {
66
"build:demo": "webpack --mode production --config webpack.demo.config.js",

src/sdk/main.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ let _isStarted: boolean = false
6161
*/
6262
let _isInstalled: boolean = false
6363

64+
let _installationCallbackId: string = null
65+
6466
/**
6567
* Initiate the instance with parameters
6668
*
@@ -429,7 +431,7 @@ function _handleSdkInstalled() {
429431

430432
flush()
431433

432-
unsubscribe('sdk:installed')
434+
unsubscribe(_installationCallbackId)
433435
}
434436

435437
/**
@@ -483,7 +485,7 @@ function _start(options: InitOptionsT): void {
483485

484486
listenersRegister()
485487

486-
subscribe('sdk:installed', _handleSdkInstalled)
488+
_installationCallbackId = subscribe('sdk:installed', _handleSdkInstalled)
487489
subscribe('sdk:shutdown', () => _shutdown(true))
488490
subscribe('sdk:gdpr-forget-me', _handleGdprForgetMe)
489491
subscribe('attribution:check', (e, result) => attributionCheck(result))

0 commit comments

Comments
 (0)