Basic rate-limiting middleware for the Express web server
OTHER License
Bot releases are visible (Hide)
Published by github-actions[bot] about 1 year ago
You can view the full changelog here.
Published by github-actions[bot] about 1 year ago
max
is set to 0:
max: 0
was treated as a 'disable' flag and would allow all requests through.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()
.express-rate-limit
now targets es2022
in TypeScript/ESBuild.dts-bundle-generator
from v7 to v8.draft_polli_ratelimit_headers
option (it was deprecated in v6).
standardHeaders: 'draft-6'
instead.onLimitReached
option (it was deprecated in v6).
handler
option.MemoryStore
now uses precise, per-user reset times rather than a global window that resets all users at once.limit
configuration option is now prefered to max
.
max
is still supported. The change was made to better align with terminology used in the IETF standard drafts.validate
config option can now be an object with keys to enable or disable specific validation checks. For more information, see this.Published by github-actions[bot] about 1 year ago
RateLimit
header from the RateLimit header fields for HTTP standardization draft adopted by the IETF. Enable by setting standardHeaders: 'draft-7'
standardHeaders: 'draft-6'
option, treated equivalent to standardHeaders: true
from previous releases. (true
and false
are still supported.)RateLimit-Policy
header added when standardHeaders
is set to 'draft-6'
, 'draft-7'
, or true
draft_polli_ratelimit_headers
optiononLimitReached
optiontotalHits
value returned from Store is invalidPublished by github-actions[bot] about 1 year ago
ValidationError
, directing users to the appropriate wiki page for more infoYou can view the full changelog here.
Published by github-actions[bot] about 1 year ago
validate: false
inYou can view the changelog here.
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] almost 2 years ago
No functional changes.
express-rate-limit
organization on GitHub.readme.md
for project sponsor Zuplo.typescript
version 5 and bumped other dependencies.node
12, and added node
19 to the list of versions the CI jobs run on.You can view the changelog here.