intelie / immutable-js-diff

MIT License
260 stars 32 forks source link

reversible diff? #14

Open nicholasxuu opened 7 years ago

nicholasxuu commented 7 years ago

Would you consider doing a reversible diff option? Basically add "previous value" for replace and delete.

Diff can be easily inverted to "undo" the diff. Diff can also be easily changed to one-way diff, for network transaction, or strict regulated format, etc.

Would be very useful for undo-redo concepts.