Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Releases: mulesoft/osprey

Disable 404 Handler

11 Jan 22:19
Compare
Choose a tag to compare

Changed

  • Enable the ability to ignore the 404 handler (and mount it manually later)
  • Skip security middleware when option is undefined

Parse Without Validation

23 Nov 23:09
Compare
Choose a tag to compare

Changed

v0.2.0-beta.7

13 Nov 01:25
Compare
Choose a tag to compare

Fixed

  • Support exiting routers (from router extension)
  • Exit router after handler executes for server validation

Changed

Add error.ramlNotFound to not found errors because the RAML definition was empty

Request Error Handler

01 Sep 18:08
Compare
Choose a tag to compare

Added

  • Keywords in package.json
  • Add compression option for consumers to enable

Changed

  • Use request-error-handler module for standardized interface

More Error Messaging

25 Aug 00:19
Compare
Choose a tag to compare

Changed

  • JSON errors use JSON pointer format as dataPath
  • Unauthorized error code will be the common between all or 500
  • Unsecured path will now debug instead of console.warn

Added

  • HTML error message page contains CSS
  • RAML parameter errors reuse most of json errors

Error Handler Beta

21 Aug 01:17
Compare
Choose a tag to compare

If you are using loadFile, you need to review it's usage. As of this release, it also includes a built-in error handler by default. If you are logging these errors, you need to migrate away from loadFile and use the raml-parser module directly - then invoke the middleware in the order you need.

Added

  • Fancy error handling with i18n support (currently only basic support for JSON thanks to tv4 i18n messages)
  • A few new examples in the examples folder
  • An option to enable CORS on the application via a single option

Changed

  • Default validation errors to 401 when none exist (previously would have been 500)
  • Standardised error object format for validationErrors

Missing Body Parser Middleware

04 Aug 19:47
Compare
Choose a tag to compare

Fixed

  • Moved body-parser from dev dependencies to dependencies

Security (BREAKING CHANGES)

01 Aug 21:15
Compare
Choose a tag to compare

Changed

  • Helpful error message with RAML 404
  • Using standard for linting
  • Renamed createServer to server
  • Renamed createProxy to proxy

Added

  • Example with raw HTTP
  • Create security method for creating RAML security handler middleware

First public release

16 May 15:14
Compare
Choose a tag to compare
v0.1.1

Update version