flitbit / diff

Javascript utility for calculating deep difference, capturing changes, and applying changes across objects; for nodejs and the browser.
MIT License
2.99k stars 213 forks source link

elements in arrays are now processed in reverse order #156

Open istvano opened 5 years ago

istvano commented 5 years ago

Hi,

Great work on the library. I know the documentation says this specifically -> "elements in arrays are now processed in reverse order, which fixes a few nagging bugs but may break some users If your code relied on the order in which the differences were reported then your code will break."

Unfortunatelly I must keep the order as the existing codebase relies on array element order. Is there anyway to change how the processing is done?

Would not be possible to send a flag to keep array ordering?