Conversation
|
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information |
|
Important Auto Review SkippedBot user detected. To trigger a single review, invoke the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
This PR contains the following updates:
^5.4.1->^7.0.0Release Notes
express-rate-limit/express-rate-limit (express-rate-limit)
v7.2.0Compare Source
You can view the changelog here.
v7.1.5Compare Source
You can view the changelog here.
v7.1.4Compare Source
You can view the changelog here.
v7.1.3Compare Source
You can view the changelog here.
v7.1.2Compare Source
Changed
documentation website.
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.v7.0.2Compare Source
Added
cluster-memory-storeto the readme and made a couple of other minorclarifications.
v7.0.1Compare Source
You can view the changelog here.
v7.0.0Compare Source
Breaking
maxis set to 0:max: 0was treated as a 'disable' flag and would allow allrequests through.
skip
function instead.
req.rateLimit.currenttoreq.rateLimit.used.currentis now a hidden getter that will return theusedvalue, but itwill not appear when iterating over the keys or calling
JSON.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).is an example of how to replicate it's behavior with a custom
handleroption.
Changed
MemoryStorenow uses precise, per-user reset times rather than a globalwindow that resets all users at once.
limitconfiguration option is now prefered tomax.maxis still supported. The changewas made to better align with terminology used in the IETF standard drafts.
Added
validateconfig option can now be an object with keys to enable ordisable specific validation checks. For more information, see
this.
v6.11.2Compare Source
Fixed
IncrementResponseTypeScript type (See#397)
v6.11.1Compare Source
Fixed
keys (See
#395).
v6.11.0Compare Source
Added
from a store (See
#390).
v6.10.0Compare Source
Added
RateLimitheader from theRateLimit header fields for HTTP standardization draft
adopted by the IETF. Enable by setting
standardHeaders: 'draft-7'.standardHeaders: 'draft-6'option, treated equivalent tostandardHeaders: truefrom previous releases. Note thattrueandfalseare still supported.
RateLimit-Policyheader added whenstandardHeadersis set to'draft-6','draft-7', ortrue.draft_polli_ratelimit_headersoption.onLimitReachedoption.totalHitsvalue returned from Store is invalid.v6.9.0Compare Source
Added
wiki page for more info.
Changed
v6.8.1Compare Source
Changed
dts-bundle-generator from 8.x to 7.x (See
#360).
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).
v6.7.2Compare Source
Changed
dts-bundle-generator from 8.x to 7.x (See
#360).
v6.7.1Compare Source
Fixed
node16moduleresolution strategy (See
#355).
Changed
dts-bundle-generator from 7.x to 8.x
node20 to list of versions the CI jobs run on.No functional changes.
v6.7.0Compare Source
Changed
express-rate-limitorganization on GitHub.readme.mdfor project sponsorZuplo.
typescriptversion 5 and bumped other dependencies.node12, and addednode19 to the list of versions the CI jobs runon.
No functional changes.
v6.6.0Compare Source
Added
shutdownmethod to the Store interface and the MemoryStore.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 becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.