Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Releases: expressjs/csurf

1.11.0

19 Jan 04:28
Compare
Choose a tag to compare

1.10.0

23 Apr 01:32
Compare
Choose a tag to compare

1.9.0

27 Mar 04:28
Compare
Choose a tag to compare
  • 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: [email protected]
    • Add sameSite option
    • Fix cookie Max-Age to never be a floating point number
    • Improve error message when expires is not a Date
    • 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
  • deps: csrf@~3.0.3
  • deps: http-errors@~1.5.0
    • Add HttpError export, for err instanceof createError.HttpError
    • Support new code 421 Misdirected Request
    • Use setprototypeof module to replace __proto__ setting
    • deps: [email protected]
    • deps: statuses@'>= 1.3.0 < 2'
    • perf: enable strict mode
  • perf: enable strict mode
  • perf: remove argument reassignment

1.8.3

11 Jun 01:20
Compare
Choose a tag to compare

1.8.2

10 May 03:40
Compare
Choose a tag to compare
  • deps: csrf@~3.0.0
    • deps: uid-safe@~2.0.0

1.8.1

10 May 03:40
Compare
Choose a tag to compare
  • deps: csrf@~2.0.7
    • Fix compatibility with crypto.DEFAULT_ENCODING global changes

1.8.0

08 Apr 03:17
Compare
Choose a tag to compare
  • Add sessionKey option

1.7.0

15 Feb 23:11
Compare
Choose a tag to compare
  • Accept CSRF-Token and XSRF-Token request headers
  • Default cookie.path to '/', if using cookies
  • deps: [email protected]
  • deps: csrf@~2.0.6
  • 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