raiser 2.0.1
raiser: ^2.0.1 copied to clipboard
A type-safe, async-first domain event library for Dart. Clean event bus implementation following clean architecture principles.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
2.0.1 - 2026-01-08 #
Changed #
- Migrated generator implementation away from deprecated analyzer element APIs to remove deprecation warnings.
2.0.0 - 2026-01-08 #
Changed #
- BREAKING: Renamed
DomainEventtoRaiserEventto avoid naming conflicts with other packages
1.0.0 - 2024-12-19 #
Added #
- EventBus — Central dispatcher for publishing and routing domain events
- DomainEvent — Base class with automatic ID generation, timestamps, and optional aggregate ID
- EventHandler — Type-safe interface for class-based event handlers
- Subscription — Handle for cancelling handler registrations
- Priority-based ordering — Higher priority handlers execute first
- Error handling strategies
ErrorStrategy.stop— Halt on first error (default)ErrorStrategy.continueOnError— Collect errors, throwAggregateExceptionErrorStrategy.swallow— Silent failures with optional callback
- AggregateException — Collects multiple handler errors when using
continueOnError - Comprehensive examples demonstrating basic and advanced usage patterns