You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the option showOnly to filter getObjectDiff output by status:
{ignoreArrayOrder?: boolean// false by default, showOnly?: { statuses: ("added"|"deleted"|"updated"|"equal")[],// [] by defaultgranularity?: "basic"|"deep"// "basic" by default}}
ignoreArrayOrder: if set to true, ["hello", "world"] and ["world", "hello"] will be considered as equal, because the two arrays have the same value, just not in the same order.
showOnly: only returns the values whose status interest you. It has two parameters:
statuses: status you want to see in the output (ex: ["added", "equal"])
granularity:
basic only returns the main properties whose status match your request.
deep can return main properties if some of their subproperties' status match your request. The subproperties will be filtered accordingly.
Add the option showOnly to filter getListDiff output by status:
{showOnly?: ("added"|"deleted"|"moved"|"updated"|"equal")[],// [] by default}
showOnly gives you the option to only return the values whose status interest you (ex: ["added", "equal"]).
Upgrade dev dependencies
Add more tests
Breaking changes
in getObjectDiff output, subPropertiesDiff.name is now renamed subPropertiesDiff.property.
The option discardArrayOrder is now renamed ignoreArrayOrder
This discussion was created from the release v1.0.9.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
v1.0.9
showOnlyto filtergetObjectDiffoutput by status:ignoreArrayOrder: if set totrue,["hello", "world"]and["world", "hello"]will be considered asequal, because the two arrays have the same value, just not in the same order.showOnly: only returns the values whose status interest you. It has two parameters:statuses: status you want to see in the output (ex:["added", "equal"])granularity:basiconly returns the main properties whose status match your request.deepcan return main properties if some of their subproperties' status match your request. The subproperties will be filtered accordingly.Add the option
showOnlyto filtergetListDiffoutput by status:showOnlygives you the option to only return the values whose status interest you (ex:["added", "equal"]).Upgrade dev dependencies
Add more tests
Breaking changes
getObjectDiffoutput,subPropertiesDiff.nameis now renamedsubPropertiesDiff.property.discardArrayOrderis now renamedignoreArrayOrderThis discussion was created from the release v1.0.9.
Beta Was this translation helpful? Give feedback.
All reactions