- Added: http 304 not-modified support to
sendfile(ctx.fresh check) - Changed: set sendfile default
maxage=86400 - Bugfix:
maxagewas not evaluated due to case typo (maxAge)
- Bugfix:
_csrfTokenwas exposed inctx.responseinstead ofctx.state - Bugfix: csrf middleware failed to forward request on succeess (typo)
- Added: csrf token generation+validation to be used with keygrip/cookie storage
- Added: async ejs renderer
- Added: enhanced usage example
- Refactored codebase
- Added:
sendfileimplementation to serve single files (available within koa context) - Added: staticfile implementation to serve static files within given root path (replaces koa-static)
Added: extend() method to extended Koa class to allow context injections
Changed: moved dispatcher methods from Router to <koa-magic>.Dispatcher
Changed: Router class is directly exposed <koa-magic>.Router
Added: AppicationServer config can be a function or object - support for async configuration initialization
Changed: ctx.path is altered directly within routing to ensure third-party compatibility
Added: support for multiple matches mounted on same path Changed: splitted routing middleware into multiple parts
Initial Public Release