Skip to content

Releases: express-rate-limit/express-rate-limit

v7.2.0

02 Mar 21:41
Compare
Choose a tag to compare

You can view the changelog here.

v7.1.5

27 Nov 18:48
Compare
Choose a tag to compare

You can view the changelog here.

v7.1.4

06 Nov 14:38
Compare
Choose a tag to compare

You can view the changelog here.

v7.1.3

26 Oct 15:57
Compare
Choose a tag to compare

You can view the changelog here.

v7.1.2

23 Oct 12:19
Compare
Choose a tag to compare

You can view the changelog here.

v7.1.1

09 Oct 10:53
v7.1.1
8e2a93e
Compare
Choose a tag to compare

Misc


You can view the full changelog here.

v7.1.0

04 Oct 14:20
Compare
Choose a tag to compare

You can view the changelog here.

v7.0.2

26 Sep 19:50
Compare
Choose a tag to compare

You can view the changelog here.

v7.0.1

16 Sep 07:50
v7.0.1
e641a54
Compare
Choose a tag to compare

You can view the changelog here.

v7.0.0

12 Sep 16:25
v7.0.0
1b6c5ef
Compare
Choose a tag to compare

Breaking

  • Changed behavior when max is set to 0:
    • Previously, max: 0 was treated as a 'disable' flag and would allow all requests through.
    • Starting with v7, all requests will be blocked when max is set to 0.
    • To replicate the old behavior, use the skip function instead.
  • Renamed req.rateLimit.current to req.rateLimit.used.
    • current is now a hidden getter that will return the used value, but it will not appear when iterating over the keys or calling JSON.stringify().
  • Changed the minimum required Node version from v14 to v16.
    • express-rate-limit now targets es2022 in TypeScript/ESBuild.
  • Bumped TypeScript from v4 to v5 and dts-bundle-generator from v7 to v8.

Deprecated

  • Removed the draft_polli_ratelimit_headers option (it was deprecated in v6).
    • Use standardHeaders: 'draft-6' instead.
  • Removed the onLimitReached option (it was deprecated in v6).
    • This is an example of how to replicate it's behavior with a custom handler option.

Changed

  • The MemoryStore now uses precise, per-user reset times rather than a global window that resets all users at once.
  • The limit configuration option is now prefered to max.
    • It still shows the same behavior, and max is still supported. The change was made to better align with terminology used in the IETF standard drafts.

Added

  • The validate config option can now be an object with keys to enable or disable specific validation checks. For more information, see this.