Releases: mstniy/computed.dart
Releases · mstniy/computed.dart
0.4.1
0.4.0
- Added effects: A simpler way to express side effects using multiple data sources/computations
- Async mode for computations starting async operations
.unwrap
to make computed async operations easier to use- Stream utils:
ValueStream
andResourceStream
- Cycle detection: Walk the dag explicitly instead of recomputing the upstream
- Unset
_currentComputation
before notifying listeners - Subclass-customizable behaviour for when a computation's dependency has changed
- Trigger the current Zone's
handleUncaughtError
if a computation which has listeners throws but none of the listeners have an error handler
0.3.2
0.3.1
0.3.0
- Removed
.useAll
, replace with.react
. - Introduced non-memoized computations.
- Removed
.withSelf
, replaced with.withPrev
. - Introduced
prevOr
: Returns a given fallback value instead of throwingNoValueException
. - Bugfixes
- Introduced a shorthand dollar notation for defining computed values.
- Allow data source initial values to be specified as functionals.
0.2.2
0.2.1
0.2.0
What's Changed
.useAll
for streams: Disables memoization- Ability to mock emit events from data sources directly
- Memoize exceptions as well
- Allow computations to re-run even with upstream nodes without values
asStream
: Use aStreamController
- Added
asBroadcastStream
: Uses aStreamController.broadcast
- Native public listen method
- Assert if the computation returns a value on the first run but throws on the second
Full Changelog: v0.1.0...v0.2.0