Open samuelstroschein opened 3 weeks ago
Replace the nested diffing functions with top level functions.
detectChanges
detectConflicts
applyChanges
resolveConflict
-plugin.diff.file() +plugin.detectChanges({ old, neu })
The diff API with nested namespaces was introduced to let a plugin diff own snapshot types.
Given the simple(r) mental model of
I probably prefer reportConflicts as plugin API than detectConflicts. Curious what others think
reportConflicts
Proposal
Replace the nested diffing functions with top level functions.
detectChanges
->detectConflicts
->applyChanges
(-> optionallyresolveConflict
)Context
The diff API with nested namespaces was introduced to let a plugin diff own snapshot types.