-
Notifications
You must be signed in to change notification settings - Fork 49
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
Support displaying only areas of diff #6
Comments
Good idea, I'll think about implementing it. |
I implemented this in #14 |
Yeah, sorry that it took a long time. See discussion in #14. I've just added a version of this feature. |
Awesome!! Nice work both @jerbob92 and @nsf ! I did run in to a problem when using
I'll see if I can reproduce it with smaller JSON files. |
Ah, it seems you have to provide |
Yes, it does look buggy. Wellll, I guess I'll dedicate some more time on the weekend to address it all. Thanks for trying it out and reporting back! |
I did a pass on fixing those issues. The tags problem should be gone now. Also I'm not releasing 1.0 yet. More testing is required and some more maintenance in other areas is required as well (such as making JSON formatter actually useful). I'll try to do some of it one day, but no promises. |
Added few more changes:
Also updated jsondiff demo: Demo uses all the modern JS stuff now: wasm, preact, webpack, typescript, tailwindcss. |
First of all, great library! This is a tricky problem to solve and it's done very nicely in jsondiff!
Now, I am diffing very large JSON files, and I would like to only output the actual differences, not the entire doc if possible.
I couldn't see an existing way to do this, but if there is, please let me know!
Either a config setting that would allow you to display X lines/objects above and below each diff, or potentially a way to roll up previous fields?
The roll-up would ideally look something like this:
From online demo:
Rolled up:
Or potentially by separating parent objects using a dot notation:
It's a tricky one, but to start with, just having an option to say, only display X lines above and below the change, might be enough!
The text was updated successfully, but these errors were encountered: