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): pulling release/3.6.0 into main #1690

Merged
merged 9 commits into from
Apr 15, 2024
Merged

Conversation

devops-github-rudderstack
Copy link
Contributor

@devops-github-rudderstack devops-github-rudderstack commented Apr 12, 2024

👑 An automated PR

Summary by CodeRabbit

  • New Features

    • Updated bug report and feature request templates to enhance reporting clarity and assignee accuracy.
  • Bug Fixes

    • Adjusted log severity levels in LinkedIn Insight Tag integration from error to warning.
    • Removed unnecessary window globals and MutationObserver to align with consistent polyfill checks.
  • Documentation

    • Improved documentation in issue templates to aid in more precise bug and feature reporting.
  • Version Updates

    • Upgraded various RudderStack Analytics packages to newer versions, enhancing stability and performance.
  • Refactor

    • Streamlined global interface declarations by removing outdated types and exports.
    • Simplified polyfill checks and updated related dependencies across multiple packages.

Copy link
Contributor

coderabbitai bot commented Apr 12, 2024

Walkthrough

This update primarily involves version bumps across various RudderStack Analytics JS SDK packages and enhancements in polyfills, error handling, and code clean-up. Changes include updating dependency versions, refining error messages from errors to warnings, removing unnecessary global declarations, and adjusting polyfill checks for better consistency and performance.

Changes

