Clone this repo:
  1. ecfc06d Delete PATENTS by Kevin Moore · 3 weeks ago master
  2. 809a8bd Correctly version before release. by Matan Lurey · 5 weeks ago 0.22.1
  3. 1daca51 Add casting for ObservableList. (#66) by Matan Lurey · 5 weeks ago
  4. 2a868b9 Remove extra copied doc comments. (#65) by Matan Lurey · 5 weeks ago
  5. 0f6ea75 Fix ObservableMap.cast/retype. (#64) by Matan Lurey · 5 weeks ago 0.22.0

Build Status

Support for detecting and being notified when an object is mutated.

An observable is a way to be notified of a continuous stream of events over time.

Some suggested uses for this library:

  • Observe objects for changes, and log when a change occurs
  • Optimize for observable collections in your own APIs and libraries instead of diffing
  • Implement simple data-binding by listening to streams

You may want to look at the former TC39 proposal Observe.observe, which was deprecated.


There are two general ways to detect changes:

  • Listen to Observable.changes and be notified when an object changes
  • Use Differ.diff to determine changes between two objects