chore(deps): update dependency express-rate-limit to v8 #31
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.5.1->^8.0.0Release Notes
express-rate-limit/express-rate-limit (express-rate-limit)
v8.2.0Compare Source
You can view the changelog here.
v8.1.0Compare Source
You can view the changelog here.
v8.0.1Compare Source
You can view the changelog here.
v8.0.0Compare Source
You can view the changelog here.
v7.5.1Compare Source
Changed
standardHeadersfromstringto just the supported values via a TypeScriptconstassertion (#506)You can view the full changelog here.
v7.5.0Compare Source
Added
RateLimitheader according to the eighth draft of the IETF RateLimit header specificiation. Enable by settingstandardHeaders: 'draft-8'.identifieroption, used as the name for the quota policy in thedraft-8headers.headersDraftVersionvalidation check to identifies cases where an unsupported version string is passed to thestandardHeadersoption.You can view the full changelog here.
v7.4.1Compare Source
Fixed
passOnStoreErrorreturn after callingnext()rather than continuing execution.You can view the full changelog here.
v7.4.0Compare Source
Added
passOnStoreErroroption to allow a way to "fail open" in the event of a backend error.You can view the full changelog here.
v7.3.1Compare Source
Fixed
creationStackvalidation check when a storewith
localKeysset to false is used.creationStackcheck.You can view the full changelog here.
v7.3.0Compare Source
Added
unsharedStorevalidation check that identifies cases where asingle store instance is shared across multiple limiters.
You can view the full changelog here.
v7.2.0Compare Source
Added
creationStackvalidation check that looks for instances createdin a request handler.
You can view the full changelog here.
v7.1.5Compare Source
Fixed
asyncrequestWasSuccessfulmethods to work as documented.You can view the full changelog here.
v7.1.4Compare Source
Fixed
Bun.
You can view the full changelog here.
v7.1.3Compare Source
Changed
#415)
You can view the full changelog here.
v7.1.2Compare Source
Changed
documentation website.
You can view the full changelog here.
v7.1.1Compare Source
Misc
You can view the full changelog here.
v7.1.0Compare Source
Changed
getKeymethod is now always defined. If the store does not have therequired
getmethod,getKeywill throw an error explaining this.You can view the full changelog here.
v7.0.2Compare Source
Added
cluster-memory-storeto the readme and made a couple of other minorclarifications.
You can view the full changelog here.
v7.0.1Compare Source
Added
rate-limit-postgresqlto thestoreslist in the readme.You can view the full changelog here.
v7.0.0Compare Source
Breaking
maxis set to 0:max: 0was treated as a 'disable' flag and would allow all requests through.req.rateLimit.currenttoreq.rateLimit.used.currentis now a hidden getter that will return theusedvalue, but it will not appear when iterating over the keys or callingJSON.stringify().express-rate-limitnow targetses2022in TypeScript/ESBuild.dts-bundle-generatorfrom v7 to v8.Deprecated
draft_polli_ratelimit_headersoption (it was deprecated in v6).standardHeaders: 'draft-6'instead.onLimitReachedoption (it was deprecated in v6).handleroption.Changed
MemoryStorenow uses precise, per-user reset times rather than a global window that resets all users at once.limitconfiguration option is now prefered tomax.maxis still supported. The change was made to better align with terminology used in the IETF standard drafts.Added
validateconfig option can now be an object with keys to enable or disable specific validation checks. For more information, see this.v6.11.2Compare Source
Fixed
IncrementResponseTypeScript type (See #397)v6.11.1Compare Source
Fixed
v6.11.0Compare Source
Added
v6.10.0Compare Source
Added
RateLimitheader 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: truefrom previous releases. (trueandfalseare still supported.)RateLimit-Policyheader added whenstandardHeadersis set to'draft-6','draft-7', ortruedraft_polli_ratelimit_headersoptiononLimitReachedoptiontotalHitsvalue returned from Store is invalidv6.9.0Compare Source
Added
ValidationError, directing users to the appropriate wiki page for more infoChanged
You can view the full changelog here.
v6.8.1Compare Source
Changed
You can view the full changelog here.
v6.8.0Compare 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: falseinthe configuration. Automatically disables after the first request. (See
#358)
You can view the changelog here.
v6.7.2Compare Source
(Backport of v6.8.1)
You can view the full changelog here.
v6.7.1Compare Source
Fixed
node16moduleresolution strategy (See
#355)
Changed
node20 to list of versions the CI jobs run on.No functional changes.
You can view the changelog here.
v6.7.0Compare Source
Changed
express-rate-limitorganization on GitHub.readme.mdfor project sponsor Zuplo.typescriptversion 5 and bumped other dependencies.node12, and addednode19 to the list of versions the CI jobs run on.You can view the changelog here.
v6.6.0Compare Source
Added
shutdownmethod to the Store interface and the MemoryStore. (#322)You can view the full changelog here.
v6.5.2Compare Source
Fixed
You can view the changelog here.
v6.5.1Compare Source
Changed
v6.4.0Compare Source
Added
5.0.0-beta.1) as a supported peer dependency (#304)Changed
v6.3.0Compare Source
Changed
es2019so that ESBuild outputs code that can run with Node 12.v6.2.1Compare Source
Fixed
undefinedis passed to the ratelimiter.
v6.2.0Compare Source
Added
MemoryStore, so it can now be imported as a named import(
import { MemoryStore } from 'express-rate-limit').Fixed
onLimitReachedoption (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.0Compare Source
Added
rateLimitin 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.5Compare Source
Fixed
esModuleInteropflag in their Typescript compiler configuration.v6.0.4Compare Source
Fixed
.tgzto GitHub releases.Changed
mainandmodulefields topackage.json. This helps tools such as ESLint that do not yet support theexportsfield.package-lock.jsonto matchpackage.jsonv6.0.3Compare Source
Changed
??), which isn't supported in Node prior to 14.x.v6.0.2Compare Source
Fixed
Added
js-cjs,js-esm,ts-cjs,ts-esmenvironments.redis,mongo,memcached,precise).Changed
esbuildto 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-generatorto generate a single Typescript declaration file.v6.0.1Compare Source
Fixed
v6.0.0Compare Source
Added
express4.x as a peer dependency..tgzfile) on GitHub releases as well as the npm registry.Changed
draft_polli_ratelimit_headersoption tostandardHeaders.headersoption tolegacyHeaders.Retry-Afterheader is now sent if eitherlegacyHeadersorstandardHeadersis set.keyGeneratorto be an async function/return a promise.initmethod for stores to set themselves up using options passed to the middleware.incrmethod toincrement.increment,decrement,resetKeyandresetAllmethods to return a promise.onLimitReachedconfiguration option is now deprecated. Replace it with a customhandlerthat checks the number of hits.Removed
limiter.resetIpmethod (use thelimiter.resetKeymethod instead).delayMs,delayAfter(the delay functionality was moved to theexpress-slow-downpackage) andglobal(use a key generator that returns a constant value).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 is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.