computed 0.2.1 copy "computed: ^0.2.1" to clipboard
computed: ^0.2.1 copied to clipboard

Straightforward, reliable, performant and testable reactive state management

0.2.1 - 2023-11-27 #

  • Loosen semver bound on test
  • Fix README

0.2.0 - 2023-11-26 #

  • .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

0.1.0 - 2023-11-21 #

  • Added testing utilities: fix, fixException, mock and unmock.
  • Detect cyclic .uses.
  • Added .prev to get the previous value of a data source.
  • Assert that running computations a second time returns the same result as the first to try to detect side effects.
  • Computations now unsubscribe from abandoned dependencies.
  • Allow data sources to pass errors to computations.
  • Defined a public API for listeners.

0.0.1 - 2023-11-15 #

  • Initial version
5
likes
0
pub points
19%
popularity

Publisher

unverified uploader

Straightforward, reliable, performant and testable reactive state management

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

built_collection, meta

More

Packages that depend on computed