Skip to content

2.0.0

Latest

Choose a tag to compare

@arthurkowalsky arthurkowalsky released this 22 Mar 15:45
7cf897d

This release introduces several new features, improvements, and bug fixes to provide a more flexible, efficient, and robust message handling experience.

New Features

  1. Middleware Support: The MessageBus now supports middlewares, enabling you to add custom logic before and/or after the message handling process. This is particularly useful for cross-cutting concerns such as logging, error handling, or performance monitoring.
  2. Allow No Handlers: You can now configure the MessageBus to allow messages without any handlers. This is useful when you want to dispatch events without knowing if any listeners are registered for them.

Improvements

  1. Refactoring: The internal implementation of the MessageBus has been refactored to improve code quality and maintainability. This includes better separation of concerns, improved encapsulation, and adherence to best practices.
  2. Generics: Improved support for generics in message handling. This makes it easier to work with typed messages and handlers in your application.
  3. Better Error Messages: Added custom exception classes.