Skip to content

Moving data and adding skip option

Compare
Choose a tag to compare
@mark-bradshaw mark-bradshaw released this 05 Jan 15:41
· 127 commits to master since this release

Due to changes in Hapi, I am moving the data storage from request.session to request.yar. This will be more future proof, but will necessitate some code changes for those upgrading from v5 or earlier. I apologize for the inconvenience, but that is why this is a major version change.

This also includes a new route level configuration option that allows you to disable yar on a route by route basis. This let's you avoid any processing from yar on routes that don't need sessions, making your application more responsive. See the docs for more info.