Skip to content

fix(mysql): update mysql2 - #18004

Merged
WikiRik merged 2 commits into
mainfrom
WikiRik/mysql-deps-update
Nov 21, 2025
Merged

WikiRik merged 2 commits into
mainfrom
WikiRik/mysql-deps-update

Conversation

@WikiRik

@WikiRik WikiRik commented Oct 10, 2025 •

Copy link
Copy Markdown
Member

Pull Request Checklist

  • Have you added new tests to prevent regressions?
  • If a documentation update is necessary, have you opened a PR to the documentation repository?
  • Did you update the typescript typings accordingly (if applicable)?
  • Does the description below contain a link to an existing issue (Closes #[issue]) or a description of the issue you are solving?
  • Does the name of your PR follow our conventions?

Description of Changes

Updates mysql2

Summary by CodeRabbit

  • New Features

    • Added a new MySQL connection option named "gracefulEnd" to control connection shutdown behavior, visible as a configurable boolean setting.
  • Chores

    • Upgraded the mysql2 dependency to 3.15.2 for the MySQL package, updating the runtime library used by MySQL-related functionality.

@WikiRik
WikiRik requested a review from a team as a code owner October 10, 2025 14:13
@WikiRik
WikiRik requested review from ephys and sdepold October 10, 2025 14:13
@coderabbitai

coderabbitai Bot commented Oct 10, 2025 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

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

Walkthrough

Updates mysql2 dependency in packages/mysql and adds a new boolean connection option gracefulEnd to the MySQL connection options map, propagating to the exported boolean option names. No other logic or control-flow changes are indicated.

Changes

Cohort / File(s) Summary
Dependency Upgrade
packages/mysql/package.json
Bump mysql2 from ^3.14.3 to ^3.15.2.
Connection Options Update
packages/mysql/src/_internal/connection-options.ts
Add boolean option gracefulEnd to BOOLEAN_CONNECTION_OPTION_MAP; BOOLEAN_CONNECTION_OPTION_NAMES now includes gracefulEnd.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

I twitch my ears at version trends,
A tiny hop—mysql2 ascends.
A gracefulEnd now softly lands,
Like moonlit moss beneath my hands.
I thump: “Options neat, dependencies mend!”
Then scamper off—release weekend. 🥕✨

Pre-merge checks and finishing touches

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title check ❓ Inconclusive The PR title 'fix(mysql): update mysql2' is vague and generic, using only 'update' without specifying what aspects of mysql2 are being updated or why. Consider a more descriptive title like 'fix(mysql): update mysql2 to ^3.15.2 and add gracefulEnd option' to better clarify the specific changes included in this update.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

Tip

📝 Customizable high-level summaries are now available in beta!

You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.

  • Provide your own instructions using the high_level_summary_instructions setting.
  • Format the summary however you like (bullet lists, tables, multi-section layouts, contributor stats, etc.).
  • Use high_level_summary_in_walkthrough to move the summary from the description to the walkthrough section.

Example instruction:

"Divide the high-level summary into five sections:

  1. 📝 Description — Summarize the main change in 50–60 words, explaining what was done.
  2. 📓 References — List relevant issues, discussions, documentation, or related PRs.
  3. 📦 Dependencies & Requirements — Mention any new/updated dependencies, environment variable changes, or configuration updates.
  4. 📊 Contributor Summary — Include a Markdown table showing contributions:
    | Contributor | Lines Added | Lines Removed | Files Changed |
  5. ✔️ Additional Notes — Add any extra reviewer context.
    Keep each section concise (under 200 words) and use bullet or numbered lists for clarity."

Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later.


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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
packages/mysql/src/_internal/connection-options.ts (1)

30-41: Consider adding tests for the new gracefulEnd option.

Adding test coverage for the new gracefulEnd connection option would help ensure it's properly handled and parsed.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 94578e0 and 6d1d3a1.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (2)
  • packages/mysql/package.json (1 hunks)
  • packages/mysql/src/_internal/connection-options.ts (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Upload install and build artifact (Node 18)
  • GitHub Check: Upload install and build artifact (Node 20)
🔇 Additional comments (3)
packages/mysql/package.json (1)

44-44: mysql2 ^3.15.2 is available and secure — npm confirms v3.15.2 exists and all known vulnerabilities (<3.9.x) were patched in earlier 3.9.x releases.

packages/mysql/src/_internal/connection-options.ts (2)

34-34: gracefulEnd support verified gracefulEnd is a supported boolean option in mysql2 ^3.15.x and is correctly included in MySqlConnectionOptions.


30-41: Verify MySqlConnectionOptions includes gracefulEnd
The BooleanConnectionOptions map lists gracefulEnd, but I couldn’t locate it in the MySqlConnectionOptions declaration—confirm gracefulEnd?: boolean is defined in the typedef/interface in connection-manager.js.

@sequelize-bot sequelize-bot Bot added the conflicted This PR has merge conflicts and will not be present in the list of PRs to review label Nov 6, 2025
@WikiRik
WikiRik force-pushed the WikiRik/mysql-deps-update branch from 6d1d3a1 to 02a3282 Compare November 11, 2025 15:32
@sequelize-bot sequelize-bot Bot removed the conflicted This PR has merge conflicts and will not be present in the list of PRs to review label Nov 11, 2025
@WikiRik
WikiRik requested a review from sdepold November 11, 2025 15:32
@WikiRik
WikiRik enabled auto-merge (squash) November 21, 2025 07:11
@WikiRik
WikiRik merged commit a9a8a79 into main Nov 21, 2025
@WikiRik
WikiRik deleted the WikiRik/mysql-deps-update branch November 21, 2025 07:34
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