raiser 2.0.1 copy "raiser: ^2.0.1" to clipboard
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 DomainEvent to RaiserEvent to 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, throw AggregateException
    • ErrorStrategy.swallow — Silent failures with optional callback
  • AggregateException — Collects multiple handler errors when using continueOnError
  • Comprehensive examples demonstrating basic and advanced usage patterns
1
likes
160
points
244
downloads

Publisher

verified publisherzooper.dev

Weekly Downloads

A type-safe, async-first domain event library for Dart. Clean event bus implementation following clean architecture principles.

Repository (GitHub)
View/report issues

Topics

#events #event-bus #domain-driven-design #clean-architecture #pub-sub

Documentation

API reference

License

MIT (license)

More

Packages that depend on raiser