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.3.0 #1668

Merged
merged 16 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
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
18 changes: 9 additions & 9 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.1.0",
"version": "3.3.0",
"private": true,
"description": "Monorepo for RudderStack Analytics JS SDK",
"workspaces": [
Expand Down
13 changes: 13 additions & 0 deletions packages/analytics-js-common/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

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-03-22)


### Features

* add date type in apiobject and apioptions ([#1666](https://github.com/rudderlabs/rudder-sdk-js/issues/1666)) ([a1771e8](https://github.com/rudderlabs/rudder-sdk-js/commit/a1771e8015a38a1edc2a3c24dc700a5fa5b00796))


### Bug Fixes

* optimize localstorage transactions ([#1651](https://github.com/rudderlabs/rudder-sdk-js/issues/1651)) ([1289217](https://github.com/rudderlabs/rudder-sdk-js/commit/12892176578dd3628fded2311ea2548e3ff5802c))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The term "localstorage" might be more accurately written as "localStorage" to reflect the correct API name in web development. Consider updating this for clarity and consistency with web standards.

- * optimize localstorage transactions ([#1651](https://github.com/rudderlabs/rudder-sdk-js/issues/1651)) ([1289217](https://github.com/rudderlabs/rudder-sdk-js/commit/12892176578dd3628fded2311ea2548e3ff5802c))
+ * optimize localStorage transactions ([#1651](https://github.com/rudderlabs/rudder-sdk-js/issues/1651)) ([1289217](https://github.com/rudderlabs/rudder-sdk-js/commit/12892176578dd3628fded2311ea2548e3ff5802c))

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
* optimize localstorage transactions ([#1651](https://github.com/rudderlabs/rudder-sdk-js/issues/1651)) ([1289217](https://github.com/rudderlabs/rudder-sdk-js/commit/12892176578dd3628fded2311ea2548e3ff5802c))
* optimize localStorage transactions ([#1651](https://github.com/rudderlabs/rudder-sdk-js/issues/1651)) ([1289217](https://github.com/rudderlabs/rudder-sdk-js/commit/12892176578dd3628fded2311ea2548e3ff5802c))

* type issues ([#1663](https://github.com/rudderlabs/rudder-sdk-js/issues/1663)) ([1f114a1](https://github.com/rudderlabs/rudder-sdk-js/commit/1f114a19ac14ffd9af6ae876a54d4d19afd80d65))

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

## [3.0.0-beta.19](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-03-01)
Expand Down
13 changes: 12 additions & 1 deletion packages/analytics-js-common/CHANGELOG_LATEST.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
## [3.0.1](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-03-22)


### Features

* add date type in apiobject and apioptions ([#1666](https://github.com/rudderlabs/rudder-sdk-js/issues/1666)) ([a1771e8](https://github.com/rudderlabs/rudder-sdk-js/commit/a1771e8015a38a1edc2a3c24dc700a5fa5b00796))


### Bug Fixes

* optimize localstorage transactions ([#1651](https://github.com/rudderlabs/rudder-sdk-js/issues/1651)) ([1289217](https://github.com/rudderlabs/rudder-sdk-js/commit/12892176578dd3628fded2311ea2548e3ff5802c))
* type issues ([#1663](https://github.com/rudderlabs/rudder-sdk-js/issues/1663)) ([1f114a1](https://github.com/rudderlabs/rudder-sdk-js/commit/1f114a19ac14ffd9af6ae876a54d4d19afd80d65))

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.0.1",
"version": "3.1.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.0.1",
"title": "@rudderstack/analytics-js-common@3.0.1",
"discussion-category": "@rudderstack/analytics-js-common@3.0.1",
"tag": "@rudderstack/analytics-js-common@3.1.0",
"title": "@rudderstack/analytics-js-common@3.1.0",
"discussion-category": "@rudderstack/analytics-js-common@3.1.0",
"notesFile": "./packages/analytics-js-common/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.0.2](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-03-22)

### Dependency Updates

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

### Dependency Updates
Expand Down
4 changes: 2 additions & 2 deletions packages/analytics-js-integrations/CHANGELOG_LATEST.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## [3.0.1](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected].0-beta.26...@rudderstack/[email protected].1) (2024-03-21)
## [3.0.2](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected].1...@rudderstack/[email protected].2) (2024-03-22)

### Dependency Updates

* `@rudderstack/analytics-js-common` updated to version `3.0.0`
* `@rudderstack/analytics-js-common` updated to version `3.0.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.0.1",
"version": "3.0.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
17 changes: 17 additions & 0 deletions packages/analytics-js-plugins/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@

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

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


### Bug Fixes

* **analytics-js-plugins:** add backward compatibility for storage api ([#1669](https://github.com/rudderlabs/rudder-sdk-js/issues/1669)) ([83eef03](https://github.com/rudderlabs/rudder-sdk-js/commit/83eef031152cc954ae4bb692bf6ddb73b5b170c8))

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

### Dependency Updates

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

### Bug Fixes

* optimize localstorage transactions ([#1651](https://github.com/rudderlabs/rudder-sdk-js/issues/1651)) ([1289217](https://github.com/rudderlabs/rudder-sdk-js/commit/12892176578dd3628fded2311ea2548e3ff5802c))

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

### Dependency Updates
Expand Down
8 changes: 5 additions & 3 deletions packages/analytics-js-plugins/CHANGELOG_LATEST.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## [3.0.1](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected].0-beta.21...@rudderstack/[email protected].1) (2024-03-21)
## [3.0.3](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected].2...@rudderstack/[email protected].3) (2024-03-22)

### Dependency Updates

* `@rudderstack/analytics-js-common` updated to version `3.0.0`
### Bug Fixes

* **analytics-js-plugins:** add backward compatibility for storage api ([#1669](https://github.com/rudderlabs/rudder-sdk-js/issues/1669)) ([83eef03](https://github.com/rudderlabs/rudder-sdk-js/commit/83eef031152cc954ae4bb692bf6ddb73b5b170c8))

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.1",
"version": "3.0.3",
"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].1",
"title": "@rudderstack/[email protected].1",
"discussion-category": "@rudderstack/[email protected].1",
"tag": "@rudderstack/[email protected].3",
"title": "@rudderstack/[email protected].3",
"discussion-category": "@rudderstack/[email protected].3",
"notesFile": "./packages/analytics-js-plugins/CHANGELOG_LATEST.md"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import type { Nullable } from '@rudderstack/analytics-js-common/types/Nullable';
import type { ILogger } from '@rudderstack/analytics-js-common/types/Logger';
import type { BatchOpts, QueueOpts } from '@rudderstack/analytics-js-common/types/LoadOptions';
import { isDefined, isNullOrUndefined } from '@rudderstack/analytics-js-common/utilities/checks';
import { isDefined, isFunction, isNullOrUndefined } from '@rudderstack/analytics-js-common/utilities/checks';
import { LOCAL_STORAGE } from '@rudderstack/analytics-js-common/constants/storages';
import { generateUUID } from '@rudderstack/analytics-js-common/utilities/uuId';
import type {
Expand Down Expand Up @@ -189,7 +189,7 @@
value?: Nullable<QueueItem<QueueItemData>[] | Record<string, any>> | number,
) {
if (isNullOrUndefined(value)) {
this.store.remove(name);

Check warning on line 192 in packages/analytics-js-plugins/src/utilities/retryQueue/RetryQueue.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-plugins/src/utilities/retryQueue/RetryQueue.ts#L192

Added line #L192 was not covered by tests
} else {
this.store.set(name, value);
}
Expand Down Expand Up @@ -539,13 +539,13 @@
this.setStorageEntry(QueueStatuses.ACK, this.schedule.now());

if (this.reclaimStartVal != null) {
this.reclaimStartVal = null;
this.setStorageEntry(QueueStatuses.RECLAIM_START, null);

Check warning on line 543 in packages/analytics-js-plugins/src/utilities/retryQueue/RetryQueue.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-plugins/src/utilities/retryQueue/RetryQueue.ts#L542-L543

Added lines #L542 - L543 were not covered by tests
}

if (this.reclaimEndVal != null) {
this.reclaimEndVal = null;
this.setStorageEntry(QueueStatuses.RECLAIM_END, null);

Check warning on line 548 in packages/analytics-js-plugins/src/utilities/retryQueue/RetryQueue.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-plugins/src/utilities/retryQueue/RetryQueue.ts#L547-L548

Added lines #L547 - L548 were not covered by tests
}

this.schedule.run(this.ack, this.timeouts.ackTimer, ScheduleModes.ASAP);
Expand Down Expand Up @@ -705,7 +705,21 @@
};
const findOtherQueues = (name: string): IStore[] => {
const res: IStore[] = [];
const storageKeys = this.store.getOriginalEngine().keys();
const storageEngine = this.store.getOriginalEngine();
let storageKeys = [];
// 'keys' API is not supported by all the core SDK versions
// Hence, we need this backward compatibility check
if (isFunction(storageEngine.keys)) {
storageKeys = storageEngine.keys();
} else {
for (let i = 0; i < storageEngine.length; i++) {
const key = storageEngine.key(i);

Check warning on line 716 in packages/analytics-js-plugins/src/utilities/retryQueue/RetryQueue.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-plugins/src/utilities/retryQueue/RetryQueue.ts#L715-L716

Added lines #L715 - L716 were not covered by tests
if (key) {
storageKeys.push(key);

Check warning on line 718 in packages/analytics-js-plugins/src/utilities/retryQueue/RetryQueue.ts

View check run for this annotation

Codecov / codecov/patch

packages/analytics-js-plugins/src/utilities/retryQueue/RetryQueue.ts#L718

Added line #L718 was not covered by tests
}
}
}

storageKeys.forEach((k: string) => {
const keyParts: string[] = k ? k.split('.') : [];

Expand Down
18 changes: 18 additions & 0 deletions packages/analytics-js/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@

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

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

### Dependency Updates

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

### Dependency Updates

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

### Bug Fixes

* optimize localstorage transactions ([#1651](https://github.com/rudderlabs/rudder-sdk-js/issues/1651)) ([1289217](https://github.com/rudderlabs/rudder-sdk-js/commit/12892176578dd3628fded2311ea2548e3ff5802c))
saikumarrs marked this conversation as resolved.
Show resolved Hide resolved
* replace polyfillio with fastly ([#1664](https://github.com/rudderlabs/rudder-sdk-js/issues/1664)) ([24d3a0b](https://github.com/rudderlabs/rudder-sdk-js/commit/24d3a0b383f58b79fc1970d0c74761de30bb3f4a))
saikumarrs marked this conversation as resolved.
Show resolved Hide resolved
* type issues ([#1663](https://github.com/rudderlabs/rudder-sdk-js/issues/1663)) ([1f114a1](https://github.com/rudderlabs/rudder-sdk-js/commit/1f114a19ac14ffd9af6ae876a54d4d19afd80d65))

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

### Dependency Updates
Expand Down
5 changes: 2 additions & 3 deletions packages/analytics-js/CHANGELOG_LATEST.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
## [3.0.1](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected].0-beta.24...@rudderstack/[email protected].1) (2024-03-21)
## [3.0.3](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected].2...@rudderstack/[email protected].3) (2024-03-22)

### Dependency Updates

* `@rudderstack/analytics-js-common` updated to version `3.0.0`
* `@rudderstack/analytics-js-plugins` updated to version `3.0.0`
* `@rudderstack/analytics-js-plugins` updated to version `3.0.2`
2 changes: 1 addition & 1 deletion packages/analytics-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rudderstack/analytics-js",
"version": "3.0.1",
"version": "3.0.3",
"description": "RudderStack JavaScript SDK",
"main": "dist/npm/modern/cjs/index.js",
"module": "dist/npm/modern/esm/index.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/analytics-js/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,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].3",
"title": "@rudderstack/[email protected].3",
"discussion-category": "@rudderstack/[email protected].3",
"notesFile": "./packages/analytics-js/CHANGELOG_LATEST.md"
}
}
Expand Down
10 changes: 10 additions & 0 deletions packages/analytics-v1.1/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).

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

### Dependency Updates

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

### Bug Fixes

* replace polyfillio with fastly ([#1664](https://github.com/rudderlabs/rudder-sdk-js/issues/1664)) ([24d3a0b](https://github.com/rudderlabs/rudder-sdk-js/commit/24d3a0b383f58b79fc1970d0c74761de30bb3f4a))

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

### Dependency Updates
Expand Down
9 changes: 7 additions & 2 deletions packages/analytics-v1.1/CHANGELOG_LATEST.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## [2.48.4](https://github.com/rudderlabs/rudder-sdk-js/compare/[email protected].3[email protected].4) (2024-03-21)
## [2.48.5](https://github.com/rudderlabs/rudder-sdk-js/compare/[email protected].4[email protected].5) (2024-03-22)

### Dependency Updates

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

### Bug Fixes

* replace polyfillio with fastly ([#1664](https://github.com/rudderlabs/rudder-sdk-js/issues/1664)) ([24d3a0b](https://github.com/rudderlabs/rudder-sdk-js/commit/24d3a0b383f58b79fc1970d0c74761de30bb3f4a))

2 changes: 1 addition & 1 deletion packages/analytics-v1.1/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rudder-sdk-js",
"version": "2.48.4",
"version": "2.48.5",
"description": "RudderStack JavaScript SDK",
"main": "dist/npm/index.js",
"module": "dist/npm/index.es.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/analytics-v1.1/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@
"github": {
"executor": "@jscutlery/semver:github",
"options": {
"tag": "[email protected].4",
"title": "[email protected].4",
"discussion-category": "[email protected].4",
"tag": "[email protected].5",
"title": "[email protected].5",
"discussion-category": "[email protected].5",
"notesFile": "./packages/analytics-v1.1/CHANGELOG_LATEST.md"
}
}
Expand Down
16 changes: 16 additions & 0 deletions packages/loading-scripts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@

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

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

### Dependency Updates

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

### Dependency Updates

* `@rudderstack/analytics-js` updated to version `3.0.1`

### Bug Fixes

* replace polyfillio with fastly ([#1664](https://github.com/rudderlabs/rudder-sdk-js/issues/1664)) ([24d3a0b](https://github.com/rudderlabs/rudder-sdk-js/commit/24d3a0b383f58b79fc1970d0c74761de30bb3f4a))
* type issues ([#1663](https://github.com/rudderlabs/rudder-sdk-js/issues/1663)) ([1f114a1](https://github.com/rudderlabs/rudder-sdk-js/commit/1f114a19ac14ffd9af6ae876a54d4d19afd80d65))

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

### Dependency Updates
Expand Down
Loading