1.1.0
Grouping functionality
Optionally add a groupId
to identify related command pairs. Undo and redo actions will then be performed on all adjacent command pairs with that group id.
For example:
undoManager.add({
groupId: 'auth',
undo: () => removePerson(id),
redo: () => addPerson(id, name)
});