Releases: hemerajs/hemera
Releases · hemerajs/hemera
[email protected]
- Fixed missing emit for
serverResponseError
event - Pass always the original error to
serverResponseError
andclientResponseError
- Add tests
[email protected]
Rename internal _prevContext
to _parentContext
[email protected]
- Check for async /await usage during result evaluation gains ~4% perf
- Add promise based tests for
add
- Add promise support when return a promise inside an
add
handler
[email protected]
- Check for async /await usage during result evaluation gains ~8% perf
- Add promise based tests for
act
- Add promise support when return a promise inside an
act
callback - Add
precommit
hook
[email protected]
- Pass callback handler in
pubsub$
mode to nats driver. Error is passed as first argument and promise is rejected.
[email protected]
- Don't overwrite the plugin name when registering an array of plugins with
.use([plugin,], opts)
[email protected]
- Fixed: Fulfill promise when use pubsub mode in
act
. - Improvement: Avoid to cloneDeep the pattern in
add
routine.
If you use pubsub$: true
in act
the callback is fired after the message was published. The promise is resolved to undefined
and an error is not possible to report. Connection issues are raised with the error
event.
[email protected]
- Remove callback in
.use([plugin], opts, cb)
use.use([plugin], opts).after(cb)
instead. This is consistent in registering one or multiple plugins.
[email protected]
- Remove some legacy code from 1.x
[email protected]
- Support
.close
without passing a callback.