Skip to content

v0.4.0

Compare
Choose a tag to compare
@ciscoheat ciscoheat released this 19 Aug 16:31
· 31 commits to main since this release

Changed

  • limiter.preflight is now async and must be awaited!
  • Cookie limiter options now takes a serializeOptions, that can be used for customizing the cookie.

Added

  • hashFunction option, for custom hashing. Defaults to Web Crypto API SHA-256, will fallback to NodeJS crypto if not available.

Fixed

  • Hash function is now compatible any environment that supports Web Crypto API, including Cloudflare workers.