UNPKG

rabbitmq-event-manager

Version:

A nodeJS Event Manager to emit, and listen event through RabbitMQ

19 lines (15 loc) 1.16 kB
# ChangeLog - **Version 1.1.0** - Add ability to `emitAndWait` (emit an event and wait for a response). - `emit` now returns the _"full"_ payload (with real `_metas` sent to RabbitMQ) - Add ability to define (or override) some values in `_metas` when emitting. - Add possility to defined the duration for a message to be _flushed_, change the TTL of the queue created for the event (on listen). `eventManager.on(eventName, listener , {ttl:1000})` will be send to the dead letter exchange after one second; - Add possility to defined a specific dead letter exchange for a message to be _flushed_ to, change the DLX of the queue created for the event (on listen). `eventManager.on(eventName, listener , {dlx:'new_dlx', ttl:2000})` will be send the flushed message to the dead letter **new_dlx** after two second - **version 1.2.0** - Rework [winston](http://github.com/winstonjs/winston) integration, with a focus on displaying error - Upgrade all versions of dependencies to the last version - Add logging when emitting (same level as receiving) - Rewrite README.md to match the last version and add demo usage - Fix Issue #15