This repository has been archived by the owner on May 10, 2024. It is now read-only.
Releases: mulesoft/osprey
Releases · mulesoft/osprey
Disable 404 Handler
Changed
- Enable the ability to ignore the 404 handler (and mount it manually later)
- Skip security middleware when option is
undefined
Parse Without Validation
Changed
- Osprey now parses by default, but does not validate (https://github.com/mulesoft-labs/osprey-method-handler/releases/tag/v0.9.0)
- New options to preserve undocumented properties
v0.2.0-beta.7
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
Added
- Keywords in
package.json
- Add
compression
option for consumers to enable
Changed
- Use
request-error-handler
module for standardized interface
More Error Messaging
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 ofconsole.warn
Added
- HTML error message page contains CSS
- RAML parameter errors reuse most of
json
errors
Error Handler Beta
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
Fixed
- Moved
body-parser
from dev dependencies to dependencies
Security (BREAKING CHANGES)
Changed
- Helpful error message with RAML 404
- Using
standard
for linting - Renamed
createServer
toserver
- Renamed
createProxy
toproxy
Added
- Example with raw HTTP
- Create
security
method for creating RAML security handler middleware
First public release
v0.1.1 Update version