-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
First of all thanks for this amazing package, i explored lots of packages and this seems to better suit my needs.
I would like to highlight an issue here.
const before = {
name: "Lucas Oliveira",
age: 20,
details: {
x: "Hello",
y: "Ok",
lst: ["ccc", "ddd"]
}
}
const after = {
name: "Lucas",
age: 20,
details: {
x: "Hello1",
y: "Ok",
lst: ["ccc_changed", "ddd_changed"]
}
}
Output
[
{
"key": "name",
"from": "Lucas Oliveira",
"to": "Lucas"
},
{
"key": "details",
"type": "MODIFIED",
"details": [
{
"key": "x",
"from": "Hello",
"to": "Hello1"
}
]
}
]
The diff in lst key is not identified
Even here it doesnt identify
const before = {
name: "Lucas Oliveira",
age: 20,
details: ["ccc", "ddd"]
}
const after = {
name: "Lucas",
age: 20,
details: ["ccc_changed", "ddd_changed"]
}
Output
[
{
"key": "name",
"from": "Lucas Oliveira",
"to": "Lucas"
}
]
However this works.
const before = ["ccc", "ddd"]
const after = ["ccc_changed", "ddd_changed"]
Output
[
{
"key": "0",
"from": "ccc",
"to": "ccc_changed"
},
{
"key": "1",
"from": "ddd",
"to": "ddd_changed"
}
]
Metadata
Metadata
Assignees
Labels
No labels