From 19961dddb05651a05f2520194ed15bfdaa213de1 Mon Sep 17 00:00:00 2001 From: GitHub actions Date: Fri, 27 Sep 2024 11:21:14 +0000 Subject: [PATCH 01/16] chore(@rudderstack/analytics-js-common): release version 3.9.3 --- packages/analytics-js-common/CHANGELOG.md | 7 +++++++ packages/analytics-js-common/package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/analytics-js-common/CHANGELOG.md b/packages/analytics-js-common/CHANGELOG.md index 92f2f110b..6c9cb2dad 100644 --- a/packages/analytics-js-common/CHANGELOG.md +++ b/packages/analytics-js-common/CHANGELOG.md @@ -2,6 +2,13 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [3.9.3](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-common@3.9.2...@rudderstack/analytics-js-common@3.9.3) (2024-09-27) + + +### Bug Fixes + +* upgrade all packages to latest to fix vulnerabilities ([#1867](https://github.com/rudderlabs/rudder-sdk-js/issues/1867)) ([389348c](https://github.com/rudderlabs/rudder-sdk-js/commit/389348cfa61f2111c5ac4f9e2bad5851a466484d)) + ## [3.9.2](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-common@3.9.1...@rudderstack/analytics-js-common@3.9.2) (2024-09-12) diff --git a/packages/analytics-js-common/package.json b/packages/analytics-js-common/package.json index f4eeda77f..f8c9c9a48 100644 --- a/packages/analytics-js-common/package.json +++ b/packages/analytics-js-common/package.json @@ -1,6 +1,6 @@ { "name": "@rudderstack/analytics-js-common", - "version": "3.9.2", + "version": "3.9.3", "private": true, "description": "RudderStack JavaScript SDK common code", "module": "dist/npm/index.js", From 916dcbbf45e817102eb04f3a6c928ea2cf1fcd07 Mon Sep 17 00:00:00 2001 From: GitHub actions Date: Fri, 27 Sep 2024 11:21:15 +0000 Subject: [PATCH 02/16] chore(@rudderstack/analytics-js-plugins): release version 3.4.14 --- packages/analytics-js-plugins/CHANGELOG.md | 12 ++++++++++++ packages/analytics-js-plugins/package.json | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/analytics-js-plugins/CHANGELOG.md b/packages/analytics-js-plugins/CHANGELOG.md index 107cd7d50..eed91543a 100644 --- a/packages/analytics-js-plugins/CHANGELOG.md +++ b/packages/analytics-js-plugins/CHANGELOG.md @@ -2,6 +2,18 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [3.4.14](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-plugins@3.4.13...@rudderstack/analytics-js-plugins@3.4.14) (2024-09-27) + +### Dependency Updates + +* `@rudderstack/analytics-js-common` updated to version `3.9.3` +* `@rudderstack/analytics-js` updated to version `3.7.13` + +### Bug Fixes + +* filter non error type errors ([#1865](https://github.com/rudderlabs/rudder-sdk-js/issues/1865)) ([060f66c](https://github.com/rudderlabs/rudder-sdk-js/commit/060f66cbf33500d6e0ee47c788ed687f4f619a57)) +* upgrade all packages to latest to fix vulnerabilities ([#1867](https://github.com/rudderlabs/rudder-sdk-js/issues/1867)) ([389348c](https://github.com/rudderlabs/rudder-sdk-js/commit/389348cfa61f2111c5ac4f9e2bad5851a466484d)) + ## [3.4.13](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-plugins@3.4.12...@rudderstack/analytics-js-plugins@3.4.13) (2024-09-17) ### Dependency Updates diff --git a/packages/analytics-js-plugins/package.json b/packages/analytics-js-plugins/package.json index 93005ccef..eba157824 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.13", + "version": "3.4.14", "private": true, "description": "RudderStack JavaScript SDK plugins", "main": "dist/npm/modern/cjs/index.cjs", From eb43b046fdf4d7715d217891216b9164a70ba222 Mon Sep 17 00:00:00 2001 From: GitHub actions Date: Fri, 27 Sep 2024 11:21:16 +0000 Subject: [PATCH 03/16] chore(@rudderstack/analytics-js-cookies): release version 0.3.9 --- packages/analytics-js-cookies/CHANGELOG.md | 5 +++++ packages/analytics-js-cookies/package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/analytics-js-cookies/CHANGELOG.md b/packages/analytics-js-cookies/CHANGELOG.md index 3529353f5..2dfce48a3 100644 --- a/packages/analytics-js-cookies/CHANGELOG.md +++ b/packages/analytics-js-cookies/CHANGELOG.md @@ -2,6 +2,11 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [0.3.9](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-cookies@0.3.8...@rudderstack/analytics-js-cookies@0.3.9) (2024-09-27) + +### Dependency Updates + +* `@rudderstack/analytics-js-common` updated to version `3.9.3` ## [0.3.8](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-cookies@0.3.7...@rudderstack/analytics-js-cookies@0.3.8) (2024-09-12) ### Dependency Updates diff --git a/packages/analytics-js-cookies/package.json b/packages/analytics-js-cookies/package.json index 38542b422..00c17096a 100644 --- a/packages/analytics-js-cookies/package.json +++ b/packages/analytics-js-cookies/package.json @@ -1,6 +1,6 @@ { "name": "@rudderstack/analytics-js-cookies", - "version": "0.3.8", + "version": "0.3.9", "description": "RudderStack JavaScript SDK Cookies Utilities", "main": "dist/npm/modern/cjs/index.cjs", "module": "dist/npm/modern/esm/index.mjs", From 6527b465f37c20c8688675689b524a96dd470f51 Mon Sep 17 00:00:00 2001 From: GitHub actions Date: Fri, 27 Sep 2024 11:21:17 +0000 Subject: [PATCH 04/16] chore(@rudderstack/analytics-js): release version 3.7.14 --- packages/analytics-js/CHANGELOG.md | 14 ++++++++++++++ packages/analytics-js/package.json | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/packages/analytics-js/CHANGELOG.md b/packages/analytics-js/CHANGELOG.md index 169c9ab92..12ab7b513 100644 --- a/packages/analytics-js/CHANGELOG.md +++ b/packages/analytics-js/CHANGELOG.md @@ -2,6 +2,20 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [3.7.14](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js@3.7.13...@rudderstack/analytics-js@3.7.14) (2024-09-27) + +### Dependency Updates + +* `@rudderstack/analytics-js-cookies` updated to version `0.3.9` +* `@rudderstack/analytics-js-common` updated to version `3.9.3` +* `@rudderstack/analytics-js-plugins` updated to version `3.4.14` + +### Bug Fixes + +* add explicit checking for setting user and group traits ([68b4293](https://github.com/rudderlabs/rudder-sdk-js/commit/68b4293a9817b3a113af5f4ad8bfcfcf1cc81e88)) +* auto session tracking ([#1856](https://github.com/rudderlabs/rudder-sdk-js/issues/1856)) ([fa7cce4](https://github.com/rudderlabs/rudder-sdk-js/commit/fa7cce494a4dce00f843ce5790ceccb0fa9ce95f)) +* upgrade all packages to latest to fix vulnerabilities ([#1867](https://github.com/rudderlabs/rudder-sdk-js/issues/1867)) ([389348c](https://github.com/rudderlabs/rudder-sdk-js/commit/389348cfa61f2111c5ac4f9e2bad5851a466484d)) + ## [3.7.13](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js@3.7.12...@rudderstack/analytics-js@3.7.13) (2024-09-17) diff --git a/packages/analytics-js/package.json b/packages/analytics-js/package.json index 82b65c4b3..5aa5a1101 100644 --- a/packages/analytics-js/package.json +++ b/packages/analytics-js/package.json @@ -1,6 +1,6 @@ { "name": "@rudderstack/analytics-js", - "version": "3.7.13", + "version": "3.7.14", "description": "RudderStack JavaScript SDK", "main": "dist/npm/modern/cjs/index.cjs", "module": "dist/npm/modern/esm/index.mjs", From 027c6a5e0f1776b902742ebdc3c14d2e8322f4bc Mon Sep 17 00:00:00 2001 From: GitHub actions Date: Fri, 27 Sep 2024 11:21:18 +0000 Subject: [PATCH 05/16] chore(rudder-sdk-js): release version 2.48.19 --- packages/analytics-v1.1/CHANGELOG.md | 10 ++++++++++ packages/analytics-v1.1/package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/analytics-v1.1/CHANGELOG.md b/packages/analytics-v1.1/CHANGELOG.md index b18f4604b..a8232f035 100644 --- a/packages/analytics-v1.1/CHANGELOG.md +++ b/packages/analytics-v1.1/CHANGELOG.md @@ -2,6 +2,16 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [2.48.19](https://github.com/rudderlabs/rudder-sdk-js/compare/rudder-sdk-js@2.48.18...rudder-sdk-js@2.48.19) (2024-09-27) + +### Dependency Updates + +* `@rudderstack/analytics-js-common` updated to version `3.9.3` + +### Bug Fixes + +* upgrade all packages to latest to fix vulnerabilities ([#1867](https://github.com/rudderlabs/rudder-sdk-js/issues/1867)) ([389348c](https://github.com/rudderlabs/rudder-sdk-js/commit/389348cfa61f2111c5ac4f9e2bad5851a466484d)) + ## [2.48.18](https://github.com/rudderlabs/rudder-sdk-js/compare/rudder-sdk-js@2.48.17...rudder-sdk-js@2.48.18) (2024-09-12) ### Dependency Updates diff --git a/packages/analytics-v1.1/package.json b/packages/analytics-v1.1/package.json index 6e37f63ee..1d90b65df 100644 --- a/packages/analytics-v1.1/package.json +++ b/packages/analytics-v1.1/package.json @@ -1,6 +1,6 @@ { "name": "rudder-sdk-js", - "version": "2.48.18", + "version": "2.48.19", "description": "RudderStack JavaScript SDK", "main": "dist/npm/index.js", "module": "dist/npm/index.es.js", From 6097eb47a75b28ef6f35441c9385ab35f94bead2 Mon Sep 17 00:00:00 2001 From: GitHub actions Date: Fri, 27 Sep 2024 11:21:19 +0000 Subject: [PATCH 06/16] chore(@rudderstack/analytics-js-loading-scripts): release version 3.0.31 --- 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 42506e9c9..055c8ca5a 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.31](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-loading-scripts@3.0.30...@rudderstack/analytics-js-loading-scripts@3.0.31) (2024-09-27) + +### Dependency Updates + +* `@rudderstack/analytics-js` updated to version `3.7.14` ## [3.0.30](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-loading-scripts@3.0.29...@rudderstack/analytics-js-loading-scripts@3.0.30) (2024-09-17) ### Dependency Updates diff --git a/packages/loading-scripts/package.json b/packages/loading-scripts/package.json index a444f4dc6..1db175cae 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.30", + "version": "3.0.31", "private": true, "description": "Loading script for RudderStack JavaScript SDK", "main": "./src/index.js", From 58aaeb9a18f24c4e3d7bd8d5ca56cf058ec2a256 Mon Sep 17 00:00:00 2001 From: GitHub actions Date: Fri, 27 Sep 2024 11:21:20 +0000 Subject: [PATCH 07/16] chore(@rudderstack/analytics-js-integrations): release version 3.8.4 --- packages/analytics-js-integrations/CHANGELOG.md | 10 ++++++++++ packages/analytics-js-integrations/package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/analytics-js-integrations/CHANGELOG.md b/packages/analytics-js-integrations/CHANGELOG.md index b7e29d4a6..73d9e2ae8 100644 --- a/packages/analytics-js-integrations/CHANGELOG.md +++ b/packages/analytics-js-integrations/CHANGELOG.md @@ -2,6 +2,16 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [3.8.4](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-integrations@3.8.3...@rudderstack/analytics-js-integrations@3.8.4) (2024-09-27) + +### Dependency Updates + +* `@rudderstack/analytics-js-common` updated to version `3.9.3` + +### Bug Fixes + +* userId in braze hyrbrid ([#1835](https://github.com/rudderlabs/rudder-sdk-js/issues/1835)) ([71a6a30](https://github.com/rudderlabs/rudder-sdk-js/commit/71a6a30a3e0a3be7422a66a063ed6b1816e886a7)) + ## [3.8.3](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-integrations@3.8.2...@rudderstack/analytics-js-integrations@3.8.3) (2024-09-13) diff --git a/packages/analytics-js-integrations/package.json b/packages/analytics-js-integrations/package.json index f6f6b3206..e1fc06f37 100644 --- a/packages/analytics-js-integrations/package.json +++ b/packages/analytics-js-integrations/package.json @@ -1,6 +1,6 @@ { "name": "@rudderstack/analytics-js-integrations", - "version": "3.8.3", + "version": "3.8.4", "private": true, "description": "RudderStack JavaScript SDK device mode integrations", "main": "dist/npm/modern/cjs/index.js", From f194eef5079e218b04ce706ec2da4932a8931130 Mon Sep 17 00:00:00 2001 From: GitHub actions Date: Fri, 27 Sep 2024 11:21:21 +0000 Subject: [PATCH 08/16] chore(@rudderstack/analytics-js-service-worker): release version 3.1.12 --- packages/analytics-js-service-worker/CHANGELOG.md | 10 ++++++++++ packages/analytics-js-service-worker/package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/analytics-js-service-worker/CHANGELOG.md b/packages/analytics-js-service-worker/CHANGELOG.md index bc2472189..027cac7c4 100644 --- a/packages/analytics-js-service-worker/CHANGELOG.md +++ b/packages/analytics-js-service-worker/CHANGELOG.md @@ -2,6 +2,16 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [3.1.12](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-service-worker@3.1.11...@rudderstack/analytics-js-service-worker@3.1.12) (2024-09-27) + +### Dependency Updates + +* `@rudderstack/analytics-js-common` updated to version `3.9.3` + +### Bug Fixes + +* upgrade all packages to latest to fix vulnerabilities ([#1867](https://github.com/rudderlabs/rudder-sdk-js/issues/1867)) ([389348c](https://github.com/rudderlabs/rudder-sdk-js/commit/389348cfa61f2111c5ac4f9e2bad5851a466484d)) + ## [3.1.11](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-service-worker@3.1.10...@rudderstack/analytics-js-service-worker@3.1.11) (2024-09-12) ### Dependency Updates diff --git a/packages/analytics-js-service-worker/package.json b/packages/analytics-js-service-worker/package.json index 93c6ec384..113f6f769 100644 --- a/packages/analytics-js-service-worker/package.json +++ b/packages/analytics-js-service-worker/package.json @@ -1,6 +1,6 @@ { "name": "@rudderstack/analytics-js-service-worker", - "version": "3.1.11", + "version": "3.1.12", "description": "RudderStack JavaScript Service Worker SDK", "main": "dist/npm/modern/cjs/index.cjs", "module": "dist/npm/modern/esm/index.mjs", From f1c2b7e136b54825161bc56e6fa04d052977aa4e Mon Sep 17 00:00:00 2001 From: GitHub actions Date: Fri, 27 Sep 2024 11:21:22 +0000 Subject: [PATCH 09/16] chore(@rudderstack/analytics-js-sanity-suite): release version 3.1.22 --- packages/sanity-suite/CHANGELOG.md | 11 +++++++++++ packages/sanity-suite/package.json | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/packages/sanity-suite/CHANGELOG.md b/packages/sanity-suite/CHANGELOG.md index 929165c64..cb16a27eb 100644 --- a/packages/sanity-suite/CHANGELOG.md +++ b/packages/sanity-suite/CHANGELOG.md @@ -2,6 +2,17 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). +## [3.1.22](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-sanity-suite@3.1.21...@rudderstack/analytics-js-sanity-suite@3.1.22) (2024-09-27) + +### Dependency Updates + +* `@rudderstack/analytics-js` updated to version `3.7.14` +* `rudder-sdk-js` updated to version `2.48.19` + +### Bug Fixes + +* upgrade all packages to latest to fix vulnerabilities ([#1867](https://github.com/rudderlabs/rudder-sdk-js/issues/1867)) ([389348c](https://github.com/rudderlabs/rudder-sdk-js/commit/389348cfa61f2111c5ac4f9e2bad5851a466484d)) + ## [3.1.21](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-sanity-suite@3.1.20...@rudderstack/analytics-js-sanity-suite@3.1.21) (2024-09-20) ### Dependency Updates diff --git a/packages/sanity-suite/package.json b/packages/sanity-suite/package.json index 3269eacf6..14f6bd7da 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.21", + "version": "3.1.22", "private": true, "description": "Sanity suite for testing JS SDK package", "main": "./dist/v3/cdn/testBook.js", From beb27d96fbb00dd17d1d14795c23699cc684f5b5 Mon Sep 17 00:00:00 2001 From: GitHub actions Date: Fri, 27 Sep 2024 11:21:32 +0000 Subject: [PATCH 10/16] chore(monorepo): sync versions and generate release logs --- package-lock.json | 22 +++++++++---------- package.json | 2 +- .../analytics-js-common/CHANGELOG_LATEST.md | 4 ++-- packages/analytics-js-common/project.json | 6 ++--- .../analytics-js-cookies/CHANGELOG_LATEST.md | 4 ++-- packages/analytics-js-cookies/project.json | 6 ++--- .../CHANGELOG_LATEST.md | 7 ++++-- .../analytics-js-integrations/project.json | 6 ++--- .../analytics-js-plugins/CHANGELOG_LATEST.md | 9 +++++++- packages/analytics-js-plugins/project.json | 6 ++--- .../CHANGELOG_LATEST.md | 9 ++++++-- .../analytics-js-service-worker/project.json | 6 ++--- packages/analytics-js/CHANGELOG_LATEST.md | 11 ++++++++-- packages/analytics-js/project.json | 6 ++--- packages/analytics-v1.1/CHANGELOG_LATEST.md | 6 ++--- packages/analytics-v1.1/project.json | 6 ++--- packages/loading-scripts/CHANGELOG_LATEST.md | 9 ++------ packages/loading-scripts/project.json | 6 ++--- sonar-project.properties | 2 +- 19 files changed, 75 insertions(+), 58 deletions(-) diff --git a/package-lock.json b/package-lock.json index 384205793..e808cad8e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@rudderstack/analytics-js-monorepo", - "version": "3.37.0", + "version": "3.38.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@rudderstack/analytics-js-monorepo", - "version": "3.37.0", + "version": "3.38.0", "hasInstallScript": true, "license": "Elastic-2.0", "workspaces": [ @@ -25265,7 +25265,7 @@ }, "packages/analytics-js": { "name": "@rudderstack/analytics-js", - "version": "3.7.13", + "version": "3.7.14", "license": "Elastic-2.0", "dependencies": { "@preact/signals-core": "1.8.0", @@ -25279,7 +25279,7 @@ }, "packages/analytics-js-common": { "name": "@rudderstack/analytics-js-common", - "version": "3.9.2", + "version": "3.9.3", "license": "Elastic-2.0", "dependencies": { "@lukeed/uuid": "2.0.1", @@ -25296,7 +25296,7 @@ }, "packages/analytics-js-cookies": { "name": "@rudderstack/analytics-js-cookies", - "version": "0.3.8", + "version": "0.3.9", "license": "Elastic-2.0", "dependencies": { "@rudderstack/analytics-js-common": "*" @@ -25305,7 +25305,7 @@ }, "packages/analytics-js-integrations": { "name": "@rudderstack/analytics-js-integrations", - "version": "3.8.3", + "version": "3.8.4", "license": "Elastic-2.0", "dependencies": { "@lukeed/uuid": "2.0.1", @@ -25325,7 +25325,7 @@ }, "packages/analytics-js-plugins": { "name": "@rudderstack/analytics-js-plugins", - "version": "3.4.13", + "version": "3.4.14", "license": "Elastic-2.0", "dependencies": { "@rudderstack/analytics-js-common": "*", @@ -25339,7 +25339,7 @@ }, "packages/analytics-js-service-worker": { "name": "@rudderstack/analytics-js-service-worker", - "version": "3.1.11", + "version": "3.1.12", "license": "Elastic-2.0", "dependencies": { "@lukeed/uuid": "2.0.1", @@ -25360,7 +25360,7 @@ }, "packages/analytics-v1.1": { "name": "rudder-sdk-js", - "version": "2.48.18", + "version": "2.48.19", "license": "Elastic-2.0", "dependencies": { "@rudderstack/analytics-js-common": "*" @@ -25369,7 +25369,7 @@ }, "packages/loading-scripts": { "name": "@rudderstack/analytics-js-loading-scripts", - "version": "3.0.30", + "version": "3.0.31", "license": "Elastic-2.0", "dependencies": { "@rudderstack/analytics-js": "*" @@ -25378,7 +25378,7 @@ }, "packages/sanity-suite": { "name": "@rudderstack/analytics-js-sanity-suite", - "version": "3.1.21", + "version": "3.1.22", "license": "Elastic-2.0", "dependencies": { "@rudderstack/analytics-js": "*", diff --git a/package.json b/package.json index 72fb58042..8483d0967 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rudderstack/analytics-js-monorepo", - "version": "3.37.0", + "version": "3.38.0", "private": true, "description": "Monorepo for RudderStack Analytics JS SDK", "workspaces": [ diff --git a/packages/analytics-js-common/CHANGELOG_LATEST.md b/packages/analytics-js-common/CHANGELOG_LATEST.md index 3128c0ca4..7f75544f7 100644 --- a/packages/analytics-js-common/CHANGELOG_LATEST.md +++ b/packages/analytics-js-common/CHANGELOG_LATEST.md @@ -1,7 +1,7 @@ -## [3.9.2](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-common@3.9.1...@rudderstack/analytics-js-common@3.9.2) (2024-09-12) +## [3.9.3](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-common@3.9.2...@rudderstack/analytics-js-common@3.9.3) (2024-09-27) ### Bug Fixes -* gracefully handle cross sdk version cookies and warn ([#1847](https://github.com/rudderlabs/rudder-sdk-js/issues/1847)) ([408a838](https://github.com/rudderlabs/rudder-sdk-js/commit/408a8389be845883c35045fdb61695db5414ad21)) +* upgrade all packages to latest to fix vulnerabilities ([#1867](https://github.com/rudderlabs/rudder-sdk-js/issues/1867)) ([389348c](https://github.com/rudderlabs/rudder-sdk-js/commit/389348cfa61f2111c5ac4f9e2bad5851a466484d)) diff --git a/packages/analytics-js-common/project.json b/packages/analytics-js-common/project.json index c95a72e9e..38898c292 100644 --- a/packages/analytics-js-common/project.json +++ b/packages/analytics-js-common/project.json @@ -51,9 +51,9 @@ "github": { "executor": "@jscutlery/semver:github", "options": { - "tag": "@rudderstack/analytics-js-common@3.9.2", - "title": "@rudderstack/analytics-js-common@3.9.2", - "discussion-category": "@rudderstack/analytics-js-common@3.9.2", + "tag": "@rudderstack/analytics-js-common@3.9.3", + "title": "@rudderstack/analytics-js-common@3.9.3", + "discussion-category": "@rudderstack/analytics-js-common@3.9.3", "notesFile": "./packages/analytics-js-common/CHANGELOG_LATEST.md" } } diff --git a/packages/analytics-js-cookies/CHANGELOG_LATEST.md b/packages/analytics-js-cookies/CHANGELOG_LATEST.md index 59c0bf2bd..c0296c942 100644 --- a/packages/analytics-js-cookies/CHANGELOG_LATEST.md +++ b/packages/analytics-js-cookies/CHANGELOG_LATEST.md @@ -1,5 +1,5 @@ -## [0.3.8](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-cookies@0.3.7...@rudderstack/analytics-js-cookies@0.3.8) (2024-09-12) +## [0.3.9](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-cookies@0.3.8...@rudderstack/analytics-js-cookies@0.3.9) (2024-09-27) ### Dependency Updates -* `@rudderstack/analytics-js-common` updated to version `3.9.2` +* `@rudderstack/analytics-js-common` updated to version `3.9.3` diff --git a/packages/analytics-js-cookies/project.json b/packages/analytics-js-cookies/project.json index 710820ae1..88f0310e0 100644 --- a/packages/analytics-js-cookies/project.json +++ b/packages/analytics-js-cookies/project.json @@ -51,9 +51,9 @@ "github": { "executor": "@jscutlery/semver:github", "options": { - "tag": "@rudderstack/analytics-js-cookies@0.3.8", - "title": "@rudderstack/analytics-js-cookies@0.3.8", - "discussion-category": "@rudderstack/analytics-js-cookies@0.3.8", + "tag": "@rudderstack/analytics-js-cookies@0.3.9", + "title": "@rudderstack/analytics-js-cookies@0.3.9", + "discussion-category": "@rudderstack/analytics-js-cookies@0.3.9", "notesFile": "./packages/analytics-js-cookies/CHANGELOG_LATEST.md" } } diff --git a/packages/analytics-js-integrations/CHANGELOG_LATEST.md b/packages/analytics-js-integrations/CHANGELOG_LATEST.md index e9edfd103..07c7a2554 100644 --- a/packages/analytics-js-integrations/CHANGELOG_LATEST.md +++ b/packages/analytics-js-integrations/CHANGELOG_LATEST.md @@ -1,7 +1,10 @@ -## [3.8.3](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-integrations@3.8.2...@rudderstack/analytics-js-integrations@3.8.3) (2024-09-13) +## [3.8.4](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-integrations@3.8.3...@rudderstack/analytics-js-integrations@3.8.4) (2024-09-27) +### Dependency Updates + +* `@rudderstack/analytics-js-common` updated to version `3.9.3` ### Bug Fixes -* update google ads page events ([#1832](https://github.com/rudderlabs/rudder-sdk-js/issues/1832)) ([1ad0fec](https://github.com/rudderlabs/rudder-sdk-js/commit/1ad0fec470259cd81643dffa6ece1f9972549775)) +* userId in braze hyrbrid ([#1835](https://github.com/rudderlabs/rudder-sdk-js/issues/1835)) ([71a6a30](https://github.com/rudderlabs/rudder-sdk-js/commit/71a6a30a3e0a3be7422a66a063ed6b1816e886a7)) diff --git a/packages/analytics-js-integrations/project.json b/packages/analytics-js-integrations/project.json index 2ce306861..106c018d6 100644 --- a/packages/analytics-js-integrations/project.json +++ b/packages/analytics-js-integrations/project.json @@ -51,9 +51,9 @@ "github": { "executor": "@jscutlery/semver:github", "options": { - "tag": "@rudderstack/analytics-js-integrations@3.8.3", - "title": "@rudderstack/analytics-js-integrations@3.8.3", - "discussion-category": "@rudderstack/analytics-js-integrations@3.8.3", + "tag": "@rudderstack/analytics-js-integrations@3.8.4", + "title": "@rudderstack/analytics-js-integrations@3.8.4", + "discussion-category": "@rudderstack/analytics-js-integrations@3.8.4", "notesFile": "./packages/analytics-js-integrations/CHANGELOG_LATEST.md" } } diff --git a/packages/analytics-js-plugins/CHANGELOG_LATEST.md b/packages/analytics-js-plugins/CHANGELOG_LATEST.md index 4787d79ce..8cbea6733 100644 --- a/packages/analytics-js-plugins/CHANGELOG_LATEST.md +++ b/packages/analytics-js-plugins/CHANGELOG_LATEST.md @@ -1,5 +1,12 @@ -## [3.4.13](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-plugins@3.4.12...@rudderstack/analytics-js-plugins@3.4.13) (2024-09-17) +## [3.4.14](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-plugins@3.4.13...@rudderstack/analytics-js-plugins@3.4.14) (2024-09-27) ### Dependency Updates +* `@rudderstack/analytics-js-common` updated to version `3.9.3` * `@rudderstack/analytics-js` updated to version `3.7.13` + +### Bug Fixes + +* filter non error type errors ([#1865](https://github.com/rudderlabs/rudder-sdk-js/issues/1865)) ([060f66c](https://github.com/rudderlabs/rudder-sdk-js/commit/060f66cbf33500d6e0ee47c788ed687f4f619a57)) +* upgrade all packages to latest to fix vulnerabilities ([#1867](https://github.com/rudderlabs/rudder-sdk-js/issues/1867)) ([389348c](https://github.com/rudderlabs/rudder-sdk-js/commit/389348cfa61f2111c5ac4f9e2bad5851a466484d)) + diff --git a/packages/analytics-js-plugins/project.json b/packages/analytics-js-plugins/project.json index df137848a..b9281dacd 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.13", - "title": "@rudderstack/analytics-js-plugins@3.4.13", - "discussion-category": "@rudderstack/analytics-js-plugins@3.4.13", + "tag": "@rudderstack/analytics-js-plugins@3.4.14", + "title": "@rudderstack/analytics-js-plugins@3.4.14", + "discussion-category": "@rudderstack/analytics-js-plugins@3.4.14", "notesFile": "./packages/analytics-js-plugins/CHANGELOG_LATEST.md" } } diff --git a/packages/analytics-js-service-worker/CHANGELOG_LATEST.md b/packages/analytics-js-service-worker/CHANGELOG_LATEST.md index 2b0922db4..18584472e 100644 --- a/packages/analytics-js-service-worker/CHANGELOG_LATEST.md +++ b/packages/analytics-js-service-worker/CHANGELOG_LATEST.md @@ -1,5 +1,10 @@ -## [3.1.11](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-service-worker@3.1.10...@rudderstack/analytics-js-service-worker@3.1.11) (2024-09-12) +## [3.1.12](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-service-worker@3.1.11...@rudderstack/analytics-js-service-worker@3.1.12) (2024-09-27) ### Dependency Updates -* `@rudderstack/analytics-js-common` updated to version `3.9.2` +* `@rudderstack/analytics-js-common` updated to version `3.9.3` + +### Bug Fixes + +* upgrade all packages to latest to fix vulnerabilities ([#1867](https://github.com/rudderlabs/rudder-sdk-js/issues/1867)) ([389348c](https://github.com/rudderlabs/rudder-sdk-js/commit/389348cfa61f2111c5ac4f9e2bad5851a466484d)) + diff --git a/packages/analytics-js-service-worker/project.json b/packages/analytics-js-service-worker/project.json index 1ca720b78..23c917cc1 100644 --- a/packages/analytics-js-service-worker/project.json +++ b/packages/analytics-js-service-worker/project.json @@ -51,9 +51,9 @@ "github": { "executor": "@jscutlery/semver:github", "options": { - "tag": "@rudderstack/analytics-js-service-worker@3.1.11", - "title": "rudderstack/analytics-js-service-worker@3.1.11", - "discussion-category": "rudderstack/analytics-js-service-worker@3.1.11", + "tag": "@rudderstack/analytics-js-service-worker@3.1.12", + "title": "rudderstack/analytics-js-service-worker@3.1.12", + "discussion-category": "rudderstack/analytics-js-service-worker@3.1.12", "notesFile": "./packages/analytics-js-service-worker/CHANGELOG_LATEST.md" } } diff --git a/packages/analytics-js/CHANGELOG_LATEST.md b/packages/analytics-js/CHANGELOG_LATEST.md index 0739ddafd..eb13e5b79 100644 --- a/packages/analytics-js/CHANGELOG_LATEST.md +++ b/packages/analytics-js/CHANGELOG_LATEST.md @@ -1,7 +1,14 @@ -## [3.7.13](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js@3.7.12...@rudderstack/analytics-js@3.7.13) (2024-09-17) +## [3.7.14](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js@3.7.13...@rudderstack/analytics-js@3.7.14) (2024-09-27) +### Dependency Updates + +* `@rudderstack/analytics-js-cookies` updated to version `0.3.9` +* `@rudderstack/analytics-js-common` updated to version `3.9.3` +* `@rudderstack/analytics-js-plugins` updated to version `3.4.14` ### Bug Fixes -* sdk loading snippet and sanity suite ([#1853](https://github.com/rudderlabs/rudder-sdk-js/issues/1853)) ([d531f14](https://github.com/rudderlabs/rudder-sdk-js/commit/d531f142f9f9f17f3f675962835531d02b687844)) +* add explicit checking for setting user and group traits ([68b4293](https://github.com/rudderlabs/rudder-sdk-js/commit/68b4293a9817b3a113af5f4ad8bfcfcf1cc81e88)) +* auto session tracking ([#1856](https://github.com/rudderlabs/rudder-sdk-js/issues/1856)) ([fa7cce4](https://github.com/rudderlabs/rudder-sdk-js/commit/fa7cce494a4dce00f843ce5790ceccb0fa9ce95f)) +* upgrade all packages to latest to fix vulnerabilities ([#1867](https://github.com/rudderlabs/rudder-sdk-js/issues/1867)) ([389348c](https://github.com/rudderlabs/rudder-sdk-js/commit/389348cfa61f2111c5ac4f9e2bad5851a466484d)) diff --git a/packages/analytics-js/project.json b/packages/analytics-js/project.json index e8e8e0469..3b9c94ccb 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.13", - "title": "@rudderstack/analytics-js@3.7.13", - "discussion-category": "@rudderstack/analytics-js@3.7.13", + "tag": "@rudderstack/analytics-js@3.7.14", + "title": "@rudderstack/analytics-js@3.7.14", + "discussion-category": "@rudderstack/analytics-js@3.7.14", "notesFile": "./packages/analytics-js/CHANGELOG_LATEST.md" } } diff --git a/packages/analytics-v1.1/CHANGELOG_LATEST.md b/packages/analytics-v1.1/CHANGELOG_LATEST.md index 18e8e04cd..d5cb5fe9c 100644 --- a/packages/analytics-v1.1/CHANGELOG_LATEST.md +++ b/packages/analytics-v1.1/CHANGELOG_LATEST.md @@ -1,10 +1,10 @@ -## [2.48.18](https://github.com/rudderlabs/rudder-sdk-js/compare/rudder-sdk-js@2.48.17...rudder-sdk-js@2.48.18) (2024-09-12) +## [2.48.19](https://github.com/rudderlabs/rudder-sdk-js/compare/rudder-sdk-js@2.48.18...rudder-sdk-js@2.48.19) (2024-09-27) ### Dependency Updates -* `@rudderstack/analytics-js-common` updated to version `3.9.2` +* `@rudderstack/analytics-js-common` updated to version `3.9.3` ### Bug Fixes -* gracefully handle cross sdk version cookies and warn ([#1847](https://github.com/rudderlabs/rudder-sdk-js/issues/1847)) ([408a838](https://github.com/rudderlabs/rudder-sdk-js/commit/408a8389be845883c35045fdb61695db5414ad21)) +* upgrade all packages to latest to fix vulnerabilities ([#1867](https://github.com/rudderlabs/rudder-sdk-js/issues/1867)) ([389348c](https://github.com/rudderlabs/rudder-sdk-js/commit/389348cfa61f2111c5ac4f9e2bad5851a466484d)) diff --git a/packages/analytics-v1.1/project.json b/packages/analytics-v1.1/project.json index d6c778210..53c86014e 100644 --- a/packages/analytics-v1.1/project.json +++ b/packages/analytics-v1.1/project.json @@ -59,9 +59,9 @@ "github": { "executor": "@jscutlery/semver:github", "options": { - "tag": "rudder-sdk-js@2.48.18", - "title": "rudder-sdk-js@2.48.18", - "discussion-category": "rudder-sdk-js@2.48.18", + "tag": "rudder-sdk-js@2.48.19", + "title": "rudder-sdk-js@2.48.19", + "discussion-category": "rudder-sdk-js@2.48.19", "notesFile": "./packages/analytics-v1.1/CHANGELOG_LATEST.md" } } diff --git a/packages/loading-scripts/CHANGELOG_LATEST.md b/packages/loading-scripts/CHANGELOG_LATEST.md index 520e500e7..572de7a42 100644 --- a/packages/loading-scripts/CHANGELOG_LATEST.md +++ b/packages/loading-scripts/CHANGELOG_LATEST.md @@ -1,10 +1,5 @@ -## [3.0.30](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-loading-scripts@3.0.29...@rudderstack/analytics-js-loading-scripts@3.0.30) (2024-09-17) +## [3.0.31](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-loading-scripts@3.0.30...@rudderstack/analytics-js-loading-scripts@3.0.31) (2024-09-27) ### Dependency Updates -* `@rudderstack/analytics-js` updated to version `3.7.13` - -### Bug Fixes - -* sdk loading snippet and sanity suite ([#1853](https://github.com/rudderlabs/rudder-sdk-js/issues/1853)) ([d531f14](https://github.com/rudderlabs/rudder-sdk-js/commit/d531f142f9f9f17f3f675962835531d02b687844)) - +* `@rudderstack/analytics-js` updated to version `3.7.14` diff --git a/packages/loading-scripts/project.json b/packages/loading-scripts/project.json index 534929843..132f556e9 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.30", - "title": "@rudderstack/analytics-js-loading-scripts@3.0.30", - "discussion-category": "@rudderstack/analytics-js-loading-scripts@3.0.30", + "tag": "@rudderstack/analytics-js-loading-scripts@3.0.31", + "title": "@rudderstack/analytics-js-loading-scripts@3.0.31", + "discussion-category": "@rudderstack/analytics-js-loading-scripts@3.0.31", "notesFile": "./packages/loading-scripts/CHANGELOG_LATEST.md" } } diff --git a/sonar-project.properties b/sonar-project.properties index f698c9edb..5c7a44206 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.37.0 +sonar.projectVersion=3.38.0 # Meta-data for the project sonar.links.scm=https://github.com/rudderlabs/rudder-sdk-js From a89d6dcf2666a981dc23d60d9580b164fa8e26f1 Mon Sep 17 00:00:00 2001 From: Sai Kumar Battinoju Date: Fri, 27 Sep 2024 20:29:39 +0530 Subject: [PATCH 11/16] fix: update vite module federation patch to support older browsers --- ...riginjs+vite-plugin-federation+1.3.6.patch | 75 +++++++++++++++---- 1 file changed, 60 insertions(+), 15 deletions(-) diff --git a/patches/@originjs+vite-plugin-federation+1.3.6.patch b/patches/@originjs+vite-plugin-federation+1.3.6.patch index 9132d534a..47786b672 100644 --- a/patches/@originjs+vite-plugin-federation+1.3.6.patch +++ b/patches/@originjs+vite-plugin-federation+1.3.6.patch @@ -1,8 +1,19 @@ diff --git a/node_modules/@originjs/vite-plugin-federation/dist/index.js b/node_modules/@originjs/vite-plugin-federation/dist/index.js -index 12c1268..b8b156c 100644 +index 12c1268..ff90e02 100644 --- a/node_modules/@originjs/vite-plugin-federation/dist/index.js +++ b/node_modules/@originjs/vite-plugin-federation/dist/index.js -@@ -393,7 +393,7 @@ function prodRemotePlugin(options) { +@@ -366,7 +366,9 @@ function prodRemotePlugin(options) { + } + + async function __federation_import(name) { +- currentImports[name] ??= import(name) ++ if (!currentImports[name]) { ++ currentImports[name] = import(name) ++ } + return currentImports[name] + } + +@@ -393,7 +395,7 @@ function prodRemotePlugin(options) { return new Promise((resolve, reject) => { const getUrl = typeof remote.url === 'function' ? remote.url : () => Promise.resolve(remote.url); getUrl().then(url => { @@ -11,7 +22,16 @@ index 12c1268..b8b156c 100644 if (!remote.inited) { const shareScope = wrapShareModule(remote.from); lib.init(shareScope); -@@ -888,12 +888,11 @@ function prodExposePlugin(options) { +@@ -710,7 +712,7 @@ const {${imports}} = ${defaultImportDeclaration}; + } + }; + } +-const federation_fn_import = "import { satisfy } from '__federation_fn_satisfy'\n\nconst currentImports = {}\n\n// eslint-disable-next-line no-undef\nconst moduleMap = __rf_var__moduleMap\nconst moduleCache = Object.create(null)\nasync function importShared(name, shareScope = 'default') {\n return moduleCache[name]\n ? new Promise((r) => r(moduleCache[name]))\n : (await getSharedFromRuntime(name, shareScope)) || getSharedFromLocal(name)\n}\n// eslint-disable-next-line\nasync function __federation_import(name) {\n currentImports[name] ??= import(name)\n return currentImports[name]\n}\nasync function getSharedFromRuntime(name, shareScope) {\n let module = null\n if (globalThis?.__federation_shared__?.[shareScope]?.[name]) {\n const versionObj = globalThis.__federation_shared__[shareScope][name]\n const versionKey = Object.keys(versionObj)[0]\n const versionValue = Object.values(versionObj)[0]\n if (moduleMap[name]?.requiredVersion) {\n // judge version satisfy\n if (satisfy(versionKey, moduleMap[name].requiredVersion)) {\n module = await (await versionValue.get())()\n } else {\n console.log(\n `provider support ${name}(${versionKey}) is not satisfied requiredVersion(\\${moduleMap[name].requiredVersion})`\n )\n }\n } else {\n module = await (await versionValue.get())()\n }\n }\n if (module) {\n return flattenModule(module, name)\n }\n}\nasync function getSharedFromLocal(name) {\n if (moduleMap[name]?.import) {\n let module = await (await moduleMap[name].get())()\n return flattenModule(module, name)\n } else {\n console.error(\n `consumer config import=false,so cant use callback shared module`\n )\n }\n}\nfunction flattenModule(module, name) {\n // use a shared module which export default a function will getting error 'TypeError: xxx is not a function'\n if (typeof module.default === 'function') {\n Object.keys(module).forEach((key) => {\n if (key !== 'default') {\n module.default[key] = module[key]\n }\n })\n moduleCache[name] = module.default\n return module.default\n }\n if (module.default) module = Object.assign({}, module.default, module)\n moduleCache[name] = module\n return module\n}\nexport {\n importShared,\n getSharedFromRuntime as importSharedRuntime,\n getSharedFromLocal as importSharedLocal\n}\n"; ++const federation_fn_import = "import { satisfy } from '__federation_fn_satisfy'\n\nconst currentImports = {}\n\n// eslint-disable-next-line no-undef\nconst moduleMap = __rf_var__moduleMap\nconst moduleCache = Object.create(null)\nasync function importShared(name, shareScope = 'default') {\n return moduleCache[name]\n ? new Promise((r) => r(moduleCache[name]))\n : (await getSharedFromRuntime(name, shareScope)) || getSharedFromLocal(name)\n}\n// eslint-disable-next-line\nasync function __federation_import(name) {\n if (!currentImports[name]) {\n currentImports[name]\n }\n return currentImports[name]\n}\nasync function getSharedFromRuntime(name, shareScope) {\n let module = null\n if (globalThis?.__federation_shared__?.[shareScope]?.[name]) {\n const versionObj = globalThis.__federation_shared__[shareScope][name]\n const versionKey = Object.keys(versionObj)[0]\n const versionValue = Object.values(versionObj)[0]\n if (moduleMap[name]?.requiredVersion) {\n // judge version satisfy\n if (satisfy(versionKey, moduleMap[name].requiredVersion)) {\n module = await (await versionValue.get())()\n } else {\n console.log(\n `provider support ${name}(${versionKey}) is not satisfied requiredVersion(\\${moduleMap[name].requiredVersion})`\n )\n }\n } else {\n module = await (await versionValue.get())()\n }\n }\n if (module) {\n return flattenModule(module, name)\n }\n}\nasync function getSharedFromLocal(name) {\n if (moduleMap[name]?.import) {\n let module = await (await moduleMap[name].get())()\n return flattenModule(module, name)\n } else {\n console.error(\n `consumer config import=false,so cant use callback shared module`\n )\n }\n}\nfunction flattenModule(module, name) {\n // use a shared module which export default a function will getting error 'TypeError: xxx is not a function'\n if (typeof module.default === 'function') {\n Object.keys(module).forEach((key) => {\n if (key !== 'default') {\n module.default[key] = module[key]\n }\n })\n moduleCache[name] = module.default\n return module.default\n }\n if (module.default) module = Object.assign({}, module.default, module)\n moduleCache[name] = module\n return module\n}\nexport {\n importShared,\n getSharedFromRuntime as importSharedRuntime,\n getSharedFromLocal as importSharedLocal\n}\n"; + const sharedFilePathReg = /__federation_shared_(.+)-.{8}\.js$/; + function prodSharedPlugin(options) { + parsedOptions.prodShared = parseSharedOptions(options); +@@ -888,12 +890,11 @@ function prodExposePlugin(options) { EXPOSES_MAP.set(item[0], exposeFilepath); EXPOSES_KEY_MAP.set( item[0], @@ -26,7 +46,7 @@ index 12c1268..b8b156c 100644 } return { name: "originjs:expose-production", -@@ -903,29 +902,6 @@ function prodExposePlugin(options) { +@@ -903,31 +904,10 @@ function prodExposePlugin(options) { const exportSet = new Set(['Module', '__esModule', 'default', '_export_sfc']); let moduleMap = {${moduleMap}} const seen = {} @@ -54,9 +74,14 @@ index 12c1268..b8b156c 100644 - }) - }; async function __federation_import(name) { - currentImports[name] ??= import(name) +- currentImports[name] ??= import(name) ++ if (!currentImports[name]) { ++ currentImports[name] = import(name) ++ } return currentImports[name] -@@ -1038,7 +1014,7 @@ function prodExposePlugin(options) { + }; + export const get =(module) => { +@@ -1038,7 +1018,7 @@ function prodExposePlugin(options) { ); const slashPath = fileRelativePath.replace(/\\/g, "/"); remoteEntryChunk.code = remoteEntryChunk.code.replace( @@ -65,7 +90,7 @@ index 12c1268..b8b156c 100644 `./${slashPath}` ); } -@@ -1110,7 +1086,7 @@ const loadJS = async (url, fn) => { +@@ -1110,7 +1090,7 @@ const loadJS = async (url, fn) => { document.getElementsByTagName('head')[0].appendChild(script); } function get(name, ${REMOTE_FROM_PARAMETER}){ @@ -74,7 +99,7 @@ index 12c1268..b8b156c 100644 if (${REMOTE_FROM_PARAMETER} === 'webpack') { return Object.prototype.toString.call(module).indexOf('Module') > -1 && module.default ? module.default : module } -@@ -1144,7 +1120,7 @@ async function __federation_method_ensure(remoteId) { +@@ -1144,7 +1124,7 @@ async function __federation_method_ensure(remoteId) { return new Promise((resolve, reject) => { const getUrl = typeof remote.url === 'function' ? remote.url : () => Promise.resolve(remote.url); getUrl().then(url => { @@ -84,10 +109,21 @@ index 12c1268..b8b156c 100644 const shareScope = wrapShareScope(remote.from) lib.init(shareScope); diff --git a/node_modules/@originjs/vite-plugin-federation/dist/index.mjs b/node_modules/@originjs/vite-plugin-federation/dist/index.mjs -index dd456fe..eb2d811 100644 +index dd456fe..3a4a03a 100644 --- a/node_modules/@originjs/vite-plugin-federation/dist/index.mjs +++ b/node_modules/@originjs/vite-plugin-federation/dist/index.mjs -@@ -376,7 +376,7 @@ function prodRemotePlugin(options) { +@@ -349,7 +349,9 @@ function prodRemotePlugin(options) { + } + + async function __federation_import(name) { +- currentImports[name] ??= import(name) ++ if (!currentImports[name]) { ++ currentImports[name] = import(name) ++ } + return currentImports[name] + } + +@@ -376,7 +378,7 @@ function prodRemotePlugin(options) { return new Promise((resolve, reject) => { const getUrl = typeof remote.url === 'function' ? remote.url : () => Promise.resolve(remote.url); getUrl().then(url => { @@ -96,7 +132,16 @@ index dd456fe..eb2d811 100644 if (!remote.inited) { const shareScope = wrapShareModule(remote.from); lib.init(shareScope); -@@ -871,12 +871,11 @@ function prodExposePlugin(options) { +@@ -693,7 +695,7 @@ const {${imports}} = ${defaultImportDeclaration}; + } + }; + } +-const federation_fn_import = "import { satisfy } from '__federation_fn_satisfy'\n\nconst currentImports = {}\n\n// eslint-disable-next-line no-undef\nconst moduleMap = __rf_var__moduleMap\nconst moduleCache = Object.create(null)\nasync function importShared(name, shareScope = 'default') {\n return moduleCache[name]\n ? new Promise((r) => r(moduleCache[name]))\n : (await getSharedFromRuntime(name, shareScope)) || getSharedFromLocal(name)\n}\n// eslint-disable-next-line\nasync function __federation_import(name) {\n currentImports[name] ??= import(name)\n return currentImports[name]\n}\nasync function getSharedFromRuntime(name, shareScope) {\n let module = null\n if (globalThis?.__federation_shared__?.[shareScope]?.[name]) {\n const versionObj = globalThis.__federation_shared__[shareScope][name]\n const versionKey = Object.keys(versionObj)[0]\n const versionValue = Object.values(versionObj)[0]\n if (moduleMap[name]?.requiredVersion) {\n // judge version satisfy\n if (satisfy(versionKey, moduleMap[name].requiredVersion)) {\n module = await (await versionValue.get())()\n } else {\n console.log(\n `provider support ${name}(${versionKey}) is not satisfied requiredVersion(\\${moduleMap[name].requiredVersion})`\n )\n }\n } else {\n module = await (await versionValue.get())()\n }\n }\n if (module) {\n return flattenModule(module, name)\n }\n}\nasync function getSharedFromLocal(name) {\n if (moduleMap[name]?.import) {\n let module = await (await moduleMap[name].get())()\n return flattenModule(module, name)\n } else {\n console.error(\n `consumer config import=false,so cant use callback shared module`\n )\n }\n}\nfunction flattenModule(module, name) {\n // use a shared module which export default a function will getting error 'TypeError: xxx is not a function'\n if (typeof module.default === 'function') {\n Object.keys(module).forEach((key) => {\n if (key !== 'default') {\n module.default[key] = module[key]\n }\n })\n moduleCache[name] = module.default\n return module.default\n }\n if (module.default) module = Object.assign({}, module.default, module)\n moduleCache[name] = module\n return module\n}\nexport {\n importShared,\n getSharedFromRuntime as importSharedRuntime,\n getSharedFromLocal as importSharedLocal\n}\n"; ++const federation_fn_import = "import { satisfy } from '__federation_fn_satisfy'\n\nconst currentImports = {}\n\n// eslint-disable-next-line no-undef\nconst moduleMap = __rf_var__moduleMap\nconst moduleCache = Object.create(null)\nasync function importShared(name, shareScope = 'default') {\n return moduleCache[name]\n ? new Promise((r) => r(moduleCache[name]))\n : (await getSharedFromRuntime(name, shareScope)) || getSharedFromLocal(name)\n}\n// eslint-disable-next-line\nasync function __federation_import(name) {\n if (!currentImports[name]) {\n currentImports[name]\n }\n return currentImports[name]\n}\nasync function getSharedFromRuntime(name, shareScope) {\n let module = null\n if (globalThis?.__federation_shared__?.[shareScope]?.[name]) {\n const versionObj = globalThis.__federation_shared__[shareScope][name]\n const versionKey = Object.keys(versionObj)[0]\n const versionValue = Object.values(versionObj)[0]\n if (moduleMap[name]?.requiredVersion) {\n // judge version satisfy\n if (satisfy(versionKey, moduleMap[name].requiredVersion)) {\n module = await (await versionValue.get())()\n } else {\n console.log(\n `provider support ${name}(${versionKey}) is not satisfied requiredVersion(\\${moduleMap[name].requiredVersion})`\n )\n }\n } else {\n module = await (await versionValue.get())()\n }\n }\n if (module) {\n return flattenModule(module, name)\n }\n}\nasync function getSharedFromLocal(name) {\n if (moduleMap[name]?.import) {\n let module = await (await moduleMap[name].get())()\n return flattenModule(module, name)\n } else {\n console.error(\n `consumer config import=false,so cant use callback shared module`\n )\n }\n}\nfunction flattenModule(module, name) {\n // use a shared module which export default a function will getting error 'TypeError: xxx is not a function'\n if (typeof module.default === 'function') {\n Object.keys(module).forEach((key) => {\n if (key !== 'default') {\n module.default[key] = module[key]\n }\n })\n moduleCache[name] = module.default\n return module.default\n }\n if (module.default) module = Object.assign({}, module.default, module)\n moduleCache[name] = module\n return module\n}\nexport {\n importShared,\n getSharedFromRuntime as importSharedRuntime,\n getSharedFromLocal as importSharedLocal\n}\n"; + const sharedFilePathReg = /__federation_shared_(.+)-.{8}\.js$/; + function prodSharedPlugin(options) { + parsedOptions.prodShared = parseSharedOptions(options); +@@ -871,12 +873,11 @@ function prodExposePlugin(options) { EXPOSES_MAP.set(item[0], exposeFilepath); EXPOSES_KEY_MAP.set( item[0], @@ -111,7 +156,7 @@ index dd456fe..eb2d811 100644 } return { name: "originjs:expose-production", -@@ -886,29 +885,6 @@ function prodExposePlugin(options) { +@@ -886,29 +887,6 @@ function prodExposePlugin(options) { const exportSet = new Set(['Module', '__esModule', 'default', '_export_sfc']); let moduleMap = {${moduleMap}} const seen = {} @@ -141,7 +186,7 @@ index dd456fe..eb2d811 100644 async function __federation_import(name) { currentImports[name] ??= import(name) return currentImports[name] -@@ -1021,7 +997,7 @@ function prodExposePlugin(options) { +@@ -1021,7 +999,7 @@ function prodExposePlugin(options) { ); const slashPath = fileRelativePath.replace(/\\/g, "/"); remoteEntryChunk.code = remoteEntryChunk.code.replace( @@ -150,7 +195,7 @@ index dd456fe..eb2d811 100644 `./${slashPath}` ); } -@@ -1093,7 +1069,7 @@ const loadJS = async (url, fn) => { +@@ -1093,7 +1071,7 @@ const loadJS = async (url, fn) => { document.getElementsByTagName('head')[0].appendChild(script); } function get(name, ${REMOTE_FROM_PARAMETER}){ @@ -159,7 +204,7 @@ index dd456fe..eb2d811 100644 if (${REMOTE_FROM_PARAMETER} === 'webpack') { return Object.prototype.toString.call(module).indexOf('Module') > -1 && module.default ? module.default : module } -@@ -1127,7 +1103,7 @@ async function __federation_method_ensure(remoteId) { +@@ -1127,7 +1105,7 @@ async function __federation_method_ensure(remoteId) { return new Promise((resolve, reject) => { const getUrl = typeof remote.url === 'function' ? remote.url : () => Promise.resolve(remote.url); getUrl().then(url => { From da64b28e9f8610e1b7401eddf91db3e05e22a62e Mon Sep 17 00:00:00 2001 From: MoumitaM Date: Fri, 27 Sep 2024 21:51:03 +0530 Subject: [PATCH 12/16] chore: size limit updated --- packages/analytics-js-service-worker/.size-limit.mjs | 2 +- packages/analytics-v1.1/.size-limit.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/analytics-js-service-worker/.size-limit.mjs b/packages/analytics-js-service-worker/.size-limit.mjs index 3396eb12c..2234ec404 100644 --- a/packages/analytics-js-service-worker/.size-limit.mjs +++ b/packages/analytics-js-service-worker/.size-limit.mjs @@ -31,7 +31,7 @@ export default [ name: 'Service Worker - Modern - NPM (CJS)', path: 'dist/npm/modern/cjs/index.cjs', import: '*', - limit: '26 KiB', + limit: '26.5 KiB', }, { name: 'Service Worker - Modern - NPM (UMD)', diff --git a/packages/analytics-v1.1/.size-limit.js b/packages/analytics-v1.1/.size-limit.js index 882acec45..f70166cf3 100644 --- a/packages/analytics-v1.1/.size-limit.js +++ b/packages/analytics-v1.1/.size-limit.js @@ -42,7 +42,7 @@ module.exports = [ { name: 'Core - Legacy - CDN', path: 'dist/cdn/legacy/rudder-analytics.min.js', - limit: '32 KiB', + limit: '32.5 KiB', }, { name: 'Core - Modern - CDN', From fab2f23b2698d9eb03dd3c3d103d6d1d54a8226e Mon Sep 17 00:00:00 2001 From: Sai Kumar Battinoju Date: Mon, 30 Sep 2024 10:22:59 +0530 Subject: [PATCH 13/16] fix: vite module federation patch --- ...riginjs+vite-plugin-federation+1.3.6.patch | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/patches/@originjs+vite-plugin-federation+1.3.6.patch b/patches/@originjs+vite-plugin-federation+1.3.6.patch index 47786b672..0aa6519d1 100644 --- a/patches/@originjs+vite-plugin-federation+1.3.6.patch +++ b/patches/@originjs+vite-plugin-federation+1.3.6.patch @@ -109,7 +109,7 @@ index 12c1268..ff90e02 100644 const shareScope = wrapShareScope(remote.from) lib.init(shareScope); diff --git a/node_modules/@originjs/vite-plugin-federation/dist/index.mjs b/node_modules/@originjs/vite-plugin-federation/dist/index.mjs -index dd456fe..3a4a03a 100644 +index dd456fe..464e9cd 100644 --- a/node_modules/@originjs/vite-plugin-federation/dist/index.mjs +++ b/node_modules/@originjs/vite-plugin-federation/dist/index.mjs @@ -349,7 +349,9 @@ function prodRemotePlugin(options) { @@ -156,7 +156,7 @@ index dd456fe..3a4a03a 100644 } return { name: "originjs:expose-production", -@@ -886,29 +887,6 @@ function prodExposePlugin(options) { +@@ -886,32 +887,11 @@ function prodExposePlugin(options) { const exportSet = new Set(['Module', '__esModule', 'default', '_export_sfc']); let moduleMap = {${moduleMap}} const seen = {} @@ -184,9 +184,16 @@ index dd456fe..3a4a03a 100644 - }) - }; async function __federation_import(name) { - currentImports[name] ??= import(name) - return currentImports[name] -@@ -1021,7 +999,7 @@ function prodExposePlugin(options) { +- currentImports[name] ??= import(name) +- return currentImports[name] ++ if (!currentImports[name]) { ++ currentImports[name] = import(name) ++ } ++ return currentImports[name] + }; + export const get =(module) => { + if(!moduleMap[module]) throw new Error('Can not find remote module ' + module) +@@ -1021,7 +1001,7 @@ function prodExposePlugin(options) { ); const slashPath = fileRelativePath.replace(/\\/g, "/"); remoteEntryChunk.code = remoteEntryChunk.code.replace( @@ -195,7 +202,7 @@ index dd456fe..3a4a03a 100644 `./${slashPath}` ); } -@@ -1093,7 +1071,7 @@ const loadJS = async (url, fn) => { +@@ -1093,7 +1073,7 @@ const loadJS = async (url, fn) => { document.getElementsByTagName('head')[0].appendChild(script); } function get(name, ${REMOTE_FROM_PARAMETER}){ @@ -204,7 +211,7 @@ index dd456fe..3a4a03a 100644 if (${REMOTE_FROM_PARAMETER} === 'webpack') { return Object.prototype.toString.call(module).indexOf('Module') > -1 && module.default ? module.default : module } -@@ -1127,7 +1105,7 @@ async function __federation_method_ensure(remoteId) { +@@ -1127,7 +1107,7 @@ async function __federation_method_ensure(remoteId) { return new Promise((resolve, reject) => { const getUrl = typeof remote.url === 'function' ? remote.url : () => Promise.resolve(remote.url); getUrl().then(url => { From 4b3b804f84667039ddfc4032c0124f22a4f57ae8 Mon Sep 17 00:00:00 2001 From: Sai Kumar Battinoju Date: Mon, 30 Sep 2024 10:37:05 +0530 Subject: [PATCH 14/16] chore: fix external repo authorization header - test --- .github/workflows/trigger-sanity-suite.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/trigger-sanity-suite.yml b/.github/workflows/trigger-sanity-suite.yml index dcdc77406..ea468df14 100644 --- a/.github/workflows/trigger-sanity-suite.yml +++ b/.github/workflows/trigger-sanity-suite.yml @@ -61,7 +61,7 @@ jobs: - name: Trigger sanity suite test workflow on rudder-client-side-test run: | curl -X POST \ - -H "Authorization: token ${{ secrets.PAT }}" \ + -H "Authorization: Bearer ${{ secrets.PAT }}" \ -H "Accept: application/vnd.github.v3+json" \ https://api.github.com/repos/rudderlabs/rudder-client-side-test/dispatches \ -d '{"event_type":"triggered_by_source_repo", "client_payload": {"environment": "${{ github.event.inputs.environment }}", "monorepoVersion": "${{ needs.extract-monorepo-version.outputs.version }}"}}' From 45507a281f79d717ee219bf1d6917d733f46a5ae Mon Sep 17 00:00:00 2001 From: Sai Kumar Battinoju Date: Mon, 30 Sep 2024 11:02:42 +0530 Subject: [PATCH 15/16] chore: pass missing secrets to the workflow --- .github/workflows/deploy-prod.yml | 2 ++ .github/workflows/deploy-staging.yml | 2 ++ .github/workflows/trigger-sanity-suite.yml | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 6f3135691..d4a1d42bf 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -50,3 +50,5 @@ jobs: needs: deploy-sanity-suite with: environment: production + secrets: + PAT: ${{ secrets.PAT }} diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 8ef4baa95..b98922b66 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -55,3 +55,5 @@ jobs: name: Trigger Sanity Suite with: environment: staging + secrets: + PAT: ${{ secrets.PAT }} diff --git a/.github/workflows/trigger-sanity-suite.yml b/.github/workflows/trigger-sanity-suite.yml index ea468df14..f2ee58753 100644 --- a/.github/workflows/trigger-sanity-suite.yml +++ b/.github/workflows/trigger-sanity-suite.yml @@ -17,6 +17,10 @@ on: environment: type: string default: production + secrets: + PAT: + description: Personal Access Token + required: true jobs: extract-monorepo-version: From 86edd448d6e9255a640cc0aa9aed0945357ea018 Mon Sep 17 00:00:00 2001 From: Sai Kumar Battinoju Date: Mon, 30 Sep 2024 11:56:59 +0530 Subject: [PATCH 16/16] chore: fix accessing the inputs --- .github/workflows/trigger-sanity-suite.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/trigger-sanity-suite.yml b/.github/workflows/trigger-sanity-suite.yml index f2ee58753..bb3cefb57 100644 --- a/.github/workflows/trigger-sanity-suite.yml +++ b/.github/workflows/trigger-sanity-suite.yml @@ -34,7 +34,7 @@ jobs: - name: Determine checkout SHA id: getSHA run: | - if [ "${{ inputs.environment }}" = 'staging' ]; then + if [ "${{ github.event.inputs.environment || inputs.environment }}" = 'staging' ]; then sha=${{ github.event.pull_request.head.sha }} else sha=${{ github.sha }} @@ -50,8 +50,8 @@ jobs: - name: Determine the Monorepo version id: determine_version run: | - if [ -n "${{ inputs.monorepoVersion }}" ]; then - current_version="${{ inputs.monorepoVersion }}" + if [ -n "${{ github.event.inputs.monorepoVersion }}" ]; then + current_version="${{ github.event.inputs.monorepoVersion }}" else current_version=$(jq -r .version package.json) fi @@ -68,4 +68,4 @@ jobs: -H "Authorization: Bearer ${{ secrets.PAT }}" \ -H "Accept: application/vnd.github.v3+json" \ https://api.github.com/repos/rudderlabs/rudder-client-side-test/dispatches \ - -d '{"event_type":"triggered_by_source_repo", "client_payload": {"environment": "${{ github.event.inputs.environment }}", "monorepoVersion": "${{ needs.extract-monorepo-version.outputs.version }}"}}' + -d '{"event_type":"triggered_by_source_repo", "client_payload": {"environment": "${{ github.event.inputs.environment || inputs.environment }}", "monorepoVersion": "${{ needs.extract-monorepo-version.outputs.version }}"}}'