Serialization format version stamped into every toData snapshot and
checked by fromData. A mismatch is thrown rather than silently
mis-reconstructed, so an incompatible snapshot fails loudly at load.
Version 1 was the first versioned format. Version 2 changed the entity-id
encoding: durability + sharing are now a 2-bit quadrant in the id's low bits
(see entity/persistence-sharing), so persisted ids and the set of serialized
location tables both changed shape. Bump this whenever the snapshot shape
changes in a way older readers cannot load.
Serialization format version stamped into every
toDatasnapshot and checked byfromData. A mismatch is thrown rather than silently mis-reconstructed, so an incompatible snapshot fails loudly at load.Version 1 was the first versioned format. Version 2 changed the entity-id encoding: durability + sharing are now a 2-bit quadrant in the id's low bits (see entity/persistence-sharing), so persisted ids and the set of serialized location tables both changed shape. Bump this whenever the snapshot shape changes in a way older readers cannot load.