Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
saikumarrs committed Jul 4, 2024
2 parents 85cac23 + 157d2cb commit 2dcbda6
Show file tree
Hide file tree
Showing 44 changed files with 335 additions and 93 deletions.
22 changes: 11 additions & 11 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.17.0",
"version": "3.18.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.6.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-07-04)


### Features

* update itp implementation based on load options ([#1777](https://github.com/rudderlabs/rudder-sdk-js/issues/1777)) ([75aa117](https://github.com/rudderlabs/rudder-sdk-js/commit/75aa117911b1811b21576c95d2692d7f8580176c))

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


Expand Down
10 changes: 2 additions & 8 deletions packages/analytics-js-common/CHANGELOG_LATEST.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
## [3.5.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-common@3.4.0...@rudderstack/analytics-js-common@3.5.0) (2024-06-21)
## [3.6.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-common@3.5.0...@rudderstack/analytics-js-common@3.6.0) (2024-07-04)


### Features

* add the ability to lock plugins version ([#1749](https://github.com/rudderlabs/rudder-sdk-js/issues/1749)) ([e2e1620](https://github.com/rudderlabs/rudder-sdk-js/commit/e2e1620677c90169fca35ed3e9057ced3b88a299))


### Bug Fixes

* improve flushing events on page leave ([#1754](https://github.com/rudderlabs/rudder-sdk-js/issues/1754)) ([1be420f](https://github.com/rudderlabs/rudder-sdk-js/commit/1be420fae16b68629789d2ba37e16e6a6e00017c))
* remove data residency feature ([#1748](https://github.com/rudderlabs/rudder-sdk-js/issues/1748)) ([870a7ec](https://github.com/rudderlabs/rudder-sdk-js/commit/870a7ecf3cd251d88c207d9815c2f16c6e9a6883))
* update itp implementation based on load options ([#1777](https://github.com/rudderlabs/rudder-sdk-js/issues/1777)) ([75aa117](https://github.com/rudderlabs/rudder-sdk-js/commit/75aa117911b1811b21576c95d2692d7f8580176c))

11 changes: 11 additions & 0 deletions packages/analytics-js-common/__tests__/utilities/string.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
tryStringify,
toBase64,
fromBase64,
removeLeadingPeriod,
} from '../../src/utilities/string';

describe('Common Utils - String', () => {
Expand Down Expand Up @@ -101,4 +102,14 @@ describe('Common Utils - String', () => {
expect(fromBase64('8J+Riw==')).toBe('👋');
});
});

describe('removeLeadingPeriod', () => {
it('should remove leading dot from the string if any', () => {
expect(removeLeadingPeriod('.sample')).toBe('sample');
expect(removeLeadingPeriod('sample.')).toBe('sample.');
expect(removeLeadingPeriod('..sample')).toBe('sample');
expect(removeLeadingPeriod('sample')).toBe('sample');
expect(removeLeadingPeriod('sample.com')).toBe('sample.com');
});
});
});
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.5.0",
"version": "3.6.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.5.0",
"title": "@rudderstack/analytics-js-common@3.5.0",
"discussion-category": "@rudderstack/analytics-js-common@3.5.0",
"tag": "@rudderstack/analytics-js-common@3.6.0",
"title": "@rudderstack/analytics-js-common@3.6.0",
"discussion-category": "@rudderstack/analytics-js-common@3.6.0",
"notesFile": "./packages/analytics-js-common/CHANGELOG_LATEST.md"
}
}
Expand Down
4 changes: 3 additions & 1 deletion packages/analytics-js-common/src/utilities/string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ const trim = (value: string): string => value.replace(/^\s+|\s+$/gm, '');

const removeDoubleSpaces = (value: string): string => value.replace(/ {2,}/g, ' ');

const removeLeadingPeriod = (value: string): string => value.replace(/^\.+/, '');

/**
* A function to convert values to string
* @param val input value
Expand Down Expand Up @@ -61,4 +63,4 @@ const toBase64 = (value: string): string => bytesToBase64(new TextEncoder().enco
*/
const fromBase64 = (value: string): string => new TextDecoder().decode(base64ToBytes(value));

export { trim, removeDoubleSpaces, tryStringify, toBase64, fromBase64 };
export { trim, removeDoubleSpaces, tryStringify, toBase64, fromBase64, removeLeadingPeriod };
5 changes: 5 additions & 0 deletions packages/analytics-js-cookies/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

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

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

### Dependency Updates

* `@rudderstack/analytics-js-common` updated to version `0.3.0`
## [0.3.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-07-01)


Expand Down
8 changes: 3 additions & 5 deletions packages/analytics-js-cookies/CHANGELOG_LATEST.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
## [0.3.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-cookies@0.2.0...@rudderstack/[email protected].0) (2024-07-01)
## [0.3.1](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-cookies@0.3.0...@rudderstack/[email protected].1) (2024-07-04)

### Dependency Updates

### Features

* expose exclusive cookies functions for server and browser environments ([#1774](https://github.com/rudderlabs/rudder-sdk-js/issues/1774)) ([428e5cd](https://github.com/rudderlabs/rudder-sdk-js/commit/428e5cd96c389ab0944fa9255d6d68c56c71908c))

* `@rudderstack/analytics-js-common` updated to version `0.3.0`
2 changes: 1 addition & 1 deletion packages/analytics-js-cookies/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rudderstack/analytics-js-cookies",
"version": "0.3.0",
"version": "0.3.1",
"description": "RudderStack JavaScript SDK Cookies Utilities",
"main": "dist/npm/modern/cjs/index.cjs",
"module": "dist/npm/modern/esm/index.mjs",
Expand Down
6 changes: 3 additions & 3 deletions packages/analytics-js-cookies/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@
"github": {
"executor": "@jscutlery/semver:github",
"options": {
"tag": "@rudderstack/[email protected].0",
"title": "@rudderstack/[email protected].0",
"discussion-category": "@rudderstack/[email protected].0",
"tag": "@rudderstack/[email protected].1",
"title": "@rudderstack/[email protected].1",
"discussion-category": "@rudderstack/[email protected].1",
"notesFile": "./packages/analytics-js-cookies/CHANGELOG_LATEST.md"
}
}
Expand Down
5 changes: 5 additions & 0 deletions packages/analytics-js-integrations/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

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

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

### Dependency Updates

* `@rudderstack/analytics-js-common` updated to version `3.4.1`
## [3.4.1](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-06-27)


Expand Down
8 changes: 3 additions & 5 deletions packages/analytics-js-integrations/CHANGELOG_LATEST.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
## [3.4.1](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected].0...@rudderstack/[email protected].1) (2024-06-27)
## [3.4.2](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected].1...@rudderstack/[email protected].2) (2024-07-04)

### Dependency Updates

### Bug Fixes

* remove pollyfill url from command bar destination ([#1768](https://github.com/rudderlabs/rudder-sdk-js/issues/1768)) ([a98e714](https://github.com/rudderlabs/rudder-sdk-js/commit/a98e71485570e09214d2a59384f41c17ec79f37a))

* `@rudderstack/analytics-js-common` updated to version `3.4.1`
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.4.1",
"version": "3.4.2",
"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/[email protected].1",
"title": "@rudderstack/[email protected].1",
"discussion-category": "@rudderstack/[email protected].1",
"tag": "@rudderstack/[email protected].2",
"title": "@rudderstack/[email protected].2",
"discussion-category": "@rudderstack/[email protected].2",
"notesFile": "./packages/analytics-js-integrations/CHANGELOG_LATEST.md"
}
}
Expand Down
7 changes: 7 additions & 0 deletions packages/analytics-js-plugins/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.1](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-07-04)

### Dependency Updates

* `@rudderstack/analytics-js-common` updated to version `3.3.0`
* `@rudderstack/analytics-js` updated to version `3.3.0`
* `@rudderstack/analytics-js-cookies` updated to version `3.3.0`
## [3.3.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-07-01)

### Dependency Updates
Expand Down
12 changes: 4 additions & 8 deletions packages/analytics-js-plugins/CHANGELOG_LATEST.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
## [3.3.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-plugins@3.2.1...@rudderstack/[email protected].0) (2024-07-01)
## [3.3.1](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-plugins@3.3.0...@rudderstack/[email protected].1) (2024-07-04)

### Dependency Updates

* `@rudderstack/analytics-js` updated to version `3.2.1`
* `@rudderstack/analytics-js-cookies` updated to version `3.2.1`

### Features

* expose exclusive cookies functions for server and browser environments ([#1774](https://github.com/rudderlabs/rudder-sdk-js/issues/1774)) ([428e5cd](https://github.com/rudderlabs/rudder-sdk-js/commit/428e5cd96c389ab0944fa9255d6d68c56c71908c))

* `@rudderstack/analytics-js-common` updated to version `3.3.0`
* `@rudderstack/analytics-js` updated to version `3.3.0`
* `@rudderstack/analytics-js-cookies` updated to version `3.3.0`
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.3.0",
"version": "3.3.1",
"private": true,
"description": "RudderStack JavaScript SDK plugins",
"main": "dist/npm/modern/cjs/index.cjs",
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].0",
"title": "@rudderstack/[email protected].0",
"discussion-category": "@rudderstack/[email protected].0",
"tag": "@rudderstack/[email protected].1",
"title": "@rudderstack/[email protected].1",
"discussion-category": "@rudderstack/[email protected].1",
"notesFile": "./packages/analytics-js-plugins/CHANGELOG_LATEST.md"
}
}
Expand Down
5 changes: 5 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,11 @@

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

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

### Dependency Updates

* `@rudderstack/analytics-js-common` updated to version `3.1.2`
## [3.1.2](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-06-21)

### Dependency Updates
Expand Down
9 changes: 2 additions & 7 deletions packages/analytics-js-service-worker/CHANGELOG_LATEST.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
## [3.1.2](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected].1...@rudderstack/[email protected].2) (2024-06-21)
## [3.1.3](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected].2...@rudderstack/[email protected].3) (2024-07-04)

### Dependency Updates

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

### Bug Fixes

* improve flushing events on page leave ([#1754](https://github.com/rudderlabs/rudder-sdk-js/issues/1754)) ([1be420f](https://github.com/rudderlabs/rudder-sdk-js/commit/1be420fae16b68629789d2ba37e16e6a6e00017c))

* `@rudderstack/analytics-js-common` updated to version `3.1.2`
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.1.2",
"version": "3.1.3",
"description": "RudderStack JavaScript Service Worker SDK",
"main": "dist/npm/cjs/index.cjs",
"module": "dist/npm/esm/index.mjs",
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/[email protected].2",
"title": "rudderstack/[email protected].2",
"discussion-category": "rudderstack/[email protected].2",
"tag": "@rudderstack/[email protected].3",
"title": "rudderstack/[email protected].3",
"discussion-category": "rudderstack/[email protected].3",
"notesFile": "./packages/analytics-js-service-worker/CHANGELOG_LATEST.md"
}
}
Expand Down
12 changes: 12 additions & 0 deletions packages/analytics-js/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.6.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-07-04)

### Dependency Updates

* `@rudderstack/analytics-js-cookies` updated to version `3.5.2`
* `@rudderstack/analytics-js-common` updated to version `3.5.2`
* `@rudderstack/analytics-js-plugins` updated to version `3.5.2`

### Features

* update itp implementation based on load options ([#1777](https://github.com/rudderlabs/rudder-sdk-js/issues/1777)) ([75aa117](https://github.com/rudderlabs/rudder-sdk-js/commit/75aa117911b1811b21576c95d2692d7f8580176c))

## [3.5.2](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-07-01)

### Dependency Updates
Expand Down
Loading

0 comments on commit 2dcbda6

Please sign in to comment.