composable_architecture_generator 0.2.1 copy "composable_architecture_generator: ^0.2.1" to clipboard
composable_architecture_generator: ^0.2.1 copied to clipboard

Code generator for the Composable Architecture in Dart. Generates Lens, ActionLens, Prism, and utility extensions from @tcaState, @tcaAction, and @tcaRoute annotations.

0.2.0 #

  • Breaking: Removed dependency on composable_architecture_annotation — all annotations (@tcaState, @tcaAction, @tcaRoute) are now provided by composable_architecture_core.
  • Breaking: Removed hard dependency on dart_mappable — the generator no longer requires @MappableClass() on state or action classes.
  • Added generateUtils parameter to @TCAAction annotation (defaults to false). Can be enabled per-class or globally via build.yaml options. Resolution order: local annotation > global option > default (false).
  • @tcaAction now supports both freezed and dart_mappable sealed classes:
    • With @MappableClass(): generates concrete subclasses automatically.
    • With @freezed or plain sealed classes: uses existing declared subclasses.
  • @tcaRoute now uses the TCARoute annotation from core (replaces Route from the old annotation package).
  • Removed runs_before: dart_mappable_builder constraint from build.yaml.

0.1.0 #

  • First version of composable_architecture_generator.
0
likes
105
points
34
downloads

Documentation

API reference

Publisher

verified publishercomposablearchitecture.io

Weekly Downloads

Code generator for the Composable Architecture in Dart. Generates Lens, ActionLens, Prism, and utility extensions from @tcaState, @tcaAction, and @tcaRoute annotations.

Repository (GitHub)

License

MIT (license)

Dependencies

analyzer, build, composable_architecture_core, source_gen

More

Packages that depend on composable_architecture_generator