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.
Enforce shortcode uniqueness when a document's
system.shortcodeis changed. A no-op when the change does not touchshortcode. On a collision, rewrites the change to the deduped code (withshortcodeDedupe) or vetoes the update.