chore: bump mysql2 to 3.20 and pg to 8.20#894
Merged
JohnMcLear merged 1 commit intomainfrom Apr 7, 2026
Merged
Conversation
Review Summary by QodoModernize mysql2 and pg driver dependencies to latest minor versions
WalkthroughsDescription• Bump mysql2 from 3.14.5 to 3.20.0 with TypeScript overload fix • Bump pg from 8.16.3 to 8.20.0 for driver modernization • Cast pool.query() call to any to preserve runtime contract • Update lock file with new dependency versions and transitive deps Diagramflowchart LR
mysql2_old["mysql2 3.14.5"] -- "bump to" --> mysql2_new["mysql2 3.20.0"]
pg_old["pg 8.16.3"] -- "bump to" --> pg_new["pg 8.20.0"]
mysql2_new -- "tightened overloads" --> cast["Cast pool.query to any"]
cast -- "preserves" --> runtime["Runtime contract"]
pg_new -- "no type changes" --> compat["Compatible"]
File Changes1. databases/mysql_db.ts
|
Code Review by Qodo
|
239d532 to
9f56fff
Compare
…20.0 Both are minor version bumps: - mysql2 3.20 tightens TypeScript overloads for pool.query() so the (options, callback) form is no longer matched by the overload set, even though it still works at runtime. Cast to `any` for that one call so the existing runtime contract is preserved. - pg 8.20 has no driver-side type changes for our usage. tsc --noEmit passes. test (mysql) will verify runtime in CI. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
9f56fff to
b1ec5e4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Driver modernization step 5. Both are minor version bumps:
mysql23.14 → 3.20 — tightens TypeScript overloads forpool.query(). The(options, callback)overload is no longer matched even though it still works at runtime. Cast toanyfor that one call site to preserve the existing runtime contract.pg8.16 → 8.20 — no driver-side type changes for our usage.tsc --noEmitpasses locally.test (mysql)will verify runtime in CI.🤖 Generated with Claude Code