Skip to content

mysql - fix: documentation and error checking fixes#1819

Merged
jaredwray merged 2 commits intomainfrom
claude/fix-keyv-issue-1807-DjAQO
Jan 21, 2026
Merged

mysql - fix: documentation and error checking fixes#1819
jaredwray merged 2 commits intomainfrom
claude/fix-keyv-issue-1807-DjAQO

Conversation

@jaredwray
Copy link
Owner

@jaredwray jaredwray commented Jan 21, 2026

Please check if the PR fulfills these requirements

  • Followed the Contributing and Code of Conduct guidelines.
  • Tests for the changes have been added (for bug fixes/features) with 100% code coverage.

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
mysql - fix: documentation and error checking fixes

…g them

The .catch() handler was swallowing connection errors by calling emit()
and returning its boolean result. This caused the `connected` promise to
resolve to a boolean instead of rejecting, leading to silent failures
when calling set() or other methods.

Now the error is re-thrown after emitting, ensuring proper error propagation.

Fixes #1807
- Removed .catch() handler that was swallowing connection errors by
  resolving the promise to a boolean instead of rejecting
- Fixed README documentation that incorrectly showed MySQL-specific
  options (table, keySize, intervalExpiration) being passed to Keyv
  instead of KeyvMysql

Fixes #1807
@jaredwray
Copy link
Owner Author

@codex review

@codecov
Copy link

codecov bot commented Jan 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (74a688a) to head (c143a10).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1819   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           32        32           
  Lines         2425      2425           
  Branches       442       442           
=========================================
  Hits          2425      2425           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c143a106ee

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jaredwray jaredwray merged commit b5c93b5 into main Jan 21, 2026
10 checks passed
@jaredwray jaredwray deleted the claude/fix-keyv-issue-1807-DjAQO branch January 21, 2026 00:35
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