automerge
automerge copied to clipboard
Document loads with automerge 1.0.1-preview.7 but fails with 2.0.3 and 2.1.0-alpha.8
I have an older saved document that doesn't load with the latest automerge.
While loading with the latest automerge 2.1.0-alpha.8 I get the following error (I got the same error with 2.0.3 as well):
"error inflating document chunk ops: the document contained ops which were out of order"
It works fine with the older 1.0.1 JS version of automerge.
It's an older test document that has been sitting in my test db. I've probably periodically changed the document while testing. It's possible that I've also edited the document with automerge 2.x and that triggered the error, but really I'm not completely sure because I noticed it after I was debugging other issues.
It's a bit unwieldy to paste the code with the embedded document here, so I made a gist with the code and package.json to reproduce the issue:
https://gist.github.com/rongoro/c8c1d41210102c737542c21baec3efa0