diff --git a/package-lock.json b/package-lock.json index e3d715837..b58f3951f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@rudderstack/analytics-js-monorepo", - "version": "3.21.0", + "version": "3.22.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@rudderstack/analytics-js-monorepo", - "version": "3.21.0", + "version": "3.22.0", "hasInstallScript": true, "license": "Elastic-2.0", "workspaces": [ diff --git a/package.json b/package.json index 04d6e6197..148db5d83 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rudderstack/analytics-js-monorepo", - "version": "3.21.0", + "version": "3.22.0", "private": true, "description": "Monorepo for RudderStack Analytics JS SDK", "workspaces": [ diff --git a/packages/analytics-js-plugins/CHANGELOG.md b/packages/analytics-js-plugins/CHANGELOG.md index 2aef0f7f0..e5c2bb9e8 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.1](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-plugins@3.4.0...@rudderstack/analytics-js-plugins@3.4.1) (2024-07-22) + +### Dependency Updates + +* `@rudderstack/analytics-js` updated to version `3.4.0` ## [3.4.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-plugins@3.3.2...@rudderstack/analytics-js-plugins@3.4.0) (2024-07-19) ### Dependency Updates diff --git a/packages/analytics-js-plugins/CHANGELOG_LATEST.md b/packages/analytics-js-plugins/CHANGELOG_LATEST.md index d8f478f32..4c91d6a1f 100644 --- a/packages/analytics-js-plugins/CHANGELOG_LATEST.md +++ b/packages/analytics-js-plugins/CHANGELOG_LATEST.md @@ -1,17 +1,5 @@ -## [3.4.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-plugins@3.3.2...@rudderstack/analytics-js-plugins@3.4.0) (2024-07-19) +## [3.4.1](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-plugins@3.4.0...@rudderstack/analytics-js-plugins@3.4.1) (2024-07-22) ### Dependency Updates -* `@rudderstack/analytics-js-common` updated to version `3.3.2` -* `@rudderstack/analytics-js` updated to version `3.3.2` -* `@rudderstack/analytics-js-cookies` updated to version `3.3.2` - -### Features - -* error reporting plugin ([#1601](https://github.com/rudderlabs/rudder-sdk-js/issues/1601)) ([1f2629e](https://github.com/rudderlabs/rudder-sdk-js/commit/1f2629e594740763ce9bd54a21213b92d80ae085)) - - -### Bug Fixes - -* event API overloads ([#1782](https://github.com/rudderlabs/rudder-sdk-js/issues/1782)) ([02c5b47](https://github.com/rudderlabs/rudder-sdk-js/commit/02c5b47d0a83250fb5180e9ed467a92361663dab)) - +* `@rudderstack/analytics-js` updated to version `3.4.0` diff --git a/packages/analytics-js-plugins/package.json b/packages/analytics-js-plugins/package.json index 358fb3142..ced97c67c 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.0", + "version": "3.4.1", "private": true, "description": "RudderStack JavaScript SDK plugins", "main": "dist/npm/modern/cjs/index.cjs", diff --git a/packages/analytics-js-plugins/project.json b/packages/analytics-js-plugins/project.json index 6ea466b3d..46f7ebf2b 100644 --- a/packages/analytics-js-plugins/project.json +++ b/packages/analytics-js-plugins/project.json @@ -52,9 +52,9 @@ "github": { "executor": "@jscutlery/semver:github", "options": { - "tag": "@rudderstack/analytics-js-plugins@3.4.0", - "title": "@rudderstack/analytics-js-plugins@3.4.0", - "discussion-category": "@rudderstack/analytics-js-plugins@3.4.0", + "tag": "@rudderstack/analytics-js-plugins@3.4.1", + "title": "@rudderstack/analytics-js-plugins@3.4.1", + "discussion-category": "@rudderstack/analytics-js-plugins@3.4.1", "notesFile": "./packages/analytics-js-plugins/CHANGELOG_LATEST.md" } } diff --git a/packages/analytics-js/CHANGELOG.md b/packages/analytics-js/CHANGELOG.md index dc194d890..1af0b69a4 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.1](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js@3.7.0...@rudderstack/analytics-js@3.7.1) (2024-07-22) + + +### Bug Fixes + +* prevent default rejection handling ([#1791](https://github.com/rudderlabs/rudder-sdk-js/issues/1791)) ([025d4f6](https://github.com/rudderlabs/rudder-sdk-js/commit/025d4f606b3b04d88c8bb2710fd2e567bf639d22)) + ## [3.7.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js@3.6.1...@rudderstack/analytics-js@3.7.0) (2024-07-19) ### Dependency Updates diff --git a/packages/analytics-js/CHANGELOG_LATEST.md b/packages/analytics-js/CHANGELOG_LATEST.md index 617917eea..2c7e9bb42 100644 --- a/packages/analytics-js/CHANGELOG_LATEST.md +++ b/packages/analytics-js/CHANGELOG_LATEST.md @@ -1,17 +1,7 @@ -## [3.7.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js@3.6.1...@rudderstack/analytics-js@3.7.0) (2024-07-19) - -### Dependency Updates - -* `@rudderstack/analytics-js-cookies` updated to version `3.6.1` -* `@rudderstack/analytics-js-common` updated to version `3.6.1` -* `@rudderstack/analytics-js-plugins` updated to version `3.6.1` - -### Features - -* error reporting plugin ([#1601](https://github.com/rudderlabs/rudder-sdk-js/issues/1601)) ([1f2629e](https://github.com/rudderlabs/rudder-sdk-js/commit/1f2629e594740763ce9bd54a21213b92d80ae085)) +## [3.7.1](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js@3.7.0...@rudderstack/analytics-js@3.7.1) (2024-07-22) ### Bug Fixes -* event API overloads ([#1782](https://github.com/rudderlabs/rudder-sdk-js/issues/1782)) ([02c5b47](https://github.com/rudderlabs/rudder-sdk-js/commit/02c5b47d0a83250fb5180e9ed467a92361663dab)) +* prevent default rejection handling ([#1791](https://github.com/rudderlabs/rudder-sdk-js/issues/1791)) ([025d4f6](https://github.com/rudderlabs/rudder-sdk-js/commit/025d4f606b3b04d88c8bb2710fd2e567bf639d22)) diff --git a/packages/analytics-js/package.json b/packages/analytics-js/package.json index 88854901e..37522fd02 100644 --- a/packages/analytics-js/package.json +++ b/packages/analytics-js/package.json @@ -1,6 +1,6 @@ { "name": "@rudderstack/analytics-js", - "version": "3.7.0", + "version": "3.7.1", "description": "RudderStack JavaScript SDK", "main": "dist/npm/modern/cjs/index.cjs", "module": "dist/npm/modern/esm/index.mjs", diff --git a/packages/analytics-js/project.json b/packages/analytics-js/project.json index 93a7a1b16..0b168c319 100644 --- a/packages/analytics-js/project.json +++ b/packages/analytics-js/project.json @@ -60,9 +60,9 @@ "github": { "executor": "@jscutlery/semver:github", "options": { - "tag": "@rudderstack/analytics-js@3.7.0", - "title": "@rudderstack/analytics-js@3.7.0", - "discussion-category": "@rudderstack/analytics-js@3.7.0", + "tag": "@rudderstack/analytics-js@3.7.1", + "title": "@rudderstack/analytics-js@3.7.1", + "discussion-category": "@rudderstack/analytics-js@3.7.1", "notesFile": "./packages/analytics-js/CHANGELOG_LATEST.md" } } diff --git a/packages/analytics-js/src/services/ErrorHandler/ErrorHandler.ts b/packages/analytics-js/src/services/ErrorHandler/ErrorHandler.ts index 3f53509fc..14417c5ab 100644 --- a/packages/analytics-js/src/services/ErrorHandler/ErrorHandler.ts +++ b/packages/analytics-js/src/services/ErrorHandler/ErrorHandler.ts @@ -67,6 +67,10 @@ class ErrorHandler implements IErrorHandler { (globalThis as typeof window).addEventListener( 'unhandledrejection', (event: PromiseRejectionEvent) => { + if (!(event.reason instanceof Error)) { + // Prevent the default handling by the browser + event.preventDefault(); + } this.onError(event, undefined, undefined, undefined, ErrorType.UNHANDLEDREJECTION); }, ); diff --git a/packages/loading-scripts/CHANGELOG.md b/packages/loading-scripts/CHANGELOG.md index dad291a2d..4b876e0c8 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.18](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-loading-scripts@3.0.17...@rudderstack/analytics-js-loading-scripts@3.0.18) (2024-07-22) + +### Dependency Updates + +* `@rudderstack/analytics-js` updated to version `3.0.17` ## [3.0.17](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-loading-scripts@3.0.16...@rudderstack/analytics-js-loading-scripts@3.0.17) (2024-07-19) ### Dependency Updates diff --git a/packages/loading-scripts/CHANGELOG_LATEST.md b/packages/loading-scripts/CHANGELOG_LATEST.md index a195412b8..78ebae83a 100644 --- a/packages/loading-scripts/CHANGELOG_LATEST.md +++ b/packages/loading-scripts/CHANGELOG_LATEST.md @@ -1,10 +1,5 @@ -## [3.0.17](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-loading-scripts@3.0.16...@rudderstack/analytics-js-loading-scripts@3.0.17) (2024-07-19) +## [3.0.18](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-loading-scripts@3.0.17...@rudderstack/analytics-js-loading-scripts@3.0.18) (2024-07-22) ### Dependency Updates -* `@rudderstack/analytics-js` updated to version `3.0.16` - -### Bug Fixes - -* event API overloads ([#1782](https://github.com/rudderlabs/rudder-sdk-js/issues/1782)) ([02c5b47](https://github.com/rudderlabs/rudder-sdk-js/commit/02c5b47d0a83250fb5180e9ed467a92361663dab)) - +* `@rudderstack/analytics-js` updated to version `3.0.17` diff --git a/packages/loading-scripts/package.json b/packages/loading-scripts/package.json index 97e2c5f73..45a1be96d 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.17", + "version": "3.0.18", "private": true, "description": "Loading script for RudderStack JavaScript SDK", "main": "./src/index.js", diff --git a/packages/loading-scripts/project.json b/packages/loading-scripts/project.json index 9d536ccc0..5b6838594 100644 --- a/packages/loading-scripts/project.json +++ b/packages/loading-scripts/project.json @@ -52,9 +52,9 @@ "github": { "executor": "@jscutlery/semver:github", "options": { - "tag": "@rudderstack/analytics-js-loading-scripts@3.0.17", - "title": "@rudderstack/analytics-js-loading-scripts@3.0.17", - "discussion-category": "@rudderstack/analytics-js-loading-scripts@3.0.17", + "tag": "@rudderstack/analytics-js-loading-scripts@3.0.18", + "title": "@rudderstack/analytics-js-loading-scripts@3.0.18", + "discussion-category": "@rudderstack/analytics-js-loading-scripts@3.0.18", "notesFile": "./packages/loading-scripts/CHANGELOG_LATEST.md" } } diff --git a/packages/sanity-suite/CHANGELOG.md b/packages/sanity-suite/CHANGELOG.md index 667dab9b8..75c7e1f9a 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.8](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-sanity-suite@3.1.7...@rudderstack/analytics-js-sanity-suite@3.1.8) (2024-07-22) + +### Dependency Updates + +* `@rudderstack/analytics-js` updated to version `3.1.7` ## [3.1.7](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-sanity-suite@3.1.6...@rudderstack/analytics-js-sanity-suite@3.1.7) (2024-07-19) ### Dependency Updates diff --git a/packages/sanity-suite/package.json b/packages/sanity-suite/package.json index 2b30228de..53791a848 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.7", + "version": "3.1.8", "private": true, "description": "Sanity suite for testing JS SDK package", "main": "./dist/v3/cdn/testBook.js", diff --git a/sonar-project.properties b/sonar-project.properties index 25cbd7763..3aed8253c 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.21.0 +sonar.projectVersion=3.22.0 # Meta-data for the project sonar.links.scm=https://github.com/rudderlabs/rudder-sdk-js