-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Purpose of lhs in differences? #184
Comments
The That said, most use cases can safely discard I am working on a major update, v2.x which includes a compact representation for storage... as time allows. |
Two more specific cases came to mind while I was working on a pending update. Reverting a change, and auditing a change. I still use this library in projects to generate audit records, so that case is still relevant for some (like me). Reverting I tend not to do, but if you choose to "roll back" changes for whatever reason, you do need the prior value, which is what |
Why is the lhs property created in diff?
Is this only used for revertChange?
I am using this to generate diffs that are stored in a database. If I only apply in one direction (in this case applyChange and not revertChange), am I correct to conclude that lhs is not necessary? Which means it is causing the diff to be unnecessarily large in space.
If this is unnecessary, is there an easy way to omit it from being generated, or should I just map over the differences and remove it?
The text was updated successfully, but these errors were encountered: