https://github.com/loro-dev/loro
- diff(from, to): calculate the differences between any two versions
- revertTo(version): Generate ops to revert to the target version
- applyDiff(diff): Apply differences
You can use them to implement functions like git squash and revert.
- diff(from, to): calculate the differences between any two versions
- revertTo(version): Generate ops to revert to the target version
- applyDiff(diff): Apply differences
You can use them to implement functions like git squash and revert.