The old document (bitmark or JSON).
The new document (bitmark or JSON; the formats need not match).
Diff options; outputFormat selects the unified-style
text (default), the per-bit JSON, or an applyable patch document.
The diff in the selected format — empty text, an array of
unchanged bits, or a patch document with no entries when the two are
semantically equal.
Semantic diff of two documents (PLAN-179). Both sides are re-canonicalized and compared as bit JSON; every difference is rendered as the canonical bitmark an author would type. Bits are paired by
id, then bysourceBBon the samesourceRL, then by exact content, then by text similarity.