deep-object-diff
Installation
SKILL.md
deep-object-diff Reference
Overview
deep-object-diff is a lightweight library for computing the difference between two JavaScript objects. A3 uses it in 6 Firestore onUpdate Cloud Function triggers to detect exactly which fields changed on a document, enabling conditional side effects that only run when specific fields are modified.
Version: 1.x
Import: import { diff, addedDiff, deletedDiff, updatedDiff, detailedDiff } from 'deep-object-diff';
Core Functions
diff()
Returns an object representing all differences between two objects. The result contains only the paths that changed, with the new values.
import { diff } from 'deep-object-diff';