Skip to content

266 support Sequelize 7#347

Merged
animir merged 11 commits intomasterfrom
266-support-sequelize-7
Feb 7, 2026
Merged

266 support Sequelize 7#347
animir merged 11 commits intomasterfrom
266-support-sequelize-7

Conversation

@animir
Copy link
Copy Markdown
Owner

@animir animir commented Feb 7, 2026

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds compatibility for Sequelize v7 by making MySQL/Postgres limiters resilient to sequelize.connectionManager access throwing, with tests covering both the legacy v6 interface and the v7 dialect fallback.

Changes:

  • Update MySQL/Postgres Sequelize connection acquisition/release to use a helper that falls back to dialect.connectionManager.
  • Add unit tests validating fallback behavior when connectionManager throws, and direct usage for the v6 interface.
  • Bump package version to 9.1.1.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
lib/RateLimiterPostgres.js Adds _getSequelizeConnectionManager() and routes Sequelize connection handling through it.
lib/RateLimiterMySQL.js Adds _getSequelizeConnectionManager() and routes Sequelize connection handling through it.
test/RateLimiterPostgres.test.js Adds coverage for Sequelize v7 fallback + v6 direct connectionManager behavior.
test/RateLimiterMySQL.test.js Adds coverage for Sequelize v7 fallback + v6 direct connectionManager behavior.
package.json Version bump to 9.1.1.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 7, 2026

@animir I've opened a new pull request, #348, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 7, 2026

@animir I've opened a new pull request, #349, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 7 commits February 7, 2026 15:24
Co-authored-by: animir <4623196+animir@users.noreply.github.com>
Co-authored-by: animir <4623196+animir@users.noreply.github.com>
Co-authored-by: animir <4623196+animir@users.noreply.github.com>
Co-authored-by: animir <4623196+animir@users.noreply.github.com>
Co-authored-by: animir <4623196+animir@users.noreply.github.com>
Preserve error context in _getSequelizeConnectionManager
Rethrow original error in _getSequelizeConnectionManager
@animir animir merged commit 7134440 into master Feb 7, 2026
10 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