Releases: TeamworkGuy2/lokijs-collections-syncing
Releases · TeamworkGuy2/lokijs-collections-syncing
lokijs-collections-syncing 0.3.1
Changed
- Updated to TypeScript 2.3, added tsconfig.json, use @types/ definitions
- Updated documentation to work better with Visual Studio
lokijs-collections-syncing 0.3.0
Changed
- Changed primary keys type from string to keyof
- Changed syncDownCollection(...)
S[]
type toS
since it's only returned by the sync function and then passed to the callback
lokijs-collections-syncing 0.2.0
Added
- Added 'hasPrimaryKeyCheckers' function array to SyncSettingsBuilder and interfaces to allow customization of primary key absense validation, default behavior is '!!item[primaryKey]' when validation functions are not provided
- Added notifyAction(Start|End|Failure) event listener functions to SyncDataCollection making it easy to add performance timers, error loggers, etc.
lokijs-collections-syncing 0.1.3
Changed
- Updated ts-promises dependency to latest version 0.2.0
Fixed
- Fixed a bug where promise was being rejecting and resolving when an error occurred
lokijs-collections-syncing 0.1.2
Changed
- Updated ts-mortar dependency to latest version 0.11.0
- Updated lokijs-collections dependency to latest version 0.14.0
lokijs-collections-syncing 0.1.1
Changed
- Renamed project from lokijs-collections-sync -> lokijs-collections-syncing
lokijs-collections-syncing 0.1.0
Added
- Moved 'sync/' directory from lokijs-collections to this library
========
Original Change Logs Related to 'Syncing' from the lokijs-collections Library
0.12.5 - 2016-05-27
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
...
0.12.2 - 2016-05-25
...
Fixed
- Added 'syncingDown' error property to syncDownCollection() and changed 'syncDownFunc' type so sync functions don't have to return a SyncError
0.12.1 - 2016-05-24
...
Fixed
- Fixed error in syncUpCollection() not rejecting promise correctly if sync function failed
...
0.8.1 - 2016-03-12
Added
- SyncDataCollection documention
Changed
SyncSettingsBuilder (unifying function names):
- Added fromDataCollectionAndSyncFuncs() 'findFilterFunc' parameter
- Renamed setSettings() -> addSettingsInst()
- Renamed setSyncDown() -> addSyncDownSettings()
- Renamed setSyncUp() -> addSyncUpSettings()
0.8.0 - 2016-03-11
Added
'Syncing' functionality - for asynchronously sending and receiving DataCollection data and merging it with an existing data collection
- sync/SyncDataCollection.ts - with syncDownCollection() and syncUpCollection() functions as well as parameters to control how changes are synced, see:
- SyncDataCollection.SyncDownOp enum - which provides options for removing or preserving existing data during a sync and adding or merging new data
- sync/SyncSettingsBuilder.ts - a someone complex Builder pattern class for building SyncSettings* interface instances
- sync/syncing-types.d.ts - with all the new interfaces