Skip to main content
Module

x/automerge/stable.ts>getChanges

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

Get the changes which are in newState but not in oldState. The returned changes can be loaded in oldState via applyChanges.

Note that this will crash if there are changes in oldState which are not in newState.

Parameters

oldState: Doc<T>
newState: Doc<T>