Skip to main content
Module

x/automerge/index.ts>diff

A JSON-like data structure (a CRDT) that can be modified concurrently by different users, and merged again automatically.
Go to Latest
function diff
import { diff } from "https://deno.land/x/automerge@2.2.0/index.ts";

Create a set of patches representing the change from one set of heads to another

If either of the heads are missing from the document the returned set of patches will be empty

Parameters

doc: Doc<unknown>
before: Heads
after: Heads