Releases: hemerajs/hemera
Releases · hemerajs/hemera
[email protected]
Upgrade avvio to v5.1
[email protected]
Throw error when hemera was already boostraped
[email protected]
- Allow hemera to be ready even when the nats connection was already established
[email protected]
- Introduce
hemera.reply([Error, any])
to reply multiple message. Don't callcb
multiple times.
[email protected]
- Don't close hemera when an
error
listener was registered
[email protected]
Execute onClose
hook and gracefully shutdown hemera on synchronous uncaught error
[email protected]
Improvements
- Don't swallow synchronous uncaught errors, let them handle by the user. This is needed to identify the real error during testing. If you add an
hemera.on('error')
listener all errors are caught. (Default behavior of an event-emitter) - Gracefully shutdown nats and process when calling fatal()
Breaking Changes
- Any synchronous uncaught error will exit the process except you define an
hemera.on('error')
listener or catch it manually. If you use promises or async / await then it has no effect.
[email protected]
- Use same way in all cases to handle the end of a request lifecycle.
- Update doc
[email protected]
- Support async, promise and raw values in middlewares
- Clean up code, remove unused functions and tests
- Avoid calling action when calling
reply.end(<msg>)
in middlewares
[email protected]
add
When no callback is provided any returned value is accepted as a result.