Observe object changes deeply without cloning in an efficient manner.
The package must observe deeply. The package must not clone the nested objects. The package must handle all types. The package should attempt to minimize overhead
Returned changes are not cloned. Instances and therefore will mutate as the observed object mutates
This is a derivative of object-observable with many of the features striped for improved performance.
Several similar packages were tested which resulted in this package being created. The comparison of these packages can be seen here.
const objectObservableLite = ;const obj = testObj =x: 1foo:y: 1bar: 'a' b: 'b'today:;const watchedObject =;watchedObjectx = 2;
Opportunities for Improvements
The comparison of other packages suggests there is still room for improvement in the overall efficiency of this package.
Other packages will have to be more deeply analyzed to determine how this package could be improved.
Pull request are welcome.