Releases: exegesis-js/exegesis
v1.0.8
v1.0.7
v1.0.6
v1.0.5
v1.0.4
v1.0.3
v1.0.2
v1.0.1
v1.0.0-rc1
- BREAKING CHANGE: Rename
context.body
tocontext.requestBody
, andpluginContext.getBody()
topluginContext.getRequestBody()
. This was done mainly because otherwise this library would be massively confusing to Koa users. Note if you don't like typing, you can still get the body viacontext.req.body
.
v1.0.0-rc0
-
BREAKING CHANGE: authenticators may no longer return
type: 'fail'
. Instead they should returntype: 'missing'
if thre credentials are not present, ortype: 'invalid'
if the credentials are there but wrong (i.e. wrong password, missing user, etc...). If we try to auth a request and we find a 'missing' we'll move on to the next authentication type, but if it's 'invalid' we'll stop trying other authenticators - the user tried to authenticate, but they're obviously not getting it right. -
BREAKING CHANGE:
path
anddocPath
in validation errors are now JSON Pointers instead of arrays. -
Plugins are now passed the complete set of options that were passed into exegesis. (Later I'm planning on adding a feature where you can specify a custom function to call to generate validation errors, in case you want to do something crazy like generate XML - would be handy if this was available to plugins.)