Skip to content

Commit ad379b4

Browse files
committed
Update change log and increment version number
1 parent 0135759 commit ad379b4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,13 @@ app.post('/auth',
138138

139139
Changelog
140140
---------
141+
### v0.4.0
142+
* NEW: `attachResetToRequest` parameter that lets you prevent the request object being decorated
143+
* NEW: `failCallback` can be overriden by `getMiddleware`
144+
* NEW: `proxyDepth` option on `ExpressBrute` that specifies how many levels of the `X-Forwarded-For` header to trust (inspired by [express-bouncer](https://github.com/dkrutsko/express-bouncer/)).
145+
* NEW: `getIPFromRequest` method that essentially allows `reset` to used in a similar ways as in v0.2.2. This also respects the new `proxyDepth` setting.
146+
* CHANGED: `getMiddleware` now takes an options object instead of the key directly.
147+
141148
### v0.3.0
142149
* NEW: Support for using custom keys to group requests further (e.g. grouping login requests by username)
143150
* NEW: Support for middleware from multiple instances of `ExpressBrute` on the same route.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "express-brute",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"description": "A brute-force protection middleware for express routes that rate limits incoming requests",
55
"keywords": [
66
"brute",

0 commit comments

Comments
 (0)