Open dntzhang opened 5 years ago
https://github.com/Tencent/omi
Hope to support oldValue:
{op: "replace", path: "/a/b", value: "aaa2", oldValue: "aaa1"}
If it is convenient, you can review this for omi. I added only one line of code. https://github.com/Tencent/omi/blob/master/packages/omi/src/proxy.js#L149
Thanks @dntzhang for the kind words. I took the liberty to rename the title to reflect the content of your comment.
oldValue is not part of the JSON Patch standard, but maybe we could either:
oldValue
https://github.com/Tencent/omi
Hope to support oldValue:
If it is convenient, you can review this for omi. I added only one line of code. https://github.com/Tencent/omi/blob/master/packages/omi/src/proxy.js#L149