npm install @nyamathhh/fast-json-patchNative Date object support:
- Date objects preserved during cloning
- Date comparison by value (not reference)
- Patches contain actual Date objects
const { compare } = require('@nyamathhh/fast-json-patch');
const obj1 = { time: new Date('2025-11-11T10:00:00Z') };
const obj2 = { time: new Date('2025-11-11T11:00:00Z') };
const patches = compare(obj1, obj2);
// [{ op: 'replace', path: '/time', value: Date(...) }]Once PR #330 is merged, switch back:
npm uninstall @nyamathhh/fast-json-patch
npm install fast-json-patch@^3.2.0No code changes needed!