17 February 2015
- [226a954f3] Fix schema coercion when using
fnSchema - [32177b926] Only coerce once when using multiple layers of schema
17 February 2015
- [226a954f3] Fix schema coercion when using
fnSchema - [32177b926] Only coerce once when using multiple layers of schema
15 February 2015
- Fix bug where helmet was not being used if non-default config was used
15 February 2015
- Fix bug where helmet was not being used if non-default config was used
10 February 2015
- Breaking change to how schemas are processed
- schemas are now restrictive by default due to the base schema passed to
jsonschemafor all objects
- schemas are now restrictive by default due to the base schema passed to
22 December 2015
- [f8f9a274] Allow schema function to optionally return falsy value to skip validation
- [7b0567fb] Added schema parser for object types. Now complex query parameters (a.k.a. JSON stringified objects) will be converted to an object automatically
9 August 2015
3 August 2015
- Added
koa-gzipmiddleware - Added
koa-helmetmiddleware
2 August 2015
- Added
koa-vitalsignsmiddleware- If enabled, exposed on
/healthby default with nosecret. - Disabled by default. Will be enabled by default in the next major release.
- If enabled, exposed on
- Added
koa-no-cachemiddleware- Disabled by default.
- Added
koa-json-loggermiddleware- Disabled by default. Will be enabled by default in the next major release.
25 July 2015
- Removed
traversedependency
25 July 2015
- [BREAKING CHANGE] Enable
coerceTypesby default - [BREAKING CHANGE] Removed
koa-error, replaced with in-house implementation- Only supports json now
- [BREAKING CHANGE] Pass option
allowUnknownAttributesto schema validator whenstrictoption is true - [NEW FEATURE] Allow passing a function to schema middleware
- Useful for running conditional middleware dependent on some request parameter
- [BUGFIX] Schema errors will now emit an
errorjust like any other error
25 July 2015
- Added
coerceTypesoption for schema middleware which coerces parameters to the same type as the schema- Defaults to
false. This will default totruein the next major release
- Defaults to
14 May 2015
- Fixed params schema bug
koa-routerno longer treatsparamsas an array
7 May 2015
- Added io.js v2.0.x to CI build
- Fixed bug in request id middleware
- It was implemented incorrectly but tests were passing
6 May 2015
- Added
koa-x-request-idmiddleware for adding request ids to distinguish between requests and for supporting logging - Added ability to disable middleware if needed
- Added
app.KF_VERSIONto return thekoa-frameworkversion
2 May 2015
- Changed
app.routerto createkoa-routerinstances instead of returning a single instance- This adds the benefit of adding namespaced middleware by creating multiple routers
19 Mar 2015
- Changed how schema errors are handled
- The server now sends
res.errorandres.validationErrorsin the response body
- The server now sends
- Added branding assets
13 Feb 2015
- Fixed bug where
opt.strictoverridesadditionalProperties. - Additionally,
optargument inapp.schemahas been deprecated as all its functionality can be provided with the passed schema. It just adds additional complexity.- Instead of setting
opt.stricttotrue, simply passadditionalPropertiestofalse.
- Instead of setting
3 Feb 2015
- Updated dependencies
17 Dec 2014
- Bumped koa to 0.14.0
- Removed app.poweredBy directive since it is no longer enabled by default
28 Nov 2014
- Added koa-error to support more error response types
27 Nov 2014
- Default validator is wrapped in jsonschema-extra to support additional types and properties
27 Nov 2014
- Breaking change: Changed route schema parsing to allow more flexible schemas
- Minor version bump of dependencies
- Initial release
30 Sep 2014
- Breaking change: Router is now exposed as
app.router. This allows you to add your own middleware before the router middleware. - Changed dependency versions slightly so downstream packages can receive bugfixes
27 Sep 2014
- Initial release
- Updated lower level dependencies
- Updated lower level dependencies - minor upgrades only
- Fix
paramsvalidation bug where its expecting an object but it's created as an array bykoa-router
- Changed name to
koa-framework
- Removes dependency on private jsonschema validator. Uses the public
jsonschemapackage instead - Removed private label so the package can be published to npm
- Adds support for body parsing using
co-body
- Initial release