TinyBase logoTinyBase β

MergeableChanges

The MergeableChanges type represents changes to the content of a MergeableStore and the metadata about that content) required to merge it with another.

[mergeableTables: TablesStamp<Hashed>, mergeableValues: ValuesStamp<Hashed>, isChanges: 1]

It is simply an array of two Stamp types, one for changes to the MergeableStore's Tables and one for changes to its Values. A final 1 is used to distinguish it from a full MergeableContent object.

This type is mostly utilized internally within TinyBase itself and is generally assumed to be opaque to applications that use it.

A deleted Cell or Value has an undefined value, which plain JSON cannot represent, and so turns into null. Since v10.2, use the jsonStringWithUndefined function and the jsonParseWithUndefined function to serialize and parse it instead, so that deletions are kept.

Since

v5.0.0