Skip to content

v2.2.0

Choose a tag to compare

@Baroshem Baroshem released this 04 Mar 08:04
· 69 commits to main since this release
99019bb

This version introduces a new feature to the rate limiter middleware by adding a whitelist option, along with several related changes to the codebase and documentation.

New Feature: Whitelist Option for Rate Limiter

  • Rate Limiter Configuration:

    • Added a whiteList property to the RateLimiter type, allowing specific IP addresses to bypass rate limiting. (docs/content/3.middleware/1.rate-limiter.md, src/types/middlewares.ts, src/defaultConfig.ts) [1] [2] [3]
    • Updated documentation to include details about the new whiteList property. (docs/content/3.middleware/1.rate-limiter.md)
  • Security Configuration:

    • Fixed an issue where securityConfig was not correctly initialized in the basic authentication middleware. (src/runtime/server/middleware/basicAuth.ts)
  • Nonce Handling:

    • Improved the handling of nonces in CSP headers by ensuring existing nonces are replaced instead of duplicated. (src/runtime/nitro/plugins/40-cspSsrNonce.ts) [1] [2]

What's Changed

New Contributors

Full Changelog: v2.1.5...v2.2.0