Skip to content

Latest commit

 

History

History
executable file
·
45 lines (31 loc) · 1.44 KB

CHANGES.md

File metadata and controls

executable file
·
45 lines (31 loc) · 1.44 KB

Changelog

Branch 1.x

1.2.0

  • Added: http 304 not-modified support to sendfile (ctx.fresh check)
  • Changed: set sendfile default maxage=86400
  • Bugfix: maxage was not evaluated due to case typo (maxAge)

1.1.1

  • Bugfix: _csrfToken was exposed in ctx.response instead of ctx.state
  • Bugfix: csrf middleware failed to forward request on succeess (typo)

1.1.0

  • Added: csrf token generation+validation to be used with keygrip/cookie storage
  • Added: async ejs renderer
  • Added: enhanced usage example

1.0.2

  • Refactored codebase
  • Added: sendfile implementation to serve single files (available within koa context)
  • Added: staticfile implementation to serve static files within given root path (replaces koa-static)

Preliminary Release

0.4.0

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

0.3.0

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

0.2.0

Added: support for multiple matches mounted on same path Changed: splitted routing middleware into multiple parts

0.1.0

Initial Public Release