AsyncBanana / microdiff

A fast, zero dependency object and array comparison library. Significantly faster than most other deep comparison libraries and has full TypeScript support.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to see the old value?

Simone-cogno opened this issue · comments

Hello, it would be very nice to be able to see the old value in a CHANGE operation. Is it already possible? If not I think it would be easy to add right?

Currently, you can use the path property to access the old value by finding the value at the path in the old object. However, if enough people express interest in this, I might add the ability to directly access the old value (through an oldValue property).

oldValue should exist in CHANGE and REMOVE operations from v1.3.0 on.