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
jsonschema
for 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-gzip
middleware - Added
koa-helmet
middleware
2 August 2015
- Added
koa-vitalsigns
middleware- If enabled, exposed on
/health
by default with nosecret
. - Disabled by default. Will be enabled by default in the next major release.
- If enabled, exposed on
- Added
koa-no-cache
middleware- Disabled by default.
- Added
koa-json-logger
middleware- Disabled by default. Will be enabled by default in the next major release.
25 July 2015
- Removed
traverse
dependency
25 July 2015
- [BREAKING CHANGE] Enable
coerceTypes
by default - [BREAKING CHANGE] Removed
koa-error
, replaced with in-house implementation- Only supports json now
- [BREAKING CHANGE] Pass option
allowUnknownAttributes
to schema validator whenstrict
option 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
error
just like any other error
25 July 2015
- Added
coerceTypes
option for schema middleware which coerces parameters to the same type as the schema- Defaults to
false
. This will default totrue
in the next major release
- Defaults to
14 May 2015
- Fixed params schema bug
koa-router
no longer treatsparams
as 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-id
middleware for adding request ids to distinguish between requests and for supporting logging - Added ability to disable middleware if needed
- Added
app.KF_VERSION
to return thekoa-framework
version
2 May 2015
- Changed
app.router
to createkoa-router
instances 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.error
andres.validationErrors
in the response body
- The server now sends
- Added branding assets
13 Feb 2015
- Fixed bug where
opt.strict
overridesadditionalProperties
. - Additionally,
opt
argument inapp.schema
has been deprecated as all its functionality can be provided with the passed schema. It just adds additional complexity.- Instead of setting
opt.strict
totrue
, simply passadditionalProperties
tofalse
.
- 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
params
validation 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
jsonschema
package instead - Removed private label so the package can be published to npm
- Adds support for body parsing using
co-body
- Initial release