Skip to content

[Snyk] Upgrade prettier from 2.6.2 to 3.6.2#3

Open
Dustin4444 wants to merge 1 commit intomainfrom
snyk-upgrade-e5fdc1d846eae572c87a0d8c3b54f003
Open

[Snyk] Upgrade prettier from 2.6.2 to 3.6.2#3
Dustin4444 wants to merge 1 commit intomainfrom
snyk-upgrade-e5fdc1d846eae572c87a0d8c3b54f003

Conversation

@Dustin4444
Copy link
Owner

snyk-top-banner

Snyk has created this PR to upgrade prettier from 2.6.2 to 3.6.2.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 50 versions ahead of your current version.

  • The recommended version was released 4 months ago.

⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Server-side Request Forgery (SSRF)
SNYK-JS-IP-12704893
436 Proof of Concept
high severity Server-side Request Forgery (SSRF)
SNYK-JS-IP-12761655
436 Proof of Concept
high severity Server-side Request Forgery (SSRF)
SNYK-JS-IP-6240864
436 Proof of Concept
medium severity Server-Side Request Forgery (SSRF)
SNYK-JS-IP-7148531
436 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-SEMVERREGEX-2824151
436 Proof of Concept
medium severity Uncontrolled Resource Consumption ('Resource Exhaustion')
SNYK-JS-TAR-6476909
436 Proof of Concept
medium severity Inefficient Regular Expression Complexity
SNYK-JS-MICROMATCH-6838728
436 No Known Exploit
low severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-BRACEEXPANSION-9789073
436 Proof of Concept
low severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-BRACEEXPANSION-9789073
436 Proof of Concept
Release notes
Package name: prettier
  • 3.6.2 - 2025-06-27

    What's Changed

    🔗 Changelog

  • 3.6.1 - 2025-06-25
    • Fix "Warning: File descriptor 39 closed but not opened in unmanaged mode" error when running --experimental-cli

    🔗 Changelog

  • 3.6.0 - 2025-06-23

    diff

    🔗 Release note "Prettier 3.6: Experimental fast CLI and new OXC and Hermes plugins!"

  • 3.5.3 - 2025-03-03

    🔗 Changelog

  • 3.5.2 - 2025-02-22

    🔗 Changelog

  • 3.5.1 - 2025-02-13

    🔗 Changelog

  • 3.5.0 - 2025-02-09

    diff

    🔗 Release note

  • 3.4.2 - 2024-12-04

    🔗 Changelog

  • 3.4.1 - 2024-11-26
  • 3.4.0 - 2024-11-26
  • 3.3.3 - 2024-07-13
  • 3.3.2 - 2024-06-11
  • 3.3.1 - 2024-06-05
  • 3.3.0 - 2024-06-01
  • 3.2.5 - 2024-02-04
  • 3.2.4 - 2024-01-17
  • 3.2.3 - 2024-01-17
  • 3.2.2 - 2024-01-14
  • 3.2.1 - 2024-01-12
  • 3.2.0 - 2024-01-12
  • 3.1.1 - 2023-12-10
  • 3.1.0 - 2023-11-13
  • 3.0.3 - 2023-08-29
  • 3.0.2 - 2023-08-15
  • 3.0.1 - 2023-08-03
  • 3.0.0 - 2023-07-05
  • 3.0.0-alpha.9-for-vscode - 2023-04-23
  • 3.0.0-alpha.8-for-vscode - 2023-04-23
  • 3.0.0-alpha.7-for-vscode - 2023-04-23
  • 3.0.0-alpha.12 - 2023-05-26
  • 3.0.0-alpha.11 - 2023-04-25
  • 3.0.0-alpha.10 - 2023-04-23
  • 3.0.0-alpha.6 - 2023-03-02
  • 3.0.0-alpha.5 - 2023-03-01
  • 3.0.0-alpha.4 - 2022-10-26
  • 3.0.0-alpha.3 - 2022-10-20
  • 3.0.0-alpha.2 - 2022-10-13
  • 3.0.0-alpha.1 - 2022-10-08
  • 3.0.0-alpha.0 - 2022-08-17
  • 2.8.8 - 2023-04-23
  • 2.8.7 - 2023-03-24
  • 2.8.6 - 2023-03-21
  • 2.8.5 - 2023-03-20
  • 2.8.4 - 2023-02-08
  • 2.8.3 - 2023-01-14
  • 2.8.2 - 2023-01-07
  • 2.8.1 - 2022-12-07
  • 2.8.0 - 2022-11-23
  • 2.7.1 - 2022-06-16
  • 2.7.0 - 2022-06-14
  • 2.6.2 - 2022-04-02
from prettier GitHub release notes

Important

  • Warning: This PR contains a major version upgrade, and may be a breaking change.
  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Snyk has created this PR to upgrade prettier from 2.6.2 to 3.6.2.

See this package in npm:
prettier

See this project in Snyk:
https://app.snyk.io/org/dustin4444/project/d86d6d0d-45cd-44c7-9a82-8b3987b70cc2?utm_source=github&utm_medium=referral&page=upgrade-pr
@gemini-code-assist
Copy link

Summary of Changes

Hello @Dustin4444, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request, automatically generated by Snyk, updates the prettier dependency to its latest major version, 3.6.2. The primary goal is to enhance the project's security by resolving several critical vulnerabilities and to ensure dependencies are kept up-to-date. Given the substantial version jump, careful review is advised to mitigate any potential breaking changes or formatting discrepancies that might arise from the new prettier rules.

Highlights

  • Prettier Dependency Upgrade: Upgraded the prettier dependency from version 2.6.2 to 3.6.2. This is a significant major version upgrade, spanning 50 versions, and is crucial for addressing multiple high and medium severity vulnerabilities, including Server-side Request Forgery (SSRF) and Regular Expression Denial of Service (ReDoS) issues.
  • Security Enhancements: The upgrade resolves several security vulnerabilities identified by Snyk, improving the overall security posture of the project by patching known exploits in prettier and its sub-dependencies.
  • Potential Breaking Changes: As this is a major version upgrade, there is a warning that it may introduce breaking changes. Review of the formatted code and project functionality after the upgrade is recommended.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request upgrades prettier from version 2.6.2 to 3.6.2. This is a beneficial upgrade as it resolves several security vulnerabilities. However, since this is a major version upgrade for a code formatter, it will likely introduce formatting changes across the codebase. To maintain a clean git history, it's crucial to apply these formatting changes within this PR. I've added a specific comment with a recommendation on how to proceed.

"mocha": "^9.2.2",
"npm-run-all": "^4.1.5",
"prettier": "^2.6.2",
"prettier": "^3.6.2",

Choose a reason for hiding this comment

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

high

Upgrading Prettier across a major version (v2 to v3) is a great step for security and keeping dependencies current. However, Prettier v3 introduces formatting changes. Merging this PR as-is means the next developer to run npm run format will generate a large diff with only formatting updates, mixing them with their own changes.

To avoid this, the new formatting should be applied as part of this dependency upgrade. Please run the format command and commit the changes to this PR.

You can do this by running:

npm install
npm run format

Then, commit the resulting changes to this branch before merging.

@coderabbitai
Copy link

coderabbitai bot commented Oct 14, 2025

Important

Review skipped

Ignore keyword(s) in the title.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch snyk-upgrade-e5fdc1d846eae572c87a0d8c3b54f003

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

2 participants