Skip to content

chore(deps): upgraded to latest dependencies#242

Open
Sourav-kashyap wants to merge 1 commit intomasterfrom
ratelimiter
Open

chore(deps): upgraded to latest dependencies#242
Sourav-kashyap wants to merge 1 commit intomasterfrom
ratelimiter

Conversation

@Sourav-kashyap
Copy link

Description

Upgraded loopback4-ratelimiter to use the latest versions of rate-limiting dependencies, migrate from older versions to the latest stable releases.

Checklist:

  • Performed a self-review of my own code
  • npm test passes on your machine

Build Passed:

Screenshot 2026-03-20 at 3 35 24 PM

TestCases Passed:

Screenshot 2026-03-20 at 3 35 42 PM

@Sourav-kashyap Sourav-kashyap self-assigned this Mar 20, 2026
@Sourav-kashyap Sourav-kashyap added the dependencies Pull requests that update a dependency file label Mar 20, 2026
@Sourav-kashyap Sourav-kashyap force-pushed the ratelimiter branch 3 times, most recently from d6b9f33 to f48b3d6 Compare March 20, 2026 13:18
upgraded to latest dependencies

GH-0
@sonarqubecloud
Copy link

SonarQube reviewer guide

Summary: Update all dependencies to latest versions, with major upgrades to express-rate-limit (^6.4.0 → ^8.3.1), rate-limit-memcached (^0.6.0 → ^1.0.1), rate-limit-redis (^3.0.1 → ^4.3.1), and dev dependencies including @types/node (^18.11.9 → ^25.5.0), typescript (~5.2.2 → ~5.5.4), and jsdom (^21.0.0 → ^29.0.0).

Review Focus:

  • Critical changes: The express-rate-limit v8 upgrade is a major version bump requiring code adjustments. Key changes include: the removed name option, new store reuse error handling requiring cache management, and modifications to how stores are created.
  • Store management changes: Updated store provider to return null (letting v8 create its own InMemoryStore), and added caching logic in both the action provider and middleware to prevent store reuse errors.
  • Type updates: Changed from default exports to named imports for rate-limit stores, updated Redis type from RedisClient to IORedis, and added explicit MemcachedClient type.
  • Test setup changes: Added

💬 Please send your feedback

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
43.8% Duplication on New Code

See analysis details on SonarQube Cloud

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.

1 participant