Skip to content

v2.0.0

Choose a tag to compare

@kfitzgerald kfitzgerald released this 14 Mar 17:29
· 8 commits to master since this release

Hapi 17+ Support!

  • Rewrote plugin using hapi-auth-cookie as base code (again)
  • Decoupled plugin from Okanjo-App, no longer needed as a dependency
  • Updated eslint/npm/travis configs
  • SessionPlugin exports a register function, making it easy to register to an OkanjoServer instance.
  • SessionCookiePlugin contains the full plugin implementation, usable with Hapi directly
  • Updated tests, retrofitting and adding new tests for coverage
  • Updated example app
  • Updated docs
  • Ditched yarn

Breaking Changes

  • Plugin registration has changed. Use SessionPlugin.register(...) instead.
  • Configuration has changed. It matches hapi-auth-cookie, except password has been removed, cache and report have been added.
  • request.session interface has changed to use async functions (returns promises). They optionally take a callback for some backwards compatibility.