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.6.0 #1692

Merged
merged 6 commits into from
Apr 15, 2024
Merged

Conversation

MoumitaM
Copy link
Contributor

@MoumitaM MoumitaM commented Apr 15, 2024

PR Description

Please include a summary of the change along with the relevant motivation and context.

Linear task (optional)

Linear task link

Cross Browser Tests

Please confirm you have tested for the following browsers:

  • Chrome
  • Firefox
  • IE11

Sanity Suite

  • All sanity suite test cases pass locally

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

Summary by CodeRabbit

  • New Features
    • Updated the app to version 3.6.0.
  • Bug Fixes
    • Changed error messages to warnings in analytics integrations to improve user feedback.
    • Removed unnecessary global declarations in analytics scripts, enhancing performance and compliance.
  • Documentation
    • Updated changelogs across various packages to reflect recent changes and bug fixes.
  • Chores
    • Updated package versions for better dependency management and consistency across the platform.

Copy link
Contributor

coderabbitai bot commented Apr 15, 2024

Walkthrough

This update involves several packages within a project, mainly focusing on version increments and bug fixes. The core changes include updating versions from 3.0.3 to 3.0.4 for multiple sub-packages and from 3.5.0 to 3.6.0 for the main project. Key fixes involve adjustments to error messages and the removal of unnecessary global declarations in the code.

Changes

File Path Change Summary
package.json Updated main project version from 3.5.0 to 3.6.0.
sonar-project.properties Updated sonar.projectVersion from 3.5.0 to 3.6.0.
.../analytics-js-integrations/... Updated versions from 3.0.3 to 3.0.4, changed error message to warning.
.../analytics-js/... Version updated to 3.0.4, removed MutationObserver and unnecessary window globals.
.../loading-scripts/... Updated version to 3.0.4, updated dependencies, fixed bug related to window globals.
.../sanity-suite/... Version updated from 3.0.4 to 3.0.5, dependency update, and bug fix related to window globals.

🐇✨
In the land where code does weave,
A rabbit hopped with updates to conceive.
From 3.0.3 to 3.0.4, versions took flight,
Bugs squashed in the moon's gentle light.
Cheers to 3.6.0, our new beacon bright!
🌟🌙


Recent Review Details

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 51b42fe and 711180c.
Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
Files selected for processing (16)
  • 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/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/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/sanity-suite/CHANGELOG.md (1 hunks)
  • packages/sanity-suite/package.json (1 hunks)
  • sonar-project.properties (1 hunks)
Files skipped from review due to trivial changes (6)
  • package.json
  • packages/analytics-js-integrations/package.json
  • packages/analytics-js/package.json
  • packages/analytics-js/project.json
  • packages/sanity-suite/package.json
  • sonar-project.properties
Additional comments not posted (17)
packages/analytics-js-integrations/CHANGELOG_LATEST.md (2)

1-1: The version link and date are correctly formatted and provide a clear historical reference for the changes.


6-6: The description of the change from an error message to a warning is clear and concise. However, ensure that the term "warn" is appropriate in this context as opposed to "worn" which was suggested by a tool. The current usage is correct.

packages/loading-scripts/CHANGELOG_LATEST.md (2)

1-1: The version link and date are correctly formatted and provide a clear historical reference for the changes.


9-9: The description of the bug fix regarding the removal of unnecessary window globals is clear. However, ensure to verify the spelling as "globals" might be flagged incorrectly by tools.

packages/analytics-js/CHANGELOG_LATEST.md (2)

1-1: The version link and date are correctly formatted and provide a clear historical reference for the changes.


6-7: The descriptions of the bug fixes are clear and concise. However, ensure to verify the spelling as "MutationObserver" and "globals" might be flagged incorrectly by tools.

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

3-3: The version number has been correctly updated to "3.0.4". This change aligns with the release notes and ensures consistency across the project metadata.

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

92-94: The version tags, title, and discussion category have been correctly updated to "3.0.4". This ensures that the project's metadata is consistent with the current release version.

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

97-99: The version tags, title, and discussion category have been correctly updated to "3.0.4". This ensures that the project's metadata is consistent with the current release version.

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

5-5: The version link and date for 3.0.4 are correctly formatted and provide a clear historical reference for the changes.


13-13: The description of the bug fix regarding the removal of unnecessary window globals is clear. However, ensure to verify the spelling as "globals" might be flagged incorrectly by tools.

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

5-5: Ensure the version link is correct and accessible.

Verification successful

The verification script successfully accessed the version comparison link provided in the CHANGELOG.md, and the server responded with a HTTP status code of 200, indicating that the link is correct and accessible.

