We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In my use of xdiff, I need to deduce uniqueness from the "id" field, not __id__. I have seen it was one of your next amelioration.
"id"
__id__
How do you propose to go about it ?
I was thinking about:
var x = require('xdiff').withIdField('id')
var x = require('xdiff') x.setIdField('id')
A bit uglier, add an idField parameter to all the functions defaulting to __id__ if not specified:
idField
function shallowEqual (a, b, idField) { ...
The text was updated successfully, but these errors were encountered:
I prefer the "ugly" one, to be honest.
Sorry, something went wrong.
I looked around a bit, and it seemed that https://www.npmjs.com/package/diff-json had a pretty nice way to do it with a primary key object.
Other than that, I realised one of your fork actually had the id implementation: https://github.com/carlos8f/xdiff
I think that's what I will try to use for now.
Cheers
I didn't notice that! @carlos8f would you like to make a pull request?
No branches or pull requests
In my use of xdiff, I need to deduce uniqueness from the
"id"
field, not__id__
. I have seen it was one of your next amelioration.How do you propose to go about it ?
I was thinking about:
A bit uglier, add an
idField
parameter to all the functions defaulting to__id__
if not specified:The text was updated successfully, but these errors were encountered: