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

Does not handle object changes within array #11

Closed
98mux opened this issue Nov 8, 2021 · 2 comments
Closed

Does not handle object changes within array #11

98mux opened this issue Nov 8, 2021 · 2 comments
Assignees

Comments

@98mux
Copy link

98mux commented Nov 8, 2021

import diff from "microdiff";

const obj1 = {
	array:[{test2:0}]
};
const obj2 = {
	array:[{test2:1}]
};

console.log(diff(obj1, obj2));

This ^ console logs an empty array. (repl)

Are there any plans on supporting objects within arrays? If no, do you know about another library that do support this?

@AsyncBanana
Copy link
Owner

Thanks for reporting this! That should work. I will take a look at this soon.

@AsyncBanana AsyncBanana self-assigned this Nov 8, 2021
AsyncBanana added a commit that referenced this issue Nov 8, 2021
@AsyncBanana
Copy link
Owner

AsyncBanana commented Nov 8, 2021

Thanks again! This should be fixed in the latest version. If you continue to have problems with this, let me know.

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