[NEUTRAL] Update dependency express-rate-limit to v7 #896
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^5.1.3
->^7.0.0
Release Notes
express-rate-limit/express-rate-limit (express-rate-limit)
v7.3.0
Compare Source
You can view the changelog here.
v7.2.0
Compare Source
You can view the changelog here.
v7.1.5
Compare Source
You can view the changelog here.
v7.1.4
Compare Source
You can view the changelog here.
v7.1.3
Compare Source
You can view the changelog here.
v7.1.2
Compare Source
You can view the changelog here.
v7.1.1
Compare Source
Misc
You can view the full changelog here.
v7.1.0
Compare Source
You can view the changelog here.
v7.0.2
Compare Source
You can view the changelog here.
v7.0.1
Compare Source
You can view the changelog here.
v7.0.0
Compare Source
Breaking
max
is set to 0:max: 0
was treated as a 'disable' flag and would allow all requests through.req.rateLimit.current
toreq.rateLimit.used
.current
is now a hidden getter that will return theused
value, but it will not appear when iterating over the keys or callingJSON.stringify()
.express-rate-limit
now targetses2022
in TypeScript/ESBuild.dts-bundle-generator
from v7 to v8.Deprecated
draft_polli_ratelimit_headers
option (it was deprecated in v6).standardHeaders: 'draft-6'
instead.onLimitReached
option (it was deprecated in v6).handler
option.Changed
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 tomax
.max
is still supported. The change was made to better align with terminology used in the IETF standard drafts.Added
validate
config option can now be an object with keys to enable or disable specific validation checks. For more information, see this.v6.11.2
Compare Source
Fixed
IncrementResponse
TypeScript type (See #397)v6.11.1
Compare Source
Fixed
v6.11.0
Compare Source
Added
v6.10.0
Compare Source
Added
RateLimit
header from the RateLimit header fields for HTTP standardization draft adopted by the IETF. Enable by settingstandardHeaders: 'draft-7'
standardHeaders: 'draft-6'
option, treated equivalent tostandardHeaders: true
from previous releases. (true
andfalse
are still supported.)RateLimit-Policy
header added whenstandardHeaders
is set to'draft-6'
,'draft-7'
, ortrue
draft_polli_ratelimit_headers
optiononLimitReached
optiontotalHits
value returned from Store is invalidv6.9.0
Compare Source
Added
ValidationError
, directing users to the appropriate wiki page for more infoChanged
You can view the full changelog here.
v6.8.1
Compare Source
Changed
You can view the full changelog here.
v6.8.0
Compare Source
Added
https://github.com/express-rate-limit/express-rate-limit/wiki/Error-Codes for
a list of potential errors. Can be disabled by setting
validate: false
inthe configuration. Automatically disables after the first request. (See
#358)
You can view the changelog here.
v6.7.2
Compare Source
(Backport of v6.8.1)
You can view the full changelog here.
v6.7.1
Compare Source
Fixed
node16
moduleresolution strategy (See
#355)
Changed
node
20 to list of versions the CI jobs run on.No functional changes.
You can view the changelog here.
v6.7.0
Compare Source
Changed
express-rate-limit
organization on GitHub.readme.md
for project sponsor Zuplo.typescript
version 5 and bumped other dependencies.node
12, and addednode
19 to the list of versions the CI jobs run on.You can view the changelog here.
v6.6.0
Compare Source
Added
shutdown
method to the Store interface and the MemoryStore. (#322)You can view the full changelog here.
v6.5.2
Compare Source
Fixed
You can view the changelog here.
v6.5.1
Compare Source
Changed
v6.4.0
Compare Source
Added
5.0.0-beta.1
) as a supported peer dependency (#304)Changed
v6.3.0
Compare Source
Changed
es2019
so that ESBuild outputs code that can run with Node 12.v6.2.1
Compare Source
Fixed
undefined
is passed to the ratelimiter.
v6.2.0
Compare Source
Added
MemoryStore
, so it can now be imported as a named import(
import { MemoryStore } from 'express-rate-limit'
).Fixed
onLimitReached
option (this was supposed to be deprecated inv6.0.0 itself); developers should use a custom handler function that checks if
the rate limit has been exceeded instead.
v6.1.0
Compare Source
Added
rateLimit
in case the default import does not work.Fixed
default
, so Typescript CommonJS developers can default-import the library (import rateLimit from 'express-rate-limit'
).v6.0.5
Compare Source
Fixed
esModuleInterop
flag in their Typescript compiler configuration.v6.0.4
Compare Source
Fixed
.tgz
to GitHub releases.Changed
main
andmodule
fields topackage.json
. This helps tools such as ESLint that do not yet support theexports
field.package-lock.json
to matchpackage.json
v6.0.3
Compare Source
Changed
??
), which isn't supported in Node prior to 14.x.v6.0.2
Compare Source
Fixed
Added
js-cjs
,js-esm
,ts-cjs
,ts-esm
environments.redis
,mongo
,memcached
,precise
).Changed
esbuild
to generate ESM and CJS output. This reduces the size of the built package from 138 kb to 13kb and build time to 4 ms! 🚀dts-bundle-generator
to generate a single Typescript declaration file.v6.0.1
Compare Source
Fixed
v6.0.0
Compare Source
Added
express
4.x as a peer dependency..tgz
file) on GitHub releases as well as the npm registry.Changed
draft_polli_ratelimit_headers
option tostandardHeaders
.headers
option tolegacyHeaders
.Retry-After
header is now sent if eitherlegacyHeaders
orstandardHeaders
is set.keyGenerator
to be an async function/return a promise.init
method for stores to set themselves up using options passed to the middleware.incr
method toincrement
.increment
,decrement
,resetKey
andresetAll
methods to return a promise.onLimitReached
configuration option is now deprecated. Replace it with a customhandler
that checks the number of hits.Removed
limiter.resetIp
method (use thelimiter.resetKey
method instead).delayMs
,delayAfter
(the delay functionality was moved to theexpress-slow-down
package) andglobal
(use a key generator that returns a constant value).v5.5.1
Compare Source
v5.5.0
Compare Source
v5.4.1
Compare Source
v5.4.0
Compare Source
v5.3.0
Compare Source
v5.2.6
Compare Source
v5.2.5
Compare Source
v5.2.3
Compare Source
v5.2.2
Compare Source
v5.2.1
Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.