Skip to content

v1.7.0

Compare
Choose a tag to compare
@leafo leafo released this 03 May 18:27
· 636 commits to master since this release

Changes

  • Replaced the CSRF implementation, removed the key parameter and replaced with it randomly generated string stored in cookie.
  • Sessions now use the lapis.encoding module to encode an decode. Session loading error messages have changed to include the error from encode_with_secret and decode_with_secret
  • Remove all support for luacrypto, luaossl is required

Additions

  • Add support for chaning HMAC function, add sha256 HMAC config option
  • Support parsing cookies when there are multiple cookie headers
  • Add enum type fro MySQL
  • Add support for encoding NULL and empty arrays for to_json and JSON render
  • Add config template for cqueues/lua-http support
  • Request object for cqueues/lua-http contains all the same fields as OpenResty counterpart
  • Performance object is available for cqueues/lua-http
  • Environment name is shown on server start log
  • Add bind_host config option to set which interface cqueues/lua-http binds to, defaults to 0.0.0.0

Fixes

  • Fix issue with MySQL migrations where query result was not being converted to number
  • Fix a crash when request args could not be parsed
  • Fix a crash when the query parameter type changes when being parsed (between table and literal)
  • json_params works with cqueues/lua-http
  • cqeueus/lua-http test server now works correctly, is now part of CI
  • cqeueus/lua-http will no longer get stuck in infinite loop when port is already taken
  • cqeueus/lua-http will only ready & parse body for form encoded content type
  • Terminal output buffering is disabled for cqeueus/lua-http so service files can read logs from stdout/stderr