craft_runner 0.6.0
craft_runner: ^0.6.0 copied to clipboard
Code generation runner for riverpod_craft. Watch mode, single file generation, and cleanup.
0.6.0 #
-
YAML-driven plugin loading:
riverpod_craft.yamlcan now list community plugins as<package_name>:<ClassName>entries under aplugins:block. Whendart run craft_runner watch(orgenerate/clean) is invoked and the list is non-empty, craft_runner generates.dart_tool/craft_runner/entry.dart— a Dart script that imports each plugin and dispatches viarunWithPlugins(...)— then spawnsdart runon it. The generated entry uses runtimeischecks to route each plugin to per-file or project-wide registration.plugins: - retrofit_craft_plugin:RetrofitApiPluginNo
tool/craft.dartboilerplate required for the common case. Projects that already userunWithPlugins(...)via a customtool/craft.dartkeep working — the handoff is skipped when plugins are already registered in-process. -
Only
craft_runneris bumped for this release;riverpod_craft_plugin,retrofit_craft, andretrofit_craft_pluginstay at 0.5.0.
0.5.0 #
- Synchronized release across
riverpod_craft_plugin,craft_runner,retrofit_craft, andretrofit_craft_plugin. No functional changes vs 0.4.0 — version bumped to keep the four packages in lock-step going forward. - Internal:
riverpod_craft_pluginconstraint bumped to^0.5.0.
0.4.0 #
- Project-wide plugins: new
ProjectWideCraftPlugininterface support for generators that aggregate across the whole project and emit standalone (non-part) output files (e.g. retrofit_craft'sAppApiaggregator). runWithPluginsgains an optionalprojectWidePlugins:parameter.- Watch mode triggers a debounced project-wide pass on any
lib/**/*.dartchange (skipping*.craft.dart,*.g.dart,*.freezed.dart). riverpod_craft_plugindependency switched from the stale hosted pin (^0.1.0) to a path dep on the local 0.4.0 package — publish bundles must republishriverpod_craft_pluginfirst.
0.3.0 #
- Generate
ProviderValue<T>facade for synchronous providers - Version bump to align with riverpod_craft 0.3.0
0.2.2 #
- Version bump to align with riverpod_craft 0.2.2
0.2.1 #
- Remove
updateState()from generated notifier classes setStatein facades now uses.state = valuedirectly- Generated files include
// GENERATED CODE - DO NOT MODIFY BY HANDheader - Added
ignore_for_filedirectives for protected member warnings
0.2.0 #
- Generate
updateState()inside@settablenotifier classes instead of base class - Removed logging plugin from notes example
0.1.1 #
- Fix: add explicit type parameters to
NotifierProviderdeclarations - Plugin system: extensible code generation via
RiverpodCraftPlugin - Built-in
ProviderPluginandCommandPlugincan be extended and replaced runWithPlugins()API for custom code generation pipelines
0.1.0 #
- Initial alpha release
- Code generation from
@provider,@command, and@settableannotations - Watch mode for real-time code generation
- Single file generation
- Clean command to remove generated files
- Init command for project setup
- Support for family providers and complex parameter types