Conclusion: The version link in the CHANGELOG.md is verified as correct and accessible.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Verify the link to the version comparison is correct and accessible.
curl -o /dev/null -s -w "%{http_code}\n" https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected] | grep '200'

Length of output: 201


9-9: Dependency update noted and correctly documented.

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

10-10: Correctly documented the change from an error message to a warning.

packages/analytics-js/CHANGELOG.md (3)

5-12: Ensure consistent use of heading levels.

The heading levels in the document should increment by one level at a time. It's recommended to adjust the heading levels to maintain a logical structure and improve readability.


7-7: Remove excessive blank lines.

There are multiple consecutive blank lines in the document. It's best to limit to one blank line to separate sections for better readability and to adhere to common markdown practices.


10-11: Documented bug fixes align with the summary.

The changes documented under version 3.0.4 correctly reflect the bug fixes related to the removal of MutationObserver and unnecessary window globals, as described in the AI-generated summary.


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 15, 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 (711180c).
Report is 4 commits behind head on develop.

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

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

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 (7)
packages/analytics-js-integrations/CHANGELOG_LATEST.md (1)

Line range hint 8-8: Please remove the extra blank line to maintain consistency and cleanliness in the document formatting.

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

Line range hint 11-11: Please remove the extra blank line to maintain consistency and cleanliness in the document formatting.

- 
packages/analytics-js/CHANGELOG_LATEST.md (1)

Line range hint 9-9: Please remove the extra blank line to maintain consistency and cleanliness in the document formatting.

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

Line range hint 123-123: Please correct the heading level to maintain a logical structure in the document. It should increment by one level at a time.

- ### Bug Fixes
+ ## Bug Fixes

Line range hint 159-159: Please correct the heading level to maintain a logical structure in the document. It should increment by one level at a time.

- ### Bug Fixes
+ ## Bug Fixes

Line range hint 40-40: Please remove the extra blank line to maintain consistency and cleanliness in the document formatting.

- 

Line range hint 59-59: Please remove the extra blank line to maintain consistency and cleanliness in the document formatting.

- 

@@ -2,6 +2,13 @@

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.

Ensure consistent formatting for version links.

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

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/analytics-js-integrations@3.0.3...@rudderstack/analytics-js-integrations@3.0.4) (2024-04-12)
## [3.0.4](https://github.com/rudderlabs/rudder-sdk-js/compare/v3.0.3...v3.0.4) (2024-04-12)


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

Tip

Codebase Verification

The verification scripts have successfully confirmed that the commit link provided in the changelog is valid and accessible, as indicated by the HTTP status code 200. However, the issue link did not return a status code 200, suggesting that the issue might not be accessible or does not exist.

Given this information, it appears that while the commit related to the removal of unnecessary window globals is correctly documented, the issue link provided does not correctly detail or perhaps even relate to the changes made, as it is not accessible.

Action Required:
Please verify the correctness and accessibility of the issue link in the changelog entry. If the issue link is incorrect or the issue is private, it should be updated or clarified in the documentation.

Analysis chain

Bug fix for removing unnecessary window globals is well-documented. Ensure the linked issue and commit are relevant and correctly detail the changes made.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Verify the linked issue and commit are relevant and correctly detail the changes made.
curl -o /dev/null -s -w "%{http_code}\n" https://github.com/rudderlabs/rudder-sdk-js/issues/1687 | grep '200'
curl -o /dev/null -s -w "%{http_code}\n" https://github.com/rudderlabs/rudder-sdk-js/commit/09e5ab89965a0b0dc5070891288a08358c103c0e | grep '200'

Length of output: 259

@@ -1,8 +1,7 @@
## [3.0.3](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected].2...@rudderstack/[email protected].3) (2024-04-02)
## [3.0.4](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected].3...@rudderstack/[email protected].4) (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.

Please remove the extra blank line to maintain consistency and cleanliness in the document formatting.

- 

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


### Dependency Updates

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 maintain consistency and cleanliness in the document formatting.

- 

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

Copy link

sonarcloud bot commented Apr 15, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

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.01% ▲) 23 KB
Core - NPM 22.54 KB 22.54 KB (0%) 23 KB
Core Legacy - CDN 42.97 KB 42.92 KB (-0.14% ▼) 44 KB
Core - CDN 22.71 KB 22.71 KB (0%) 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.6 KB 98.6 KB (0%) 105 KB

@MoumitaM MoumitaM merged commit f3a59a1 into develop Apr 15, 2024
14 checks passed
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.

3 participants