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 Nov 22, 2024
2 parents 7a77300 + 21f706e commit 134d779
Show file tree
Hide file tree
Showing 74 changed files with 917 additions and 222 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ permissions:

env:
NODE_OPTIONS: "--no-warnings"
CACHE_CONTROL: "\"max-age=3600\"" # "\"no-store\""
CACHE_CONTROL: "\"no-store\"" # "\"max-age=3600\""

jobs:
deploy:
Expand Down
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.54.0",
"version": "3.65.0",
"private": true,
"description": "Monorepo for RudderStack Analytics JS SDK",
"workspaces": [
Expand Down
79 changes: 79 additions & 0 deletions packages/analytics-js-common/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,85 @@

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

## [3.14.12](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-11-22)


### Bug Fixes

* revert temp utility ([2f60cae](https://github.com/rudderlabs/rudder-sdk-js/commit/2f60caeea0dc9944bf9434d5981952c8e85eef38))

## [3.14.11](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-11-22)


### Bug Fixes

* add extra temporary import for testing ([a865344](https://github.com/rudderlabs/rudder-sdk-js/commit/a8653447fea5913421ab9c9cb36fd66611f68657))
* undefined property ([db84fda](https://github.com/rudderlabs/rudder-sdk-js/commit/db84fda21fb6a21a4c19c085e9214fa2ee2cff0f))

## [3.14.10](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-11-22)


### Bug Fixes

* restore data sanitization changes but avoid using api overloads ([d0913ae](https://github.com/rudderlabs/rudder-sdk-js/commit/d0913ae32a8c63def26c081c7570a9960dcd1ebf))

## [3.14.9](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-11-22)


### Bug Fixes

* restore data sanitization changes ([2a13e7c](https://github.com/rudderlabs/rudder-sdk-js/commit/2a13e7c463b2d480f6d9a23f32abe4e56f6557d4))

## [3.14.8](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-11-22)


### Bug Fixes

* sanitize data directly in plugins ([d8cc780](https://github.com/rudderlabs/rudder-sdk-js/commit/d8cc7808e21baeb26782596efb542713bd38a09f))

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


### Bug Fixes

* restore event api overloads changes ([ebb1f7c](https://github.com/rudderlabs/rudder-sdk-js/commit/ebb1f7ca924972993e2da25036ae994f24c229dd))

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


### Bug Fixes

* use utility in a different method ([4b9e0cc](https://github.com/rudderlabs/rudder-sdk-js/commit/4b9e0ccd85ef33c00e41072a10a7e27b479c3c43))

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


### Bug Fixes

* remove replacer ([e42ba9f](https://github.com/rudderlabs/rudder-sdk-js/commit/e42ba9f92b2d021f27ac2dc300624db6e029ff0e))

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


### Bug Fixes

* remove recursive traversal ([26f2468](https://github.com/rudderlabs/rudder-sdk-js/commit/26f2468510050885b159704ad06d28b69d582340))

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


### Bug Fixes

* revert api sanitization ([4e5a1ce](https://github.com/rudderlabs/rudder-sdk-js/commit/4e5a1ce9326f946d05c9250740244d8fcea23115))
* sanitize api inputs ([ad9ed2b](https://github.com/rudderlabs/rudder-sdk-js/commit/ad9ed2b1eab60960aea333a8da93af06d21ce25b))

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


### Bug Fixes

* avoid using 'this' and prevent cache ([ab60ea4](https://github.com/rudderlabs/rudder-sdk-js/commit/ab60ea4a047c676fa774bb7ec9fdb1dbcc5ecf77))

## [3.14.1](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-11-19)


Expand Down
4 changes: 2 additions & 2 deletions packages/analytics-js-common/CHANGELOG_LATEST.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## [3.14.1](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected].0...@rudderstack/[email protected].1) (2024-11-19)
## [3.14.12](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected].11...@rudderstack/[email protected].12) (2024-11-22)


### Bug Fixes

* don't sanitize event method overload inputs ([b819d61](https://github.com/rudderlabs/rudder-sdk-js/commit/b819d61ea278c2f553c63495ecf5bd0305550dfe))
* revert temp utility ([2f60cae](https://github.com/rudderlabs/rudder-sdk-js/commit/2f60caeea0dc9944bf9434d5981952c8e85eef38))

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.14.1",
"version": "3.14.12",
"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 @@ -51,9 +51,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].12",
"title": "@rudderstack/[email protected].12",
"discussion-category": "@rudderstack/[email protected].12",
"notesFile": "./packages/analytics-js-common/CHANGELOG_LATEST.md"
}
}
Expand Down
13 changes: 7 additions & 6 deletions packages/analytics-js-common/src/utilities/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import {
import { isObjectLiteralAndNotNull } from './object';

const JSON_STRINGIFY = 'JSONStringify';
const JSON_UTIL = 'JSON';
const BIG_INT_PLACEHOLDER = '[BigInt]';
const CIRCULAR_REFERENCE_PLACEHOLDER = '[Circular Reference]';

const getCircularReplacer = (
excludeNull?: boolean,
Expand Down Expand Up @@ -41,7 +44,7 @@ const getCircularReplacer = (

if (ancestors.includes(value)) {
logger?.warn(CIRCULAR_REFERENCE_WARNING(JSON_STRINGIFY, key));
return '[Circular Reference]';
return CIRCULAR_REFERENCE_PLACEHOLDER;
}

ancestors.push(value);
Expand Down Expand Up @@ -71,8 +74,6 @@ const stringifyWithoutCircular = <T = Record<string, any> | any[] | number | str
}
};

const JSON_UTIL = 'JSON';

/**
* Utility method for JSON stringify object excluding null values & circular references
*
Expand Down Expand Up @@ -100,7 +101,7 @@ const getReplacer = (logger?: ILogger): ((key: string, value: any) => any) => {
return function replacer(key, value): any {
if (isBigInt(value)) {
logger?.warn(BAD_DATA_WARNING(JSON_UTIL, key));
return '[BigInt]'; // Replace BigInt values
return BIG_INT_PLACEHOLDER; // Replace BigInt values
}

// `this` is the object that value is contained in, i.e., its direct parent.
Expand All @@ -113,7 +114,7 @@ const getReplacer = (logger?: ILogger): ((key: string, value: any) => any) => {
// Check for circular references (if the value is already in the ancestors)
if (ancestors.includes(value)) {
logger?.warn(BAD_DATA_WARNING(JSON_UTIL, key));
return '[Circular Reference]';
return CIRCULAR_REFERENCE_PLACEHOLDER;
}

// Add current value to ancestors
Expand Down Expand Up @@ -167,4 +168,4 @@ const getSanitizedValue = <T = any>(value: T, logger?: ILogger): T => {
return newValue;
};

export { stringifyWithoutCircular, getSanitizedValue, stringifyData };
export { stringifyWithoutCircular, stringifyData, getSanitizedValue };
55 changes: 55 additions & 0 deletions packages/analytics-js-cookies/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,61 @@

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

## [0.4.15](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-11-22)

### Dependency Updates

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

### Dependency Updates

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

### Dependency Updates

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

### Dependency Updates

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

### Dependency Updates

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

### Dependency Updates

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

### Dependency Updates

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

### Dependency Updates

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

### Dependency Updates

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

### Dependency Updates

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

### Dependency Updates

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

### Dependency Updates
Expand Down
4 changes: 2 additions & 2 deletions packages/analytics-js-cookies/CHANGELOG_LATEST.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## [0.4.4](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected].3...@rudderstack/[email protected].4) (2024-11-19)
## [0.4.15](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected].14...@rudderstack/[email protected].15) (2024-11-22)

### Dependency Updates

* `@rudderstack/analytics-js-common` updated to version `3.14.1`
* `@rudderstack/analytics-js-common` updated to version `3.14.12`
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.4.4",
"version": "0.4.15",
"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 @@ -51,9 +51,9 @@
"github": {
"executor": "@jscutlery/semver:github",
"options": {
"tag": "@rudderstack/[email protected].4",
"title": "@rudderstack/[email protected].4",
"discussion-category": "@rudderstack/[email protected].4",
"tag": "@rudderstack/[email protected].15",
"title": "@rudderstack/[email protected].15",
"discussion-category": "@rudderstack/[email protected].15",
"notesFile": "./packages/analytics-js-cookies/CHANGELOG_LATEST.md"
}
}
Expand Down
Loading

0 comments on commit 134d779

Please sign in to comment.