From 06f6a715c4aec9fb60a9cd04b3c8cf1b7b0c7216 Mon Sep 17 00:00:00 2001 From: jason Date: Sun, 25 Aug 2024 23:46:17 -0600 Subject: [PATCH 1/6] fix: explicitly set XHR to async mode (#1834) Some sites (Shopify) monkey patch a default synchronous XHR which causes RudderStack SDK to crash because it's providing a `timeout` expecting XHR to default to async mode. --- .../src/services/HttpClient/xhr/xhrRequestHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/analytics-js/src/services/HttpClient/xhr/xhrRequestHandler.ts b/packages/analytics-js/src/services/HttpClient/xhr/xhrRequestHandler.ts index d6aee3e4c..c8202d918 100644 --- a/packages/analytics-js/src/services/HttpClient/xhr/xhrRequestHandler.ts +++ b/packages/analytics-js/src/services/HttpClient/xhr/xhrRequestHandler.ts @@ -115,7 +115,7 @@ const xhrRequest = ( } }; - xhr.open(options.method, options.url); + xhr.open(options.method, options.url, true); if (options.withCredentials === true) { xhr.withCredentials = true; } From 1ef843c66abbbca094c3334d5b33b0703f01d885 Mon Sep 17 00:00:00 2001 From: GitHub actions Date: Fri, 30 Aug 2024 09:09:52 +0000 Subject: [PATCH 2/6] chore(@rudderstack/analytics-js): release version 3.7.11 --- packages/analytics-js/CHANGELOG.md | 7 +++++++ packages/analytics-js/package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/analytics-js/CHANGELOG.md b/packages/analytics-js/CHANGELOG.md index b2e2a9c95..240655728 100644 --- a/packages/analytics-js/CHANGELOG.md +++ b/packages/analytics-js/CHANGELOG.md @@ -2,6 +2,13 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [3.7.11](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js@3.7.10...@rudderstack/analytics-js@3.7.11) (2024-08-30) + + +### Bug Fixes + +* explicitly set XHR to async mode ([#1834](https://github.com/rudderlabs/rudder-sdk-js/issues/1834)) ([06f6a71](https://github.com/rudderlabs/rudder-sdk-js/commit/06f6a715c4aec9fb60a9cd04b3c8cf1b7b0c7216)) + ## [3.7.10](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js@3.7.9...@rudderstack/analytics-js@3.7.10) (2024-08-28) ### Dependency Updates diff --git a/packages/analytics-js/package.json b/packages/analytics-js/package.json index ffa2ebbb6..c18176ea5 100644 --- a/packages/analytics-js/package.json +++ b/packages/analytics-js/package.json @@ -1,6 +1,6 @@ { "name": "@rudderstack/analytics-js", - "version": "3.7.10", + "version": "3.7.11", "description": "RudderStack JavaScript SDK", "main": "dist/npm/modern/cjs/index.cjs", "module": "dist/npm/modern/esm/index.mjs", From 2bc8d493ec933f2584ed20fc4ce5182be17c7704 Mon Sep 17 00:00:00 2001 From: GitHub actions Date: Fri, 30 Aug 2024 09:09:53 +0000 Subject: [PATCH 3/6] chore(@rudderstack/analytics-js-plugins): release version 3.4.11 --- packages/analytics-js-plugins/CHANGELOG.md | 5 +++++ packages/analytics-js-plugins/package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/analytics-js-plugins/CHANGELOG.md b/packages/analytics-js-plugins/CHANGELOG.md index ba645c4c7..58c0b0c8a 100644 --- a/packages/analytics-js-plugins/CHANGELOG.md +++ b/packages/analytics-js-plugins/CHANGELOG.md @@ -2,6 +2,11 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [3.4.11](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-plugins@3.4.10...@rudderstack/analytics-js-plugins@3.4.11) (2024-08-30) + +### Dependency Updates + +* `@rudderstack/analytics-js` updated to version `3.7.11` ## [3.4.10](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-plugins@3.4.9...@rudderstack/analytics-js-plugins@3.4.10) (2024-08-28) ### Dependency Updates diff --git a/packages/analytics-js-plugins/package.json b/packages/analytics-js-plugins/package.json index d764128bc..b22cf56cb 100644 --- a/packages/analytics-js-plugins/package.json +++ b/packages/analytics-js-plugins/package.json @@ -1,6 +1,6 @@ { "name": "@rudderstack/analytics-js-plugins", - "version": "3.4.10", + "version": "3.4.11", "private": true, "description": "RudderStack JavaScript SDK plugins", "main": "dist/npm/modern/cjs/index.cjs", From 0b2ece65b9011b007bbd69c24b9984c2191bc69e Mon Sep 17 00:00:00 2001 From: GitHub actions Date: Fri, 30 Aug 2024 09:09:54 +0000 Subject: [PATCH 4/6] chore(@rudderstack/analytics-js-loading-scripts): release version 3.0.28 --- packages/loading-scripts/CHANGELOG.md | 5 +++++ packages/loading-scripts/package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/loading-scripts/CHANGELOG.md b/packages/loading-scripts/CHANGELOG.md index f1ee1f40d..e77490b4a 100644 --- a/packages/loading-scripts/CHANGELOG.md +++ b/packages/loading-scripts/CHANGELOG.md @@ -2,6 +2,11 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [3.0.28](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-loading-scripts@3.0.27...@rudderstack/analytics-js-loading-scripts@3.0.28) (2024-08-30) + +### Dependency Updates + +* `@rudderstack/analytics-js` updated to version `3.7.11` ## [3.0.27](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-loading-scripts@3.0.26...@rudderstack/analytics-js-loading-scripts@3.0.27) (2024-08-28) ### Dependency Updates diff --git a/packages/loading-scripts/package.json b/packages/loading-scripts/package.json index ef8f9ce87..f172d2d96 100644 --- a/packages/loading-scripts/package.json +++ b/packages/loading-scripts/package.json @@ -1,6 +1,6 @@ { "name": "@rudderstack/analytics-js-loading-scripts", - "version": "3.0.27", + "version": "3.0.28", "private": true, "description": "Loading script for RudderStack JavaScript SDK", "main": "./src/index.js", From 98b0f59b908ec9f02452a011e0f964f4e5eb0c2d Mon Sep 17 00:00:00 2001 From: GitHub actions Date: Fri, 30 Aug 2024 09:09:55 +0000 Subject: [PATCH 5/6] chore(@rudderstack/analytics-js-sanity-suite): release version 3.1.18 --- packages/sanity-suite/CHANGELOG.md | 5 +++++ packages/sanity-suite/package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/sanity-suite/CHANGELOG.md b/packages/sanity-suite/CHANGELOG.md index 30a2ff06d..1083f43df 100644 --- a/packages/sanity-suite/CHANGELOG.md +++ b/packages/sanity-suite/CHANGELOG.md @@ -2,6 +2,11 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [3.1.18](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-sanity-suite@3.1.17...@rudderstack/analytics-js-sanity-suite@3.1.18) (2024-08-30) + +### Dependency Updates + +* `@rudderstack/analytics-js` updated to version `3.7.11` ## [3.1.17](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-sanity-suite@3.1.16...@rudderstack/analytics-js-sanity-suite@3.1.17) (2024-08-28) ### Dependency Updates diff --git a/packages/sanity-suite/package.json b/packages/sanity-suite/package.json index a1fe3c802..170dd786c 100644 --- a/packages/sanity-suite/package.json +++ b/packages/sanity-suite/package.json @@ -1,6 +1,6 @@ { "name": "@rudderstack/analytics-js-sanity-suite", - "version": "3.1.17", + "version": "3.1.18", "private": true, "description": "Sanity suite for testing JS SDK package", "main": "./dist/v3/cdn/testBook.js", From 60fb17cac05668fd0d38278d563e1cd869629332 Mon Sep 17 00:00:00 2001 From: GitHub actions Date: Fri, 30 Aug 2024 09:10:05 +0000 Subject: [PATCH 6/6] chore(monorepo): sync versions and generate release logs --- package-lock.json | 12 ++++++------ package.json | 2 +- packages/analytics-js-plugins/CHANGELOG_LATEST.md | 11 ++--------- packages/analytics-js-plugins/project.json | 6 +++--- packages/analytics-js/CHANGELOG_LATEST.md | 9 ++------- packages/analytics-js/project.json | 6 +++--- packages/loading-scripts/CHANGELOG_LATEST.md | 4 ++-- packages/loading-scripts/project.json | 6 +++--- sonar-project.properties | 2 +- 9 files changed, 23 insertions(+), 35 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3bf24359f..72a401b9b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@rudderstack/analytics-js-monorepo", - "version": "3.32.0", + "version": "3.33.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@rudderstack/analytics-js-monorepo", - "version": "3.32.0", + "version": "3.33.0", "hasInstallScript": true, "license": "Elastic-2.0", "workspaces": [ @@ -24225,7 +24225,7 @@ }, "packages/analytics-js": { "name": "@rudderstack/analytics-js", - "version": "3.7.10", + "version": "3.7.11", "license": "Elastic-2.0", "dependencies": { "@preact/signals-core": "1.6.1", @@ -24285,7 +24285,7 @@ }, "packages/analytics-js-plugins": { "name": "@rudderstack/analytics-js-plugins", - "version": "3.4.10", + "version": "3.4.11", "license": "Elastic-2.0", "dependencies": { "@rudderstack/analytics-js-common": "*", @@ -24338,7 +24338,7 @@ }, "packages/loading-scripts": { "name": "@rudderstack/analytics-js-loading-scripts", - "version": "3.0.27", + "version": "3.0.28", "license": "Elastic-2.0", "dependencies": { "@rudderstack/analytics-js": "*" @@ -24347,7 +24347,7 @@ }, "packages/sanity-suite": { "name": "@rudderstack/analytics-js-sanity-suite", - "version": "3.1.17", + "version": "3.1.18", "license": "Elastic-2.0", "dependencies": { "@rudderstack/analytics-js": "*", diff --git a/package.json b/package.json index cb21d1e75..da7acac00 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rudderstack/analytics-js-monorepo", - "version": "3.32.0", + "version": "3.33.0", "private": true, "description": "Monorepo for RudderStack Analytics JS SDK", "workspaces": [ diff --git a/packages/analytics-js-plugins/CHANGELOG_LATEST.md b/packages/analytics-js-plugins/CHANGELOG_LATEST.md index ed3bc94ff..6923c72c3 100644 --- a/packages/analytics-js-plugins/CHANGELOG_LATEST.md +++ b/packages/analytics-js-plugins/CHANGELOG_LATEST.md @@ -1,12 +1,5 @@ -## [3.4.10](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-plugins@3.4.9...@rudderstack/analytics-js-plugins@3.4.10) (2024-08-28) +## [3.4.11](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-plugins@3.4.10...@rudderstack/analytics-js-plugins@3.4.11) (2024-08-30) ### Dependency Updates -* `@rudderstack/analytics-js-common` updated to version `3.9.1` -* `@rudderstack/analytics-js` updated to version `3.7.9` -* `@rudderstack/analytics-js-cookies` updated to version `0.3.7` - -### Bug Fixes - -* handle blur and focus events to detect page leave ([#1837](https://github.com/rudderlabs/rudder-sdk-js/issues/1837)) ([57e735c](https://github.com/rudderlabs/rudder-sdk-js/commit/57e735ced4fb51ec895fbb196b1b879996cc10dd)) - +* `@rudderstack/analytics-js` updated to version `3.7.11` diff --git a/packages/analytics-js-plugins/project.json b/packages/analytics-js-plugins/project.json index 87f6238d6..f3749300e 100644 --- a/packages/analytics-js-plugins/project.json +++ b/packages/analytics-js-plugins/project.json @@ -51,9 +51,9 @@ "github": { "executor": "@jscutlery/semver:github", "options": { - "tag": "@rudderstack/analytics-js-plugins@3.4.10", - "title": "@rudderstack/analytics-js-plugins@3.4.10", - "discussion-category": "@rudderstack/analytics-js-plugins@3.4.10", + "tag": "@rudderstack/analytics-js-plugins@3.4.11", + "title": "@rudderstack/analytics-js-plugins@3.4.11", + "discussion-category": "@rudderstack/analytics-js-plugins@3.4.11", "notesFile": "./packages/analytics-js-plugins/CHANGELOG_LATEST.md" } } diff --git a/packages/analytics-js/CHANGELOG_LATEST.md b/packages/analytics-js/CHANGELOG_LATEST.md index 31ff6606f..c3f6055c5 100644 --- a/packages/analytics-js/CHANGELOG_LATEST.md +++ b/packages/analytics-js/CHANGELOG_LATEST.md @@ -1,12 +1,7 @@ -## [3.7.10](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js@3.7.9...@rudderstack/analytics-js@3.7.10) (2024-08-28) +## [3.7.11](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js@3.7.10...@rudderstack/analytics-js@3.7.11) (2024-08-30) -### Dependency Updates - -* `@rudderstack/analytics-js-cookies` updated to version `0.3.7` -* `@rudderstack/analytics-js-common` updated to version `3.9.1` -* `@rudderstack/analytics-js-plugins` updated to version `3.4.10` ### Bug Fixes -* handle blur and focus events to detect page leave ([#1837](https://github.com/rudderlabs/rudder-sdk-js/issues/1837)) ([57e735c](https://github.com/rudderlabs/rudder-sdk-js/commit/57e735ced4fb51ec895fbb196b1b879996cc10dd)) +* explicitly set XHR to async mode ([#1834](https://github.com/rudderlabs/rudder-sdk-js/issues/1834)) ([06f6a71](https://github.com/rudderlabs/rudder-sdk-js/commit/06f6a715c4aec9fb60a9cd04b3c8cf1b7b0c7216)) diff --git a/packages/analytics-js/project.json b/packages/analytics-js/project.json index 0a74487d6..d7e7a2993 100644 --- a/packages/analytics-js/project.json +++ b/packages/analytics-js/project.json @@ -59,9 +59,9 @@ "github": { "executor": "@jscutlery/semver:github", "options": { - "tag": "@rudderstack/analytics-js@3.7.10", - "title": "@rudderstack/analytics-js@3.7.10", - "discussion-category": "@rudderstack/analytics-js@3.7.10", + "tag": "@rudderstack/analytics-js@3.7.11", + "title": "@rudderstack/analytics-js@3.7.11", + "discussion-category": "@rudderstack/analytics-js@3.7.11", "notesFile": "./packages/analytics-js/CHANGELOG_LATEST.md" } } diff --git a/packages/loading-scripts/CHANGELOG_LATEST.md b/packages/loading-scripts/CHANGELOG_LATEST.md index b0160d256..616bfb66a 100644 --- a/packages/loading-scripts/CHANGELOG_LATEST.md +++ b/packages/loading-scripts/CHANGELOG_LATEST.md @@ -1,5 +1,5 @@ -## [3.0.27](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-loading-scripts@3.0.26...@rudderstack/analytics-js-loading-scripts@3.0.27) (2024-08-28) +## [3.0.28](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-loading-scripts@3.0.27...@rudderstack/analytics-js-loading-scripts@3.0.28) (2024-08-30) ### Dependency Updates -* `@rudderstack/analytics-js` updated to version `3.7.10` +* `@rudderstack/analytics-js` updated to version `3.7.11` diff --git a/packages/loading-scripts/project.json b/packages/loading-scripts/project.json index a96c58dc9..9b6fda6c6 100644 --- a/packages/loading-scripts/project.json +++ b/packages/loading-scripts/project.json @@ -51,9 +51,9 @@ "github": { "executor": "@jscutlery/semver:github", "options": { - "tag": "@rudderstack/analytics-js-loading-scripts@3.0.27", - "title": "@rudderstack/analytics-js-loading-scripts@3.0.27", - "discussion-category": "@rudderstack/analytics-js-loading-scripts@3.0.27", + "tag": "@rudderstack/analytics-js-loading-scripts@3.0.28", + "title": "@rudderstack/analytics-js-loading-scripts@3.0.28", + "discussion-category": "@rudderstack/analytics-js-loading-scripts@3.0.28", "notesFile": "./packages/loading-scripts/CHANGELOG_LATEST.md" } } diff --git a/sonar-project.properties b/sonar-project.properties index 07f9165b7..6302c66c4 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -6,7 +6,7 @@ sonar.qualitygate.wait=false sonar.projectKey=rudderlabs_rudder-sdk-js sonar.organization=rudderlabs sonar.projectName=rudder-sdk-js -sonar.projectVersion=3.32.0 +sonar.projectVersion=3.33.0 # Meta-data for the project sonar.links.scm=https://github.com/rudderlabs/rudder-sdk-js