npm rate-limiter-flexible 11.4.0
Fix Prisma and Drizzle atomicity

48 minutes ago

What's Changed

  • Make the Prisma and Drizzle upserts atomic and count duration 0 by @efeesrefinal in #374

Fixed atomicity: RateLimiterPrisma and RateLimiterDrizzle now count concurrent requests atomically. Before, concurrent requests could get past the limit.

Duration 0 fix: with duration 0, Prisma, Drizzle and DrizzleNonAtomic limiters now keep counting and never expire, as documented. Before, the points were overwritten on every call and the limit never applied. Keys from block(key, 0) or set(key, points, 0) now stay forever after a consume, instead of being reset.

New Contributors

Full Changelog: v11.3.0...v11.4.0

🐎

Don't miss a new rate-limiter-flexible release

NewReleases is sending notifications on new releases.