Skip to content

Releases: yuval-a/deriveODM

3.3.0

19 Oct 20:28
826520f
Compare
Choose a tag to compare

Added projection option.

Version 3.1.0

30 Oct 17:43
Compare
Choose a tag to compare
  • ChangeStream support is now optional, and turned off by default for all data object instances.
  • Added watch(on) instance method for toggling on/off ChangeStream support.

2.8.0

14 Oct 20:25
Compare
Choose a tag to compare
  • Fixed a memory leak, where new separate collection watchers used to be created for each new data model intance.

2.2.0

07 Mar 14:40
Compare
Choose a tag to compare
  • Added getAllRead and mapRead

Version 2.1.6

01 Feb 02:02
Compare
Choose a tag to compare
  • Default SyncManager sync interval changed to 0, and is now called with setImmediate.
  • Added support for deleting data object properties using the delete keyword, which will trigger an unset on the equivalent property of the DB document.
  • Added new assignment with $callback syntax for updating properties and attaching callbacks to be called once an update occurs in the DB.
  • Now uses ChangeStream (collection event watcher) to detect and trigger DB changes (when available) with fallback to the "manual" detection when using single DB instances.
  • Fixed warning when trying to access _id
  • Deprecated $onUpdate.
  • Fixed a rare race condition bug.

1.6.2

12 Nov 13:29
Compare
Choose a tag to compare
  • Re using lodash.clonedeep as other modules are buggy.
  • Connect as alias to Model module function.
  • Added length to allowed get properties.

1.5.0

17 Oct 14:23
484a7cc
Compare
Choose a tag to compare
  • Switched to fast-clone package instead of the slower clone.
  • Refactored main syncing method of SyncManager engine, to clone the queues to local variables, as to release them for the next operations sooner an more quickly.
  • Added conditions to lock/unlock methods, to not emit uneccesary events.
  • Added statc mainIndex method to model classes - to allow getting the MainIndex