impulse 0.11.0
impulse: ^0.11.0 copied to clipboard
Minimalist state management and dependency injection.
0.11.0 #
- Fixed a reference leak when reading the same dependency multiple times during one evaluation.
- Fixed a crash when producing a nullable value.
- Fixed a crash when notifying listeners reentrantly.
Store.selectno longer swallowsnullselections.FutureNotifierno longer applies failures from discarded runs.- Removed the unused
onlyOnDependencyChangeparameter fromStore.select. FutureNotifier/StreamNotifiercallbacks are now private and only provided through the constructors.ImpulseBox.retain/ImpulseBox.releaseare now internal andImpulseBox.uninitializedis private.- Fixed the error message of
AsyncData.asFailure. - Requires Dart
3.12or newer.
0.10.0 #
- Added
recreateOnReassembleparameter toImpulseReference. When enabled,reassemble()fully recreates the object through its factory (like a "hot restart" for that object) instead of invoking thereassemblecallback. - Fixed outdated code documentation.
0.9.0 #
- Removed
AsyncResult - removed
storeparameter from onDispose method in theReactivityAdapterinterface
0.7.0 #
- Changed
ImpulseNotifierimplementation to higher performance variant (based on flutters implementation) - Renamed:
TasktoFutureNotifier,StreamTasktoStreamNotifier,ResultContainertoResultListenableand - Removed the record based error handling pattern in favour of
AsyncStatesealed class pattern matching
0.6.3 #
- Made interface for
TaskandStreamTask.
0.6.2 #
- Added some getters to the
ResultExtension.
0.6.1 #
- bumped version to match version of other packages.
- added
streamRefandStreamTask.
0.6.0 #
- Jumped multiple versions to sync up with the other packages.
- Added
TaskandtaskRef. - Added
disposedflag toImpulseNotifier.
0.3.0 #
- Simplified reference creation:
Ref,FactoryRef, andSingletonRefnow directly inherit fromImpulseReference. - Removed
KeylessRefinterface and empty invocation parentheses()when retrieving or watching refs (e.g. usestore.get(myRef)instead ofstore.get(myRef())). - Integrated
withScopedirectly into theStoreclass now its namedStore.act, removed the standalonescope.dartfile. - Removed redundant
ref.getmethods (usestore.get(ref)instead).
0.2.0 #
- Added error handling method
attemptandResult<T>record typedef. - Added
selectmethod to the store to react only to specific value changes. - Made
watchandselectuse reference counting for consitency. - Made documentation improvements
0.1.1 #
- Minor readme improvements
- Added a guard against circular dependencies in refs and family refs.
0.1.0 #
- Initial version.