Skip to content
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

[just-diff] op type error.I add a new property with an empty string,but the op is replace #544

Closed
skymoonya opened this issue Mar 14, 2023 · 1 comment

Comments

@skymoonya
Copy link
Contributor

skymoonya commented Mar 14, 2023

screenshot
it should be add

code

import { diff } from 'just-diff';
import { diffApply } from 'just-diff-apply';
const json1 = { a: '123' }
const json2 = { a: '', b: '' }
console.log(diff(json1, json2))
diffApply(json1, diff(json1, json2))

just-diff version: 6.0.0

@skymoonya skymoonya changed the title [just-diff] op type error,I add a new property,but the op is replace [just-diff] op type error.I add a new property with an empty string,but the op is replace Mar 14, 2023
@angus-c
Copy link
Owner

angus-c commented Mar 25, 2023

Fixed in #545

@angus-c angus-c closed this as completed Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants