Skip to content

Junction 1.0.7

Choose a tag to compare

@notaroomba notaroomba released this 09 Sep 00:39
· 3857 commits to master since this release

Fixes

Crash on reopening a shared project. When the editor joined a live project while it still had edits of its own waiting to be sent, and the server-side merge deleted one of the items those edits touched, the remote deletion was re-asserted over by the local edit (correctly — the local edit is newer), but the item was freed anyway. The very next sheet render walked the freed item and the whole app went down; reopening once more worked, because by then the pending edits had been sent. The applier now frees only what the commit actually removed, exactly once, and the same rule now covers the board editor.

While there, two last-writer-wins rules that the same code got wrong: a property-level edit of an item somebody else deleted no longer keeps the item on this side only (the deletion wins, as it does everywhere else), and a local deletion is no longer undone by an older remote re-add that happened to be staged in the same batch.

Snapshot catch-up applied server ops to the open sheet. The ops folded into a join-time snapshot were resolved through the live document instead of the scratch copy, so they could delete live items behind the canvas's back and then resurrect what the server had removed. They now stay in the scratch copy.

"The checkpoint could not be created." Checkpoints, restores, new comments, resolving comments and registering a new sheet's document all posted JSON without saying so, and the server refused every one of them with 415. The client now labels its JSON bodies, and the server (already deployed) accepts a JSON body whatever its label, so 1.0.6 installs work again too.

Verification

Five new schematic and four new board regression tests drive the real commit path headlessly; each was checked to fail against the corresponding bug (mutation-tested) and the suites pass under a scribbling allocator. Server: four extractor tests.