Skip to content

Releases: TeamworkGuy2/lokijs-collections

lokijs-collections 0.16.0

17 Oct 19:44
Compare
Choose a tag to compare

Changed

  • Switched from Lokijs explicit import and type usage to new InMemDbProvider interface (moving away from Lokijs dependency toward generic in-mem DB API)
  • Removed LokiDbImpl.getCollection() 'settings' parameter, instead use LokiDbImpl 'createCollectionSettingsFunc' parameter
  • Removed unused LokiDbImpl.initializeDb() 'options' parameter
  • Added LokiDbImpl constructor parameters 'createCollectionSettingsFunc' and 'modelKeysFunc' to give more control over Lokijs specific implementation details
  • TypeScript 2.0 compatibility tweaks

lokijs-collections 0.15.0

17 Oct 19:44
Compare
Choose a tag to compare

Added

  • LokiDbImpl() constructor 'reloadMetaData' flag and 'dbInitializer' function parameters
  • PrimaryKeyMaintainer() constructor 'reloadAll' flag parameter

Removed

  • LokiDbImpl private _setNewDb() method and private static _createNewDb() method in favor of initializeDb() and the constructor's new 'dbInitializer' parameter

Fixed

  • primary key maintainer now properly handles collection data model 'autoGeneratedKeys' changes. Previously if the model changed, the PrimaryKeyMaintainer would end up confusing the old keys with the new keys and add the wrong auto-generated properties to objects missing them.

lokijs-collections 0.14.0

17 Oct 19:43
Compare
Choose a tag to compare

Changed

  • Updated to version 0.11.0 of ts-mortar which moved ts-mortar/events/ to a separate library
    • Added [email protected] dependency for the EventListenerList previously provided by ts-mortar and used by DataCollection

lokijs-collections 0.13.1

17 Oct 19:43
Compare
Choose a tag to compare

Fixed

  • Fixed some .d.ts paths to match DefinitelyTyped structure
  • Fixed issue with ModelDefinitionsSet.cloneDtoPropertyTemplate()

lokijs-collections 0.13.0

17 Oct 19:43
Compare
Choose a tag to compare

Changed

  • Renamed PermissionedDataPersistAdapter -> PermissionedDataPersister
  • Renamed DataPersister.AdapterFactory -> DataPersister.Factory
  • Renamed DataPersister.clearPersistenceDb() -> clearPersistentDb()
  • Moved DataPersister.Adapter interface up and merged it with DataPersister module
  • Made DataCollection.collection public to make it easy to access the underlying lokijs collection (please note this field is meant to be readonly)

Removed

lokijs-collections 0.12.5

17 Oct 19:42
Compare
Choose a tag to compare

Changed

  • More thorough error handling in SyncDataCollection.syncDownCollection()

Removed

  • Removed last modified timestamp filtering when updating local items after syncing up since primary key filtering should already restrict the search results sufficently

lokijs-collections 0.12.4

17 Oct 19:42
Compare
Choose a tag to compare

Changed

  • work with latest version of ts-promises library
  • use mocha and chai for tests instead of qunit

lokijs-collections 0.12.3

17 Oct 19:42
Compare
Choose a tag to compare

Changed

  • Changed to work with latest version of ts-mortar and new ts-typed-promises library

lokijs-collections 0.12.2

17 Oct 19:41
Compare
Choose a tag to compare

changed

  • Replaced two console.error() calls with throw new Error()

Fixed

  • Added 'syncingDown' error property to syncDownCollection() and changed 'syncDownFunc' type so sync functions don't have to return a SyncError

lokijs-collections 0.12.1

17 Oct 19:41
Compare
Choose a tag to compare

Changed

  • Updated to use new version of ts-mortar and new ts-promise-tasks library
  • Updated readme

Fixed

  • Fixed error in syncUpCollection() not rejecting promise correctly if sync function failed