vm_result 0.2.1
vm_result: ^0.2.1 copied to clipboard
A minimal MVVM ViewModel contract for Flutter using ChangeNotifier and ValueListenable<Result<T>>.
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.
0.2.1 - 2026-07-18 #
Added #
- Added
isInitialandasInitialhelper getters toResultclass for improved API symmetry and state-checking convenience.
0.2.0 - 2026-07-16 #
Changed #
- Removed
freezed,freezed_annotation, andbuild_runnerdependencies. All models (Result,ValueResult,PaginatedResult, andUiEffect) have been rewritten as pure Dart classes and sealed classes. Public API contracts remain identical.
0.1.3 - 2026-07-16 #
Added #
- Added
errorAs<E>()helper methods toResultandValueResultclasses to easily cast custom exception types.
0.1.2 - 2026-07-14 #
Added #
- Added
LICENSEfile (MIT License). - Added a runnable Flutter example project under
example/demonstrating the core usage of ViewModels, builders, and listeners.
Fixed #
- Fixed package resolution and format validation issues in the GitHub Actions CI workflow.
- Fixed missing
repositoryandissue_trackerfields inpubspec.yaml.
0.1.0 - 2026-07-14 #
Added #
- Added pluggable logging contract
VMResultLoggerandVMResultLoggingregistry to support custom logging framework integrations. - Added a web-safe
DefaultVMResultLoggerutilizing standarddart:developerlogging.
Changed #
- Decoupled
talker_flutterdependency from the package dependencies list.
Fixed #
- Fixed reactivity and state desync bug in
isExecutingwhere UI listeners missed execution lifecycle transitions. - Fixed memory leaks and missed updates in
EffectListenerby implementingdidUpdateWidgetfor proper subscription syncing. - Fixed a concurrency list-corruption race condition in
VMPaginated.loadMorewhen state refreshes during pagination fetches. - Fixed log noise by preventing error warning prints during normal VM disposals with in-flight operations.
- Fixed shadowed
_disposedfield onVMResultEffectclass. - Fixed typographical copy-paste errors in
ValueResultdocumentation comments.