Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump rate-limiter-flexible from 2.4.1 to 4.0.1 #522

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 29, 2024

Bumps rate-limiter-flexible from 2.4.1 to 4.0.1.

Release notes

Sourced from rate-limiter-flexible's releases.

Fix RateLimiterMongo TypeError

RateLimiterMongo TypeError: Cannot read properties of null (reading 'value') error was fixed. See animir/node-rate-limiter-flexible#251 for reference.

Thanks to @​o-ali

DynamoDB support

Thanks to @​Daniel-97 rate-limiter-flexible supports DynamoDB now! Usage example can be found here.

BREAKING CHANGES: we dropped support for Node.js 12 and previous versions.

🐯

Fix RateLimiterUnion.consume return type

Fix memory storage being not accurate with expired keys

  • fix memory storage consuming points when msBeforeNext is negative (key is expired). Thank you @​animir

PostgreSQL quote table name and support for schema name option

  • use quotation for table name in RateLimiterPostgres queries. Thanks to @​komachi
  • add optional schemaName to RateLimiterPostgres limiter. Thanks to @​paulsc54
  • special thanks to @​roggervalf who configured Github Actions for tests

🍯

Support of ioredis v4+ and redis v4+

I have really great news! rate-limiter-flexible supports ioredis v4+ and redis v4+ now. We have been waiting for this moment for years.

Thanks to @​roggervalf. And one big thank you from me personally

Since this is major release, there are

BREAKING CHANGES:

  1. rate-limiter-flexible works with ioredis package of any version (tested versions 2, 3, 4 and 5) by default now.
  • If you want it to work with the redis package version 4 or later, you should set useRedisPackage flag.
  • If you created redis client with legacyMode: true, you should remove it.
  • If you use redis of version 3 or lower, you should stick to rate-limiter-flexible version 2. Or try the experimental useRedis3AndLowerPackage option.
  1. deprecated options started with lowercased inmemory prefix are removed. You can use inMemoryBlockOnConsumed and inMemoryBlockDuration instead.
  2. deprecated redis option for RateLimiterRedis was removed. (Most likely you never heard about it, since it was deprecated years ago). You should use storeClient option instead.
Commits
  • f4779ac 4.0.1
  • 7fc7a77 Merge pull request #252 from o-ali/mongodb-mongoose-client-version-fix
  • 34b4bee Fix client version for RateLimiterMongo
  • a9ab321 Update FUNDING.yml
  • 5c61d8d ignore nyc_output from npm
  • db33aa1 Merge pull request #247 from mroderick/fix-coverage-report
  • 10e4a79 Merge pull request #246 from mroderick/run-eslint-in-workflow
  • 0e5c651 Merge pull request #245 from mroderick/add-dynamo-to-docker-compose
  • a03417c Merge pull request #244 from mroderick/upgrade-sinon
  • 109b629 fix: Use 'npm install' in workflow
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [rate-limiter-flexible](https://github.com/animir/node-rate-limiter-flexible) from 2.4.1 to 4.0.1.
- [Release notes](https://github.com/animir/node-rate-limiter-flexible/releases)
- [Commits](animir/node-rate-limiter-flexible@v2.4.1...v4.0.1)

---
updated-dependencies:
- dependency-name: rate-limiter-flexible
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 29, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Feb 16, 2024

Superseded by #525.

@dependabot dependabot bot closed this Feb 16, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/rate-limiter-flexible-4.0.1 branch February 16, 2024 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants