Skip to content

Releases: mstniy/computed.dart

0.4.1

25 Dec 22:26
Compare
Choose a tag to compare
  • ValueStream: Support initial values

0.4.0

25 Dec 19:29
Compare
Choose a tag to compare
  • 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 and ResourceStream
  • 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

20 Dec 23:37
Compare
Choose a tag to compare
  • Allow computations to use other computations via .asStream
  • Added useOr

0.3.1

17 Dec 19:00
Compare
Choose a tag to compare
  • Disallow computations from doing most async operations
  • Bugfix for non-memoized computations
  • Avoid modifying internal state in asserts
  • Move _reacting to the global context to save memory

0.3.0

11 Dec 00:00
Compare
Choose a tag to compare
  • Removed .useAll, replace with .react.
  • Introduced non-memoized computations.
  • Removed .withSelf, replaced with .withPrev.
  • Introduced prevOr: Returns a given fallback value instead of throwing NoValueException.
  • Bugfixes
  • Introduced a shorthand dollar notation for defining computed values.
  • Allow data source initial values to be specified as functionals.

0.2.2

27 Nov 23:17
Compare
Choose a tag to compare

Improved dependencies

0.2.1

27 Nov 00:26
Compare
Choose a tag to compare
  • Loosen semver bound on test
  • Fix README

0.2.0

26 Nov 22:06
Compare
Choose a tag to compare

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 a StreamController
  • Added asBroadcastStream: Uses a StreamController.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