express-rate-limit

Basic rate-limiting middleware for the Express web server

OTHER License

Downloads
6M
Stars
2.7K
Committers
64

Bot releases are visible (Hide)

express-rate-limit - v7.2.0 Latest Release

Published by github-actions[bot] 8 months ago

You can view the changelog here.

express-rate-limit - v7.1.5

Published by github-actions[bot] 11 months ago

You can view the changelog here.

express-rate-limit - v7.1.4

Published by github-actions[bot] 12 months ago

You can view the changelog here.

express-rate-limit - v7.1.3

Published by github-actions[bot] 12 months ago

You can view the changelog here.

express-rate-limit - v7.1.2

Published by github-actions[bot] 12 months ago

You can view the changelog here.

express-rate-limit - v7.1.1

Published by github-actions[bot] about 1 year ago

Misc


You can view the full changelog here.

express-rate-limit - v7.1.0

Published by github-actions[bot] about 1 year ago

You can view the changelog here.

express-rate-limit - v7.0.2

Published by github-actions[bot] about 1 year ago

You can view the changelog here.

express-rate-limit - v7.0.1

Published by github-actions[bot] about 1 year ago

You can view the changelog here.

express-rate-limit - v7.0.0

Published by github-actions[bot] about 1 year ago

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.
express-rate-limit - v6.11.2

Published by github-actions[bot] about 1 year ago

Fixed

  • Restored IncrementResponse TypeScript type (See #397)
express-rate-limit - v6.11.1

Published by github-actions[bot] about 1 year ago

Fixed

  • Check for prefixed keys when validating that the stores have single counted keys (See #395).
express-rate-limit - v6.11.0

Published by github-actions[bot] about 1 year ago

You can view the changelog here.

express-rate-limit - v6.10.0

Published by github-actions[bot] about 1 year ago

Added

  • Support for combined RateLimit header from the RateLimit header fields for HTTP standardization draft adopted by the IETF. Enable by setting standardHeaders: 'draft-7'
  • New standardHeaders: 'draft-6' option, treated equivalent to standardHeaders: true from previous releases. (true and false are still supported.)
  • New RateLimit-Policy header added when standardHeaders is set to 'draft-6', 'draft-7', or true
  • Warning when using deprecated draft_polli_ratelimit_headers option
  • Warning when using deprecated onLimitReached option
  • Warning when totalHits value returned from Store is invalid
express-rate-limit - v6.9.0

Published by github-actions[bot] about 1 year ago

Added

  • New validaion check for double-counted requests
  • Added help link to each ValidationError, directing users to the appropriate wiki page for more info

Changed

  • Miscaleanous documenation improvements

You can view the full changelog here.

express-rate-limit - v6.8.1

Published by github-actions[bot] about 1 year ago

You can view the changelog here.

express-rate-limit - v6.7.2

Published by github-actions[bot] about 1 year ago

You can view the changelog here.

express-rate-limit - v6.8.0

Published by github-actions[bot] about 1 year ago

Added

You can view the changelog here.

express-rate-limit - v6.7.1

Published by github-actions[bot] over 1 year ago

Fixed

  • Fixed compatibility with TypeScript's TypeScript new node16 module
    resolution strategy (See
    #355)

Changed

  • Bumped development dependencies.
  • Added node 20 to list of versions the CI jobs run on.

No functional changes.

You can view the changelog here.

express-rate-limit - v6.7.0

Published by github-actions[bot] almost 2 years ago

No functional changes.

Changed

  • Updated links to point to the new express-rate-limit organization on GitHub.
  • Added advertisement to readme.md for project sponsor Zuplo.
  • Updated to typescript version 5 and bumped other dependencies.
  • Dropped node 12, and added node 19 to the list of versions the CI jobs run on.

You can view the changelog here.

Package Rankings
Top 0.75% on Npmjs.org
Badges
Extracted from project README
tests npm version npm downloads license
Related Projects