Skip to content

Releases: exegesis-js/exegesis

v1.0.0-rc0

16 May 13:32
Compare
Choose a tag to compare
v1.0.0-rc0 Pre-release
Pre-release
  • BREAKING CHANGE: authenticators may no longer return type: 'fail'. Instead they should return type: 'missing' if thre credentials are not present, or type: '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 and docPath 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.)