rate-limiter-flexible 10.0.0 → 10.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CONTEXT.md +2 -2
  2. package/package.json +1 -1
package/CONTEXT.md CHANGED
@@ -45,8 +45,8 @@ Options can be changed at runtime: `rateLimiter.points = 50`, `rateLimiter.durat
45
45
 
46
46
  | Option | Default | Description |
47
47
  |--------|---------|-------------|
48
- | `points` | `4` | Max points consumable over `duration`. |
49
- | `duration` | `1` | Seconds before points reset (from first consume). `0` = never expire. |
48
+ | `points` | **Required** | Max points consumable over `duration`. Must be a number. |
49
+ | `duration` | **Required** | Seconds before points reset (from first consume). Must be >= 0. `0` = never expire. |
50
50
  | `keyPrefix` | `'rlflx'` | Unique prefix per limiter to avoid key collisions. For some stores, used as table/collection name. |
51
51
  | `blockDuration` | `0` | If >0, block key for this many seconds once points exhausted. |
52
52
  | `storeClient` | — | Required for store limiters. Accepts `@valkey/valkey-glide`, `iovalkey`, `redis`, `ioredis`, `memcached`, `mongodb`, `pg`, `mysql2`, `mysql`, Sequelize, TypeORM, Knex, or any related pool/connection. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rate-limiter-flexible",
3
- "version": "10.0.0",
3
+ "version": "10.0.1",
4
4
  "description": "Node.js atomic and non-atomic counters, rate limiting tools, protection from DoS and brute-force attacks at scale",
5
5
  "main": "index.js",
6
6
  "scripts": {