automerge / automerge-classic

A JSON-like data structure (a CRDT) that can be modified concurrently by different users, and merged again automatically.
http://automerge.org/
MIT License
14.76k stars 467 forks source link

Fix encoding of document containing an empty change #457

Closed ept closed 2 years ago

ept commented 2 years ago

The new backend did not compute the maxOp property of a change that had no operations, which would cause an exception later when a subsequent change, or the whole document, was encoded. This fixes the issue. Thanks to @jrakow for reporting it.

Fixes #456