- deps: cookie@0.4.1
- Fix
maxAge
option to reject invalid values
- Fix
- deps: http-errors@1.8.0
- deps: setprototypeof@1.2.0
- deps: cookie@0.4.0
- Add
SameSite=None
support
- Add
- deps: http-errors@~1.7.3
- deps: inherits@2.0.4
- deps: csrf@3.1.0
- Remove
base64-url
dependency - deps: tsscmp@1.0.6
- deps: uid-safe@2.1.5
- Remove
- deps: http-errors@~1.7.2
- Make
message
property enumerable forHttpError
s - Set constructor name when possible
- deps: depd@~1.1.2
- deps: inherits@2.0.3
- deps: setprototypeof@1.1.1
- deps: statuses@'>= 1.5.0 < 2'
- Make
- perf: remove argument reassignment
- perf: use plain object for internal cookie options
- Pass invalid csrf token error to
next()
instead of throwing - Pass misconfigured error to
next()
instead of throwing - Provide misconfigured error when using cookies without cookie-parser
- deps: cookie@0.3.1
- Add
sameSite
option - Fix cookie
Max-Age
to never be a floating point number - Improve error message when
expires
is not aDate
- Throw better error for invalid argument to parse
- Throw on invalid values provided to
serialize
- perf: enable strict mode
- perf: hoist regular expression
- perf: use for loop in parse
- perf: use string concatination for serialization
- Add
- deps: csrf@~3.0.3
- Use
tsscmp
module for timing-safe token verification - deps: base64-url@1.2.2
- deps: rndm@1.2.0
- deps: uid-safe@2.1.1
- Use
- deps: http-errors@~1.5.0
- Add
HttpError
export, forerr instanceof createError.HttpError
- Support new code
421 Misdirected Request
- Use
setprototypeof
module to replace__proto__
setting - deps: inherits@2.0.1
- deps: statuses@'>= 1.3.0 < 2'
- perf: enable strict mode
- Add
- perf: enable strict mode
- perf: remove argument reassignment
- deps: cookie@0.1.3
- Slight optimizations
- deps: csrf@~3.0.0
- deps: uid-safe@~2.0.0
- deps: csrf@~2.0.7
- Fix compatibility with
crypto.DEFAULT_ENCODING
global changes
- Fix compatibility with
- Add
sessionKey
option
- Accept
CSRF-Token
andXSRF-Token
request headers - Default
cookie.path
to'/'
, if using cookies - deps: cookie-signature@1.0.6
- deps: csrf@~2.0.6
- deps: base64-url@1.2.1
- deps: uid-safe@~1.1.0
- deps: http-errors@~1.3.1
- Construct errors using defined constructors from
createError
- Fix error names that are not identifiers
- Set a meaningful
name
property on constructed errors
- deps: csrf@~2.0.5
- deps: base64-url@1.2.0
- deps: uid-safe@~1.0.3
- deps: csrf@~2.0.4
- deps: uid-safe@~1.0.2
- deps: csrf@~2.0.3
- Slight speed improvement for
verify
- deps: base64-url@1.1.0
- deps: rndm@~1.1.0
- Slight speed improvement for
- deps: http-errors@~1.2.8
- Fix stack trace from exported function
- deps: csrf@~2.0.2
- deps: scmp@1.0.0
- deps: http-errors@~1.2.7
- Remove duplicate line
- Fix cookie name when using
cookie: true
- deps: http-errors@~1.2.6
- Fix
expose
to betrue
forClientError
constructor - Use
inherits
instead ofutil
- deps: statuses@1
- Fix
- deps: cookie-signature@1.0.5
- Set
code
property on CSRF token errors
- Add
ignoreMethods
option
- Use
csrf-tokens
instead ofcsrf
- Support changing
req.session
aftercsurf
middleware- Calling
res.csrfToken()
afterreq.session.destroy()
will now work
- Calling
- Add support for environments without
res.cookie
(connect@3)
- deps: csrf-tokens@~2.0.0
- Refactor to use
csrf-tokens
module
- Add support for double-submit cookie
- Add constant-time string compare