Skip to content

v0.6.0

Choose a tag to compare

@soxtoby soxtoby released this 04 Apr 08:36
· 137 commits to master since this release
  • New derivation invalidation logic ensures that derivations always get the latest values from their sources.
  • IObservableValue<T> once again implements IObservable<T>, and values property has been removed.
  • Replaced PromiseQueue with MicrotaskQueue.
  • Derivations take in an optional valuesEqual function to determine if the values have changed.
  • Added optional dependencies parameter to useModel() to allow the model to be recreated when the dependencies change.
  • Events and event classes will produce errors if used directly as state. They can still be part of models that are in state.
  • Removed the deprecated readonly property on mutable models.

Logging improvements

  • Improved logging performance.
  • Improved logging for react components.
  • Fixed a memory leak where all sources were being held onto by logs.
  • All logs are collapsed by default.
  • Built-in "restored" event is not logged as a source for reductions.