derbyjs / racer

Realtime model synchronization engine for Node.js
1.18k stars 116 forks source link

Provide the documented properties on Event objects for backwards compatibility #284

Closed pypmannetjies closed 3 years ago

pypmannetjies commented 3 years ago

According to our docs, we expect certain Event types to have custom properties e.g. the removed property on a RemoveEvent. However, we refactored to rely more heavily on the value property. This change adds back the old custom property names while still keeping the value available. Docs for reference: https://derbyjs.com/docs/derby-0.10/models/events