mono_bloc 1.2.1 copy "mono_bloc: ^1.2.1" to clipboard
mono_bloc: ^1.2.1 copied to clipboard

Simplify Flutter Bloc with code generation. Define events as methods, get automatic concurrency control, actions for side effects, and async state management.

1.2.1 #

  • Fixed MonoStackTrace.filtered to no longer strip every frame when the exclude filename is empty; an empty exclude now means "no path filtering" (core/bloc/flutter frame filtering still applies).
  • Expanded unit-test coverage for the runtime utilities (MonoStackTrace, the async emitters, transformers, and MonoAsyncValue).

1.2.0 #

  • A bloc's generated actions stream is now strongly typed and emits public, bloc-name-prefixed action classes (see mono_bloc_generator 1.2.0), so actions can be matched by type in tests and app code.

1.1.0 #

  • Added support for side-effect @event methods that return void or Future<void> without an emitter (run logic without changing state)
  • Fixed MonoAsyncValue to support a present null/nullable success value: withData(null), the data getter, and when() no longer throw
  • Fixed MonoAsyncValue equality: ==/hashCode no longer include the captured stack trace, so equal error states no longer trigger redundant rebuilds
  • Fixed actions emitted before the first listener subscribes (e.g. in @onInit or a constructor) being dropped — they are now buffered and delivered to the first listener
  • Additional code-generation correctness fixes (type preservation, error-handler routing, emitter detection) — see mono_bloc_generator 1.1.0
  • Documentation fixes; added unit tests for MonoAsyncValue and the action stream

1.0.7 #

  • Update generation
  • Update documentation

1.0.6 #

  • Rewrite @onInit handling and sequential emitter generation

1.0.5 #

  • Documentation updates

1.0.4 #

  • Added shared action mixins support

1.0.3 #

  • Documentation updates, generation fixes

1.0.2 #

  • Documentation updates

1.0.1 #

  • Documentation updates

1.0.0 #

  • Initial release of the project.
1
likes
160
points
437
downloads

Documentation

API reference

Publisher

verified publisherwestito.dev

Weekly Downloads

Simplify Flutter Bloc with code generation. Define events as methods, get automatic concurrency control, actions for side effects, and async state management.

Repository (GitHub)
View/report issues

Topics

#bloc #code-generation #state-management #dart

License

MIT (license)

Dependencies

bloc, bloc_concurrency, meta, stack_trace

More

Packages that depend on mono_bloc