• Enforce shortcode uniqueness when a document's system.shortcode is changed. A no-op when the change does not touch shortcode. On a collision, rewrites the change to the deduped code (with shortcodeDedupe) or vetoes the update.

    Parameters

    • doc: any

      The document being updated.

    • changes: any

      The pending update delta (mutated in place when deduped).

    • options: any

      The update options; shortcodeDedupe opts into auto-dedup.

    Returns Promise<boolean | void>

    false to veto the update, otherwise undefined.