@automerge/automerge - v3.2.3
    Preparing search index...

    Function diffPath

    • Experimental

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

      Parameters

      • doc: Doc<unknown>

        The document to update

      • path: Prop[]

        path of the object to diff

      • before: Heads

        before Heads for the diff

      • after: Heads

        after Heads for the diff

      • Optionalopts: DiffOptions

        Options is { recursive: bool } to diff sub objects as well. Default is true

        This is an experimental API

      Returns Patch[]