Skip to content

Commit 9ede593

Browse files
committed
update objectHash with the most standard property names that may uniquely distinguish objects in the array
Signed-off-by: 🕷️ <3756473+zendive@users.noreply.github.com>
1 parent 586ad91 commit 9ede593

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/api/diffApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { format } from 'jsondiffpatch/formatters/html';
44
import { ISerializableObject } from './clone.ts';
55
export type { Delta } from 'jsondiffpatch';
66

7-
const OBJECT_ID_IN_ARRAY = ['id', '_id', 'uuid', 'name', 'key', 'version'];
7+
const OBJECT_ID_IN_ARRAY = ['id', '_id', 'uuid', 'guid', 'ulid'];
88

99
const patcher = create({
1010
// used to match objects when diffing arrays, by default only === operator is used

0 commit comments

Comments
 (0)