- Require node >= 6.0.0
- Set
ctx.id
,ctx.request.id
, andctx.state.requestId
as requestId - Add
debug
module onctx.debug
andctx.app.debug
- Set
app.context.config
(andctx.config
) to be the app configuration - Use
koa-body
instead ofkoa-better-body
- Allow middleware to be disabled with the
enabled: false
flag - Add request logging via
koa-morgan
First major release 🚀
koa-plus
is koa
with the following middleware by default:
- koa-helmet (security headers)
- kcors (CORS)
- koa-compress (gzip)
- koa-etag (ETag support)
- koa-conditional-get (304 Not Modified support)
- koa-better-body (request body parsing)
- koa-json (object streaming, json printing)
Adds support for:
- CORS
- Response Compression (Gzip)
- Body parsing
- ETags with Conditional GETs
First release, including security headers via koa-helmet, response timing, and request IDs.