event-driven-io / emmett

Emmett - a Node.js library taking your event-driven applications back to the future!
https://event-driven-io.github.io/emmett/
195 stars 19 forks source link

Added missing exports for MessageBus #82

Closed oskardudycz closed 5 months ago

oskardudycz commented 5 months ago

It appears that I forgot to export the MessageBus related code in the main index file, and then they were trimmed by tree shaking during publishing...

For now, I didn't export the EventHandler and CommandHandler types to avoid naming collisions and as they're simple functions. Something to consider in the future is adding more namespaces.

Samples were also updated to use Emmett packages in the most recent versions.