Skip to content

Latest commit

 

History

History
311 lines (232 loc) · 13 KB

CHANGELOG.md

File metadata and controls

311 lines (232 loc) · 13 KB

Change Log

All notable changes to this project will be documented in this file. This project does its best to adhere to Semantic Versioning.


0.15.0 - 2022-02-21

Changed

  • Update lokijs-collections dependency from 0.31.* to 0.32.*

0.14.0 - 2022-01-02

Changed

  • Update to TypeScript 4.4

0.13.0 - 2021-11-15

Fixed

  • SyncDataCollection.syncUpAndUpdateCollection() only skips calling back the syncAction if there are no items to sync AND the collection is NOT dirty

0.12.0 - 2020-10-01

Changed

  • Update lokijs-collections dependency from 0.29.* to 0.30.*

0.11.2 - 2021-08-30

Fixed

  • Fix an issue with this package being used by a project that does not have tsconfig 'strict' enabled

0.11.1 - 2021-08-06

Changed

  • Export all SyncSettingsBuilder interfaces

0.11.0 - 2021-06-12

Changed

  • Update to TypeScript 4.3

0.10.0 - 2021-03-16

Changed

  • Update dependencies for Q removal

0.9.1 - 2020-12-11

Changed

  • Improve SyncDataCollection.syncUpAndUpdateCollection() type signature to support either null primaryKey or null primaryKeys but not both

0.9.0 - 2020-09-05

Changed

  • Update to TypeScript 4.0

0.8.1 - 2020-08-12

Changed

  • Update lokijs-collections dependency from github URL to new npm version number

0.8.0 - 2019-11-09

Changed

  • Renamed interfaces:
    • SyncSettingsWithUp -> SyncSettingsUp
    • SyncSettingsWithDown -> SyncSettingsDown
    • SyncSettingsWithUpDown -> SyncSettingsUpDown

Removed

  • Remove unused updateLastSyncDate field from SyncDownSettingsImpl
  • Remove unnecessary F generic type from SyncUpSettings, SyncDownSettings, SyncUpSettingsImpl, and SyncDownSettingsImpl
  • Remove unused P and R generic parameters from SyncDataCollection.createAddUpdateOrRemoveItemsFunc()

0.7.10 - 2019-11-08

Changed

  • Update to TypeScript 3.7

0.7.9 - 2019-06-18

Changed

  • Update dependency lokijs-collections@0.25.1 for persister fixes

0.7.8 - 2019-06-18

Changed

  • Update to TypeScript 3.5
  • Update dependency lokijs-collections@0.25.0 for major refactor, alpha IndexedDbPersister support, and ts-mortar@0.18.0

0.7.7 - 2019-03-21

Changed

  • Update dependency lokijs-collections@0.24.7 for @twg2/ts-twg-ast-codegen path fix

0.7.6 - 2019-03-20

Changed

  • Switch ts-promises dependency from github to npm and to lokijs-collections@0.24.5

0.7.5 - 2019-03-14

Changed

  • Update dependency lokijs-collections@0.24.5 for ts-mortar@0.16.0 update (fix for Strings.isDigit(), removal of Objects.getProps() and Strings.endsWith(), and several other changes)

0.7.4 - 2018-12-29

Changed

  • Update lokijs-collections dependency

0.7.3 - 2018-12-29

Changed

  • Update to TypeScript 3.2
  • Update dev and @types/ dependencies
  • Update README.md - usage note and clarified examples
  • Remove tsconfig.json lib "dom"

0.7.2 - 2018-11-23

Changed

  • Update dependency ts-promises@0.4.4 (PsPromise.then() type improvement) and lokijs-collections@0.24.2 (update to ts-mortar@0.15.9)
  • Remove dependency ts-mortar since it is indirectly available via lokijs-collections dependency
  • Simplify some SyncDataCollection logic which didn't need to use ts-mortar Arrays
  • Minor README.md update

0.7.1 - 2018-10-20

Changed

  • Switch package.json github dependencies from tag urls to release tarballs to simplify npm install (doesn't require git to npm install tarballs)

0.7.0 - 2018-10-17

Changed

  • Update to TypeScript 3.1
  • Update dev dependencies and @types
  • Enable tsconfig.json strict and fix compile errors
  • Removed compiled bin tarball in favor of git tags
  • Update primaryKeys parameters in SyncSettingsBuilder functions from (keyof T) | (keyof T)[] to (keyof T & string)[] to simplify and compile without error

0.6.0 - 2018-04-14

Changed

  • Update to TypeScript 2.8
  • Setup dependencies as proper npm node_modules
  • Update tsconfig.json with noImplicitReturns: true and forceConsistentCasingInFileNames: true
  • Added release tarball and npm script build-package to package.json referencing external process to generate tarball

0.5.2 - 2018-02-28

Changed

  • Update to TypeScript 2.7
  • Update dependencies: mocha, @types/chai, @types/mocha, @types/node
  • Enable tsconfig.json noImplicitAny

0.5.1 - 2017-11-16

Changed

  • tsconfig.json set strictNullChecks to true (incorrect in previous commit). Updated some dependency versions.
  • Renamed some parameters and local variables

0.5.0 - 2017-11-06

Changed

  • tsconfig.json added strictNullChecks and updated code to handle nulls
  • Update dependency lokijs-collections@0.22.0 (major refactor and 'strictNullChecks')
    • Renamed convertToLocalObjectFunc -> toLocalObject and convertToSvcObjectFunc -> toSvcObject

0.4.2 - 2017-09-10

Changed

  • tsconfig.json added noImplicitThis: true
  • Added README example

0.4.1 - 2017-08-05

Changed

  • Update to TypeScript 2.4

0.4.0 - 2017-05-19

Changed

  • Updated types to match lokijs-collections@0.19.1

0.3.1 - 2017-05-09

Changed

  • Updated to TypeScript 2.3, added tsconfig.json, use @types/ definitions
  • Updated documentation to work better with Visual Studio

0.3.0 - 2017-03-01

Changed

  • Changed primary keys type from string to keyof
  • Changed syncDownCollection(...) S[] type to S since it's only returned by the sync function and then passed to the callback

0.2.0 - 2016-10-22

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.

0.1.3 - 2016-10-21

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

0.1.2 - 2016-09-19

Changed

  • Updated ts-mortar dependency to latest version 0.11.0
  • Updated lokijs-collections dependency to latest version 0.14.0

0.1.1 - 2016-09-02

Changed

  • Renamed project from lokijs-collections-sync -> lokijs-collections-syncing

0.1.0 - 2016-06-01

Added

========

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