Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(release): pull main into develop post release v3.9.0 #1729

Merged
merged 12 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rudderstack/analytics-js-monorepo",
"version": "3.8.0",
"version": "3.9.0",
"private": true,
"description": "Monorepo for RudderStack Analytics JS SDK",
"workspaces": [
Expand Down
7 changes: 7 additions & 0 deletions packages/analytics-js-common/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).

## [3.3.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-05-24)


### Features

* set server side cookies ([#1649](https://github.com/rudderlabs/rudder-sdk-js/issues/1649)) ([8b8ac8f](https://github.com/rudderlabs/rudder-sdk-js/commit/8b8ac8fb2b7fe0903fa383cfcd0388fe3022330c))

## [3.2.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-04-26)


Expand Down
5 changes: 2 additions & 3 deletions packages/analytics-js-common/CHANGELOG_LATEST.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
## [3.2.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-common@3.1.0...@rudderstack/analytics-js-common@3.2.0) (2024-04-26)
## [3.3.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-common@3.2.0...@rudderstack/analytics-js-common@3.3.0) (2024-05-24)


### Features

* supporting add to cart for criteo ([#1696](https://github.com/rudderlabs/rudder-sdk-js/issues/1696)) ([bb7e1df](https://github.com/rudderlabs/rudder-sdk-js/commit/bb7e1df9a1e5a1ffe4e8a81c3d9fdf18d9ef2744))
* warn users on missing plugins ([#1691](https://github.com/rudderlabs/rudder-sdk-js/issues/1691)) ([c57cf82](https://github.com/rudderlabs/rudder-sdk-js/commit/c57cf820346a7fede352f2f346db37ad51413cf8))
* set server side cookies ([#1649](https://github.com/rudderlabs/rudder-sdk-js/issues/1649)) ([8b8ac8f](https://github.com/rudderlabs/rudder-sdk-js/commit/8b8ac8fb2b7fe0903fa383cfcd0388fe3022330c))

2 changes: 1 addition & 1 deletion packages/analytics-js-common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rudderstack/analytics-js-common",
"version": "3.2.0",
"version": "3.3.0",
"private": true,
"description": "RudderStack JavaScript SDK common code",
"module": "dist/npm/index.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/analytics-js-common/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@
"github": {
"executor": "@jscutlery/semver:github",
"options": {
"tag": "@rudderstack/analytics-js-common@3.2.0",
"title": "@rudderstack/analytics-js-common@3.2.0",
"discussion-category": "@rudderstack/analytics-js-common@3.2.0",
"tag": "@rudderstack/analytics-js-common@3.3.0",
"title": "@rudderstack/analytics-js-common@3.3.0",
"discussion-category": "@rudderstack/analytics-js-common@3.3.0",
"notesFile": "./packages/analytics-js-common/CHANGELOG_LATEST.md"
}
}
Expand Down
21 changes: 21 additions & 0 deletions packages/analytics-js-integrations/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,27 @@

This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).

## [3.3.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-05-24)

### Dependency Updates

* `@rudderstack/analytics-js-common` updated to version `3.2.0`

### Features

* google ads identify call support for enhanced conversion ([#1710](https://github.com/rudderlabs/rudder-sdk-js/issues/1710)) ([efa70f8](https://github.com/rudderlabs/rudder-sdk-js/commit/efa70f8c219e913913cd481da78edbd1dbe20f50))
* gtm messageId support for track and page ([#1709](https://github.com/rudderlabs/rudder-sdk-js/issues/1709)) ([90df013](https://github.com/rudderlabs/rudder-sdk-js/commit/90df013a028bfac6d8a065d99eb37bdeb3b9156c))
* introduce a new config for if hashing is required ([#1725](https://github.com/rudderlabs/rudder-sdk-js/issues/1725)) ([8c76f90](https://github.com/rudderlabs/rudder-sdk-js/commit/8c76f901b3bf865de50f02c6911707e5d1e6101c))
* onboard bingads enhanced conversions ([#1715](https://github.com/rudderlabs/rudder-sdk-js/issues/1715)) ([e7e27be](https://github.com/rudderlabs/rudder-sdk-js/commit/e7e27be27727271afa52e1d4965776291aaf381e))
* set server side cookies ([#1649](https://github.com/rudderlabs/rudder-sdk-js/issues/1649)) ([8b8ac8f](https://github.com/rudderlabs/rudder-sdk-js/commit/8b8ac8fb2b7fe0903fa383cfcd0388fe3022330c))


### Bug Fixes

* add hashing to user traits of reddit_pixel ([#1728](https://github.com/rudderlabs/rudder-sdk-js/issues/1728)) ([f6f377d](https://github.com/rudderlabs/rudder-sdk-js/commit/f6f377d71566784c0460d7e02e877cd584886ec5))
* update reddit_pixel identify call ([#1717](https://github.com/rudderlabs/rudder-sdk-js/issues/1717)) ([acc21f2](https://github.com/rudderlabs/rudder-sdk-js/commit/acc21f26f891bd4985520d32c0cb6d3b54378cb0))
* user sessions behavior ([#1708](https://github.com/rudderlabs/rudder-sdk-js/issues/1708)) ([84e7174](https://github.com/rudderlabs/rudder-sdk-js/commit/84e71744612c8345dc22b8cb0c9362d104eb35e9))

## [3.2.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-05-10)


Expand Down
18 changes: 16 additions & 2 deletions packages/analytics-js-integrations/CHANGELOG_LATEST.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
## [3.2.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-integrations@3.1.0...@rudderstack/analytics-js-integrations@3.2.0) (2024-05-10)
## [3.3.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-integrations@3.2.0...@rudderstack/analytics-js-integrations@3.3.0) (2024-05-24)

### Dependency Updates

* `@rudderstack/analytics-js-common` updated to version `3.2.0`

### Features

* **criteo:** add support of sha256 hashing method for email ([#1680](https://github.com/rudderlabs/rudder-sdk-js/issues/1680)) ([66e0122](https://github.com/rudderlabs/rudder-sdk-js/commit/66e0122d2bcdb536ab0d69745e05d49806a5348b))
* google ads identify call support for enhanced conversion ([#1710](https://github.com/rudderlabs/rudder-sdk-js/issues/1710)) ([efa70f8](https://github.com/rudderlabs/rudder-sdk-js/commit/efa70f8c219e913913cd481da78edbd1dbe20f50))
* gtm messageId support for track and page ([#1709](https://github.com/rudderlabs/rudder-sdk-js/issues/1709)) ([90df013](https://github.com/rudderlabs/rudder-sdk-js/commit/90df013a028bfac6d8a065d99eb37bdeb3b9156c))
* introduce a new config for if hashing is required ([#1725](https://github.com/rudderlabs/rudder-sdk-js/issues/1725)) ([8c76f90](https://github.com/rudderlabs/rudder-sdk-js/commit/8c76f901b3bf865de50f02c6911707e5d1e6101c))
* onboard bingads enhanced conversions ([#1715](https://github.com/rudderlabs/rudder-sdk-js/issues/1715)) ([e7e27be](https://github.com/rudderlabs/rudder-sdk-js/commit/e7e27be27727271afa52e1d4965776291aaf381e))
* set server side cookies ([#1649](https://github.com/rudderlabs/rudder-sdk-js/issues/1649)) ([8b8ac8f](https://github.com/rudderlabs/rudder-sdk-js/commit/8b8ac8fb2b7fe0903fa383cfcd0388fe3022330c))


### Bug Fixes

* add hashing to user traits of reddit_pixel ([#1728](https://github.com/rudderlabs/rudder-sdk-js/issues/1728)) ([f6f377d](https://github.com/rudderlabs/rudder-sdk-js/commit/f6f377d71566784c0460d7e02e877cd584886ec5))
* update reddit_pixel identify call ([#1717](https://github.com/rudderlabs/rudder-sdk-js/issues/1717)) ([acc21f2](https://github.com/rudderlabs/rudder-sdk-js/commit/acc21f26f891bd4985520d32c0cb6d3b54378cb0))
* user sessions behavior ([#1708](https://github.com/rudderlabs/rudder-sdk-js/issues/1708)) ([84e7174](https://github.com/rudderlabs/rudder-sdk-js/commit/84e71744612c8345dc22b8cb0c9362d104eb35e9))

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ describe('RedditPixel util functions test', () => {
it('should return an object with all non-empty identifiers when provided', () => {
const traits = { email: '[email protected]', externalId: '12345', idfa: '', aaid: null };
const result = createUserIdentifier(traits);
expect(result).toEqual({ email: '[email protected]', externalId: '12345' });
expect(result).toEqual({
email: '973dfe463ec85785f5f95af5ba3906eedb2d931c24e69824a89ea65dba4e813b',
externalId: '5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5',
});
});
it('should return an object with idfa provided through context.device', () => {
const traits = { email: '[email protected]', externalId: '12345', idfa: '', aaid: null };
Expand All @@ -34,9 +37,9 @@ describe('RedditPixel util functions test', () => {
};
const result = createUserIdentifier(traits, context);
expect(result).toEqual({
email: '[email protected]',
externalId: '12345',
idfa: 'idfaid1234',
email: '973dfe463ec85785f5f95af5ba3906eedb2d931c24e69824a89ea65dba4e813b',
externalId: '5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5',
idfa: '1d1e1142069743008fb6b5733bef8a02f9718f3aee9a8584e2d2d36090e58d86',
});
});
it('should return an empty object when called with no arguments', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics-js-integrations/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rudderstack/analytics-js-integrations",
"version": "3.2.0",
"version": "3.3.0",
"private": true,
"description": "RudderStack JavaScript SDK device mode integrations",
"main": "dist/npm/modern/cjs/index.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/analytics-js-integrations/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@
"github": {
"executor": "@jscutlery/semver:github",
"options": {
"tag": "@rudderstack/analytics-js-integrations@3.2.0",
"title": "@rudderstack/analytics-js-integrations@3.2.0",
"discussion-category": "@rudderstack/analytics-js-integrations@3.2.0",
"tag": "@rudderstack/analytics-js-integrations@3.3.0",
"title": "@rudderstack/analytics-js-integrations@3.3.0",
"discussion-category": "@rudderstack/analytics-js-integrations@3.3.0",
"notesFile": "./packages/analytics-js-integrations/CHANGELOG_LATEST.md"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
}

init() {
const traits = this.analytics.getUserTraits();
loadNativeSdk(this.pixelId, createUserIdentifier(traits));

Check warning on line 40 in packages/analytics-js-integrations/src/integrations/RedditPixel/browser.js

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-integrations/src/integrations/RedditPixel/browser.js#L39-L40

Added lines #L39 - L40 were not covered by tests
}

isLoaded() {
Expand All @@ -50,17 +50,17 @@

identify(rudderElement) {
if (!verifySignUpMapped(this.eventMappingFromConfig)) {
window.rdt('track', 'SignUp');

Check warning on line 53 in packages/analytics-js-integrations/src/integrations/RedditPixel/browser.js

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-integrations/src/integrations/RedditPixel/browser.js#L53

Added line #L53 was not covered by tests
}
const userIdentifier = createUserIdentifier(

Check warning on line 55 in packages/analytics-js-integrations/src/integrations/RedditPixel/browser.js

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-integrations/src/integrations/RedditPixel/browser.js#L55

Added line #L55 was not covered by tests
rudderElement.message?.context?.traits,
rudderElement.context,
rudderElement.message?.context,
);
/**
* Doc Link : https://business.reddithelp.com/helpcenter/s/article/Reddit-Pixel-Advanced-Matching
*/
if (Object.keys(userIdentifier).length > 0) {
window.rdt('init', this.pixelId, userIdentifier);

Check warning on line 63 in packages/analytics-js-integrations/src/integrations/RedditPixel/browser.js

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-integrations/src/integrations/RedditPixel/browser.js#L63

Added line #L63 was not covered by tests
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { removeUndefinedAndNullAndEmptyValues } from '../../utils/commonUtils';
import sha256 from 'crypto-js/sha256';
import {
isDefinedAndNotNullAndNotEmpty,
removeUndefinedAndNullAndEmptyValues,
} from '../../utils/commonUtils';

const isAppleFamily = platform => {
const appleOsNames = ['ios', 'watchos', 'ipados', 'tvos'];
Expand All @@ -11,13 +15,23 @@
const createUserIdentifier = (traits = {}, context = {}) => {
const userIdentifier = {};
const { email, externalId, idfa, aaid } = traits;
userIdentifier.email = email;
userIdentifier.externalId = externalId;
if (isDefinedAndNotNullAndNotEmpty(email)) {
userIdentifier.email = sha256(email).toString();
}
if (isDefinedAndNotNullAndNotEmpty(externalId)) {
userIdentifier.externalId = sha256(externalId).toString();
}
if (isAppleFamily(context.os?.name)) {
userIdentifier.idfa = idfa || context.device?.advertisingId;
const tempIdfa = idfa || context.device?.advertisingId;
if (isDefinedAndNotNullAndNotEmpty(tempIdfa)) {
userIdentifier.idfa = sha256(tempIdfa).toString();
}
}
if (context.os?.name === 'android') {
userIdentifier.aaid = aaid || context.device?.advertisingId;
const tempAaid = aaid || context.device?.advertisingId;
if (isDefinedAndNotNullAndNotEmpty(tempAaid)) {
userIdentifier.aaid = sha256(tempAaid).toString();

Check warning on line 33 in packages/analytics-js-integrations/src/integrations/RedditPixel/utils.js

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-integrations/src/integrations/RedditPixel/utils.js#L33

Added line #L33 was not covered by tests
}
}
return removeUndefinedAndNullAndEmptyValues(userIdentifier);
};
Expand Down
10 changes: 10 additions & 0 deletions packages/analytics-js-plugins/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).

## [3.0.6](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-05-24)

### Dependency Updates

* `@rudderstack/analytics-js-common` updated to version `3.0.5`

### Bug Fixes

* user sessions behavior ([#1708](https://github.com/rudderlabs/rudder-sdk-js/issues/1708)) ([84e7174](https://github.com/rudderlabs/rudder-sdk-js/commit/84e71744612c8345dc22b8cb0c9362d104eb35e9))

## [3.0.5](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-05-10)


Expand Down
7 changes: 5 additions & 2 deletions packages/analytics-js-plugins/CHANGELOG_LATEST.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
## [3.0.5](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected].4...@rudderstack/[email protected].5) (2024-05-10)
## [3.0.6](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected].5...@rudderstack/[email protected].6) (2024-05-24)

### Dependency Updates

* `@rudderstack/analytics-js-common` updated to version `3.0.5`

### Bug Fixes

* update dmt plugin to use activeDataplaneUrl state value ([#1711](https://github.com/rudderlabs/rudder-sdk-js/issues/1711)) ([f57bdae](https://github.com/rudderlabs/rudder-sdk-js/commit/f57bdae1a92de456e469e321b792ed2d11a9ea25))
* user sessions behavior ([#1708](https://github.com/rudderlabs/rudder-sdk-js/issues/1708)) ([84e7174](https://github.com/rudderlabs/rudder-sdk-js/commit/84e71744612c8345dc22b8cb0c9362d104eb35e9))

2 changes: 1 addition & 1 deletion packages/analytics-js-plugins/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rudderstack/analytics-js-plugins",
"version": "3.0.5",
"version": "3.0.6",
"private": true,
"description": "RudderStack JavaScript SDK plugins",
"main": "dist/npm/modern/cjs/index.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/analytics-js-plugins/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@
"github": {
"executor": "@jscutlery/semver:github",
"options": {
"tag": "@rudderstack/[email protected].5",
"title": "@rudderstack/[email protected].5",
"discussion-category": "@rudderstack/[email protected].5",
"tag": "@rudderstack/[email protected].6",
"title": "@rudderstack/[email protected].6",
"discussion-category": "@rudderstack/[email protected].6",
"notesFile": "./packages/analytics-js-plugins/CHANGELOG_LATEST.md"
}
}
Expand Down
12 changes: 12 additions & 0 deletions packages/analytics-js-service-worker/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).

## [3.1.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-05-24)


### Features

* **analytics-js-service-worker:** auto append batch endpoint ([#1718](https://github.com/rudderlabs/rudder-sdk-js/issues/1718)) ([3e853a5](https://github.com/rudderlabs/rudder-sdk-js/commit/3e853a5c8a2f9dcab614ad6d5e6c9a54f3f61a57))


### Bug Fixes

* user sessions behavior ([#1708](https://github.com/rudderlabs/rudder-sdk-js/issues/1708)) ([84e7174](https://github.com/rudderlabs/rudder-sdk-js/commit/84e71744612c8345dc22b8cb0c9362d104eb35e9))

## [3.0.6](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-03-21)

## [3.0.5](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-03-01)
Expand Down
12 changes: 11 additions & 1 deletion packages/analytics-js-service-worker/CHANGELOG_LATEST.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
## [3.0.6](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-03-21)
## [3.1.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-05-24)


### Features

* **analytics-js-service-worker:** auto append batch endpoint ([#1718](https://github.com/rudderlabs/rudder-sdk-js/issues/1718)) ([3e853a5](https://github.com/rudderlabs/rudder-sdk-js/commit/3e853a5c8a2f9dcab614ad6d5e6c9a54f3f61a57))


### Bug Fixes

* user sessions behavior ([#1708](https://github.com/rudderlabs/rudder-sdk-js/issues/1708)) ([84e7174](https://github.com/rudderlabs/rudder-sdk-js/commit/84e71744612c8345dc22b8cb0c9362d104eb35e9))

2 changes: 1 addition & 1 deletion packages/analytics-js-service-worker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rudderstack/analytics-js-service-worker",
"version": "3.0.6",
"version": "3.1.0",
"description": "RudderStack JavaScript Service Worker SDK",
"main": "dist/npm/umd/index.js",
"module": "dist/npm/esm/index.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/analytics-js-service-worker/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@
"github": {
"executor": "@jscutlery/semver:github",
"options": {
"tag": "@rudderstack/analytics-js-service-worker@3.0.6",
"title": "rudderstack/analytics-js-service-worker@3.0.6",
"discussion-category": "rudderstack/analytics-js-service-worker@3.0.6",
"tag": "@rudderstack/analytics-js-service-worker@3.1.0",
"title": "rudderstack/analytics-js-service-worker@3.1.0",
"discussion-category": "rudderstack/analytics-js-service-worker@3.1.0",
"notesFile": "./packages/analytics-js-service-worker/CHANGELOG_LATEST.md"
}
}
Expand Down
Loading
Loading