File Path Change Summary
.eslintrc.json Updated polyfills, removed and added several items including Promise and String.prototype.replaceAll.
.github/ISSUE_TEMPLATE/* Updated bug report and feature request templates, including assignee and information field reorganization.
package.json, sonar-project.properties Updated version numbers in various configurations.
packages/.../CHANGELOG*.md, packages/.../package.json, packages/.../project.json Version updates and change logging for multiple packages.
packages/analytics-js-integrations/src/.../browser.js, packages/analytics-js/src/components/.../dom.ts Adjusted log severity and polyfill checks.
packages/analytics-js/src/... Removed exports and declarations impacting global scope.
packages/loading-scripts/src/types/rudderanalytics.d.ts, packages/sanity-suite/src/types/rudderanalytics.d.ts Simplified interface by removing specific declarations.

🐰✨
Changes in the code, hop and a skip,
Bugs in the basket, fix them quick.
Version bumps here, tweaks over there,
Clean and swift, like a hare.
Celebrate the code, fresh and new,
Hoppy coding to the crew! 🌟🥕


Recent Review Details

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 4fa8cbb and d19c0c0.
Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
Files selected for processing (25)
  • .eslintrc.json (2 hunks)
  • .github/ISSUE_TEMPLATE/bug_report.md (2 hunks)
  • .github/ISSUE_TEMPLATE/feature_request.md (1 hunks)
  • package.json (1 hunks)
  • packages/analytics-js-integrations/CHANGELOG.md (1 hunks)
  • packages/analytics-js-integrations/CHANGELOG_LATEST.md (1 hunks)
  • packages/analytics-js-integrations/package.json (1 hunks)
  • packages/analytics-js-integrations/project.json (1 hunks)
  • packages/analytics-js-integrations/src/integrations/LinkedInInsightTag/browser.js (1 hunks)
  • packages/analytics-js/CHANGELOG.md (1 hunks)
  • packages/analytics-js/CHANGELOG_LATEST.md (1 hunks)
  • packages/analytics-js/package.json (1 hunks)
  • packages/analytics-js/project.json (1 hunks)
  • packages/analytics-js/src/components/capabilitiesManager/detection/dom.ts (1 hunks)
  • packages/analytics-js/src/index.ts (3 hunks)
  • packages/analytics-js/src/types/rudderanalytics.d.ts (1 hunks)
  • packages/loading-scripts/CHANGELOG.md (1 hunks)
  • packages/loading-scripts/CHANGELOG_LATEST.md (1 hunks)
  • packages/loading-scripts/package.json (1 hunks)
  • packages/loading-scripts/project.json (1 hunks)
  • packages/loading-scripts/src/types/rudderanalytics.d.ts (2 hunks)
  • packages/sanity-suite/CHANGELOG.md (1 hunks)
  • packages/sanity-suite/package.json (1 hunks)
  • packages/sanity-suite/src/types/rudderanalytics.d.ts (2 hunks)
  • sonar-project.properties (1 hunks)
Files skipped from review due to trivial changes (7)
  • package.json
  • packages/analytics-js-integrations/package.json
  • packages/analytics-js-integrations/project.json
  • packages/analytics-js/package.json
  • packages/loading-scripts/package.json
  • packages/sanity-suite/package.json
  • sonar-project.properties
Additional comments not posted (15)
packages/sanity-suite/src/types/rudderanalytics.d.ts (1)

1-4: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [1-8]

LGTM! The simplification of the global interface by removing IRudderStackGlobals aligns with the PR objectives.

packages/analytics-js/src/types/rudderanalytics.d.ts (1)

9-14: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [1-12]

LGTM! The removal of rudderAnalyticsMount and rudderAnalyticsBuildType from the Window interface helps streamline the codebase as intended in the PR objectives.

packages/loading-scripts/src/types/rudderanalytics.d.ts (1)

7-12: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [1-12]

LGTM! The removal of IRudderStackGlobals and RudderStackGlobals from the global window interface aligns with the PR objectives to simplify the interface.

.github/ISSUE_TEMPLATE/feature_request.md (1)

3-9: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [1-12]

LGTM! The update of the default assignee in the feature request template is correctly implemented.

packages/analytics-js/src/index.ts (1)

1-5: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [1-24]

LGTM! The removal of IRudderStackGlobals and related declarations from the exports and global interface aligns with the PR objectives to simplify the interface.

.github/ISSUE_TEMPLATE/bug_report.md (2)

6-6: Updated the assignee to rudderlabs/js-sdk to reflect the new default assignee for bug reports. This change should help streamline issue management by directing reports to the appropriate team.


28-38: Reorganized the additional information section to include more specific details about the SDK environment, which should enhance the clarity and usefulness of bug reports. Ensure that the new fields are clearly communicated to users to avoid confusion.

packages/analytics-js-integrations/src/integrations/LinkedInInsightTag/browser.js (1)

67-67: Changed the logging level from error to warning for unmapped events. This adjustment should reduce the severity of log outputs, which is appropriate since unmapped events may not necessarily indicate a critical error. Ensure that this change aligns with the overall error handling and logging strategy.

packages/loading-scripts/project.json (1)

92-94: Updated the version references for @rudderstack/analytics-js-loading-scripts to 3.0.4. This change is part of the regular version bump process and aligns with the release notes. Ensure that all dependencies and related documentation are updated to reflect this new version.

packages/analytics-js/src/components/capabilitiesManager/detection/dom.ts (1)

1-36: Refactored the checks for global objects and methods in the capabilities detection module. The use of isFunction enhances consistency and readability. Removed outdated checks and added new ones to align with current browser capabilities and requirements. Ensure that these changes are thoroughly tested across supported browsers to prevent any compatibility issues.

packages/analytics-js/project.json (1)

129-131: Updated the version references for @rudderstack/analytics-js to 3.0.4. This change is part of the regular version bump process and aligns with the release notes. Ensure that all dependencies and related documentation are updated to reflect this new version.

.eslintrc.json (1)

16-33: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [10-30]

Updated the ESLint configuration to reflect the current polyfill requirements. Removed "Promise" and added new entries such as "String.prototype.replaceAll", "Object.assign", and others. These changes ensure that the linting process accounts for the actual environment capabilities and polyfill needs. Verify that these settings align with the target browser versions and JavaScript environments used in your projects.

packages/loading-scripts/CHANGELOG.md (1)

5-14: Updated the changelog for @rudderstack/analytics-js-loading-scripts to version 3.0.4. This update includes a dependency update and a bug fix related to unnecessary window globals declarations. Ensure that the changelog accurately reflects all significant changes and that the linked issues and commits are correct.

packages/sanity-suite/CHANGELOG.md (1)

5-13: The changelog entry for version 3.0.5 is clear and well-documented. The update to the dependency and the removal of unnecessary window globals are both significant changes that should help maintain the quality of the package.

packages/analytics-js-integrations/CHANGELOG.md (1)

5-11: The changelog entry for version 3.0.4 is well-documented and includes appropriate links to the issue and commit. This helps in tracking changes and understanding the context behind them.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

codecov bot commented Apr 12, 2024

Codecov Report

Attention: Patch coverage is 95.23810% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 53.92%. Comparing base (4fa8cbb) to head (d19c0c0).

Files Patch % Lines
...ons/src/integrations/LinkedInInsightTag/browser.js 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1690      +/-   ##
==========================================
- Coverage   53.93%   53.92%   -0.01%     
==========================================
  Files         461      461              
  Lines       15616    15615       -1     
  Branches     3098     3097       -1     
==========================================
- Hits         8422     8421       -1     
  Misses       5878     5878              
  Partials     1316     1316              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 4

Actionable comments outside the diff hunks (1)
packages/analytics-js/CHANGELOG.md (1)

Line range hint 224-330: Address multiple consecutive blank lines and incorrect heading levels throughout the document.

- Multiple consecutive blank lines found in various sections. Please reduce them to a single blank line.
- Correct the heading levels to increment by one level at a time.

@@ -2,6 +2,14 @@

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

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


Copy link
Contributor

Choose a reason for hiding this comment

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

Reduce multiple consecutive blank lines to improve readability.

- 

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

Comment on lines +1 to +6
## [3.0.4](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected].3...@rudderstack/[email protected].4) (2024-04-12)


### Bug Fixes

* ninetailed: modify page support ([#1677](https://github.com/rudderlabs/rudder-sdk-js/issues/1677)) ([e45ef06](https://github.com/rudderlabs/rudder-sdk-js/commit/e45ef06186cb4dc1d0568f2b39d8e786d278390a))
* updated isLoaded and isReady conditions for mixpanel ([#1650](https://github.com/rudderlabs/rudder-sdk-js/issues/1650)) ([80c76a1](https://github.com/rudderlabs/rudder-sdk-js/commit/80c76a1f7f27a93930a6146730ac94d945b19b25))
* making the error message as warn ([#1686](https://github.com/rudderlabs/rudder-sdk-js/issues/1686)) ([56e34be](https://github.com/rudderlabs/rudder-sdk-js/commit/56e34be3575f66531bfe4910ff4aa970ed2ee208))
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove the extra blank lines to adhere to standard markdown practices.

3c3
< 
---
> 
8c8
< 
---
> 

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
## [3.0.4](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-04-12)
### Bug Fixes
* ninetailed: modify page support ([#1677](https://github.com/rudderlabs/rudder-sdk-js/issues/1677)) ([e45ef06](https://github.com/rudderlabs/rudder-sdk-js/commit/e45ef06186cb4dc1d0568f2b39d8e786d278390a))
* updated isLoaded and isReady conditions for mixpanel ([#1650](https://github.com/rudderlabs/rudder-sdk-js/issues/1650)) ([80c76a1](https://github.com/rudderlabs/rudder-sdk-js/commit/80c76a1f7f27a93930a6146730ac94d945b19b25))
* making the error message as warn ([#1686](https://github.com/rudderlabs/rudder-sdk-js/issues/1686)) ([56e34be](https://github.com/rudderlabs/rudder-sdk-js/commit/56e34be3575f66531bfe4910ff4aa970ed2ee208))
## [3.0.4](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-04-12)
### Bug Fixes
* making the error message as warn ([#1686](https://github.com/rudderlabs/rudder-sdk-js/issues/1686)) ([56e34be](https://github.com/rudderlabs/rudder-sdk-js/commit/56e34be3575f66531bfe4910ff4aa970ed2ee208))

Comment on lines +1 to +10
## [3.0.4](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected].3...@rudderstack/[email protected].4) (2024-04-12)

### Dependency Updates

* `@rudderstack/analytics-js` updated to version `3.0.2`
* `@rudderstack/analytics-js` updated to version `3.0.3`

### Bug Fixes

* remove unnecessary window globals declarations ([#1687](https://github.com/rudderlabs/rudder-sdk-js/issues/1687)) ([09e5ab8](https://github.com/rudderlabs/rudder-sdk-js/commit/09e5ab89965a0b0dc5070891288a08358c103c0e))

Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove the extra blank line to adhere to standard markdown practices.

11c11
< 
---
> 

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
## [3.0.4](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-04-12)
### Dependency Updates
* `@rudderstack/analytics-js` updated to version `3.0.2`
* `@rudderstack/analytics-js` updated to version `3.0.3`
### Bug Fixes
* remove unnecessary window globals declarations ([#1687](https://github.com/rudderlabs/rudder-sdk-js/issues/1687)) ([09e5ab8](https://github.com/rudderlabs/rudder-sdk-js/commit/09e5ab89965a0b0dc5070891288a08358c103c0e))
## [3.0.4](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-04-12)
### Dependency Updates
* `@rudderstack/analytics-js` updated to version `3.0.3`
### Bug Fixes
* remove unnecessary window globals declarations ([#1687](https://github.com/rudderlabs/rudder-sdk-js/issues/1687)) ([09e5ab8](https://github.com/rudderlabs/rudder-sdk-js/commit/09e5ab89965a0b0dc5070891288a08358c103c0e))

Comment on lines +1 to +8
## [3.0.4](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected].3...@rudderstack/[email protected].4) (2024-04-12)

### Dependency Updates

* `@rudderstack/analytics-js-plugins` updated to version `3.0.2`
### Bug Fixes

* remove MutationObserver and make polyfill checks consistent ([#1688](https://github.com/rudderlabs/rudder-sdk-js/issues/1688)) ([51b42fe](https://github.com/rudderlabs/rudder-sdk-js/commit/51b42fe51a5fbfa79df23b9b36095cc494dbcaa1))
* remove unnecessary window globals declarations ([#1687](https://github.com/rudderlabs/rudder-sdk-js/issues/1687)) ([09e5ab8](https://github.com/rudderlabs/rudder-sdk-js/commit/09e5ab89965a0b0dc5070891288a08358c103c0e))

Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove the extra blank lines to adhere to standard markdown practices.

3c3
< 
---
> 
9c9
< 
---
> 

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
## [3.0.4](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-04-12)
### Dependency Updates
* `@rudderstack/analytics-js-plugins` updated to version `3.0.2`
### Bug Fixes
* remove MutationObserver and make polyfill checks consistent ([#1688](https://github.com/rudderlabs/rudder-sdk-js/issues/1688)) ([51b42fe](https://github.com/rudderlabs/rudder-sdk-js/commit/51b42fe51a5fbfa79df23b9b36095cc494dbcaa1))
* remove unnecessary window globals declarations ([#1687](https://github.com/rudderlabs/rudder-sdk-js/issues/1687)) ([09e5ab8](https://github.com/rudderlabs/rudder-sdk-js/commit/09e5ab89965a0b0dc5070891288a08358c103c0e))
## [3.0.4](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-04-12)
### Bug Fixes
* remove MutationObserver and make polyfill checks consistent ([#1688](https://github.com/rudderlabs/rudder-sdk-js/issues/1688)) ([51b42fe](https://github.com/rudderlabs/rudder-sdk-js/commit/51b42fe51a5fbfa79df23b9b36095cc494dbcaa1))
* remove unnecessary window globals declarations ([#1687](https://github.com/rudderlabs/rudder-sdk-js/issues/1687)) ([09e5ab8](https://github.com/rudderlabs/rudder-sdk-js/commit/09e5ab89965a0b0dc5070891288a08358c103c0e))

Copy link

size-limit report 📦

Name Size (Base) Size (Current) Size Limit Status
Common Code - No bundling 15.81 KB 15.81 KB (0%) 16.5 KB
Remote Module Federation Mapping - CDN 330 B 330 B (0%) 512 B
Remote Module Federated Plugins - CDN 5.71 KB 5.71 KB (0%) 6 KB
Core ESM - NPM 7.64 KB 7.64 KB (+0.02% ▲) 8 KB
Core CJS - NPM 22.45 KB 22.45 KB (+0.03% ▲) 23 KB
Core - NPM 22.55 KB 22.54 KB (-0.05% ▼) 23 KB
Core Legacy - CDN 42.99 KB 42.92 KB (-0.18% ▼) 44 KB
Core - CDN 22.71 KB 22.71 KB (-0.01% ▼) 23 KB
Core (legacy build) - CDN - v1.1 31.55 KB 31.55 KB (0%) 32 KB
Core - NPM - v1.1 31.53 KB 31.53 KB (0%) 32 KB
Service Worker Module 22.64 KB 22.64 KB (0%) 24 KB
All Integrations (legacy build) - CDN 98.45 KB 98.6 KB (+0.15% ▲) 105 KB

@MoumitaM MoumitaM merged commit 711180c into main Apr 15, 2024
12 checks passed
@MoumitaM MoumitaM deleted the release/3.6.0 branch April 15, 2024 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants