better_effect_flutter 0.3.0
better_effect_flutter: ^0.3.0 copied to clipboard
Flutter MVVM integration for better_effect with typed EffectCommand state, scoped Runtime bootstrap, and one-shot UI listeners.
0.3.0 #
- Added
package:better_effect_flutter/testing.dart, re-exporting the core testing toolkit with Flutter-specific Command and widget helpers. - Added
EffectCommandProbewaits and history assertions, typed sealed-state extractors,EffectCommandListenerProbefor one-shot delivery, andBetterEffectTestAppfor externally owned Runtime widget tests.
0.2.0 #
- Effect Commands now start work through core
EffectExecutionhandles. - Command cancellation and disposal request cooperative core interruption while
retaining
onCancelas an optional adapter hook. - Command debug labels now flow into Runtime execution metadata.
- Existing
drop,latest, andqueuestate-authority semantics remain unchanged;latestdoes not cancel stale work unless a future policy opts in. - Runtime shutdown interruption now reaches visible Command state.
- Added explicit
BetterEffectRuntimeOwnershipvalues for external, widget, and application-owned Runtimes. - Added
BetterEffectLifecyclePolicyfor widget disposal, application exit, cooperative interruption, and shutdown grace periods. - Providers and bootstrap roots now remove a Runtime from the widget tree before lifecycle-triggered shutdown begins.
- Runtime replacement closes the previous owned Runtime exactly once, while
BetterEffectProvider.valuenever assumes ownership. BetterEffectBootstrapnow restarts whenbackendFactorychanges and closes stale startup attempts safely.- Existing
closeRuntimeOnDisposeandcloseRuntimeOnDetachconstructor arguments remain as deprecated migration parameters. - Added deterministic regression coverage for queue cancellation, retained
physical ownership, Command disposal versus Runtime shutdown, repeated
cancellation races, and stale
latestcompletions.
0.1.1 #
- Expanded the package documentation with complete bootstrap, Command, ViewModel, widget, lifecycle, testing, and concurrency guidance.
- Updated the hosted
better_effectdependency to0.1.1.
0.1.0 #
- Added
EffectCommand0and typed-inputEffectCommand. - Added sealed idle/running/success/failure/defect/interrupted UI states.
- Added drop, latest, and queue execution policies.
- Added one-shot
EffectCommandListener, builder, and consumer widgets. - Added
EffectCommands,EffectViewModel, and automatic command disposal. - Added
BetterEffectScope, provider, bootstrap widget, and app bootstrap helper. - Added an MVVM task application example and Flutter test suite.