Skip to content

Latest commit

 

History

History
227 lines (146 loc) · 6.16 KB

changelog.md

File metadata and controls

227 lines (146 loc) · 6.16 KB

2021-06-30 - v5.1.4

  • Added a reload function, which loads all data from storage and update the cachedDocs.

2019-08-19 - v5.1.3

  • Updated ls-channel version to 2.0.3

2018-11-28 - v5.1.2

  • Fixed a bug with reading data before documents are cached.

2018-11-27 - v5.1.1

  • Fixed a bug with dependencies list on package.json

2018-02-23 - v5.1.0

  • Remove rxjs-compat dependency
  • Add 'close' method on database and collection
  • Use localforage-setitems to improve batch insert speed
  • Use an in-memory document cache to improve update speed

2018-02-23 - v5.0.0

  • Update RxJS to v6 ( uses rxjs-compat module ).

2018-02-23 - v4.3.5

  • Allow the use of filters for fields named 'id'.

2017-10-24 - v4.3.0

  • Emit the modifier with update document changes.

2017-09-25 - v4.2.0

  • Support updating nested document fields.

2017-09-12 - v4.1.4

  • Remove debounce-decorator module.

2017-09-12 - v4.1.3

  • Add mock classes for Database and Collection
  • Exclude test files from transpiled output

2017-08-25 - v4.1.2

  • Add static Database.create method to create db with default settings.

2017-08-25 - v4.1.1

  • Optimize loading documents from storage when the id is given.
  • Fix find/findOne to load data from storage when it gets subscribed.

2017-08-25 - v4.1.0

  • Add missing findOne method on collection
  • Add missing exports on index.ts file
  • Fix watch method result to only include matched documents
  • Debounce refresh method calls to reduce data loads from IndexedDB

2017-08-24 - v4.0.0

  • Change package name to @creately/rxdata.
  • Add support for multiple tabs/windows using @creately/lschannel module.
  • Add a watch method on collection to subscribe to document changes.
  • Combine DatabasePersistor class and Database class.
  • Combine CollectionPersistor class and Collection class.
  • Reduce memory usage by removing in-memory cache of collection data.
  • Reduce memory usage by using lodash.isequal with distinctUntilChanged.
  • Run unit tests with Karma on ChromeHeadless browser

2017-04-28 - v3.2.1

  • Fix metadata collection in memory cache not getting cleared #30

2017-04-24 - v3.2.0

  • Add bulk document insert support #29
  • Fix issue where document update not being detected by making updates immutable #29
collection.insert([
    { id: 'i1', name: 'n1' },
    { id: 'i2', name: 'n2' },
    { id: 'i3', name: 'n3' },
])

2017-04-20 - v3.1.0

  • Add unsub method to close all subscriptions in a collection #28
  • Edit database drop method to close all subscriptions in all collection #28
collection.unsub().subscribe({
    complete: () => console.log('closed all query subscriptions'),
})

2017-04-07 - v3.0.2

  • Add a static create method on Database class #26
Database.configure( options )
const db = Database.create()

2017-03-30 - v3.0.1

  • Fix compare function used with distinctUntilChanged operator #24

2017-03-27 - v3.0.0

  • Remove IPersistorFactory public interface #21
  • Remove IPersistor public interface #21
  • Add ICollectionPersistor public interface #21
  • Add IDatabasePersistor public interface #21
  • Fix drop method to remove all collections #21

2017-03-24 - v2.1.2

  • Fix query emits to avoid duplicates #21

2017-03-22 - v2.1.1

  • Fix find method on ExtendedQuery #20
  • Fix $push operation to return new array #22

2017-02-24 - v2.1.0

  • Add drop method to database #18

2017-02-24 - v2.0.0

  • Add findOne method to the collection #15
  • Add ExtendedCollection and ExtendedQuery classes #16
  • Fix typescript mapping for code coverage with ts-jest and the --no-cache flag

2017-02-22 - v1.5.1

  • Fix ICollection find method optional options parameter

2017-02-22 - v1.5.0

  • Add $pull update operator for collections #13
// before: { id: 'i1', arr: [10, 20, 30] }
// after: { id: 'i1', arr: [10, 30] }
collection.update(
    { id: 'i1' },
    { $pull: { arr: 20 } },
)

2017-02-21 - v1.4.0

  • Add $push update operator for collections #10
// before: { id: 'i1', arr: [10] }
// after: { id: 'i1', arr: [10, 20] }
collection.update(
    { id: 'i1' },
    { $push: { arr: 10 } },
)

2017-02-21 - v1.3.1

  • Fix unexpected class information issue #8

2017-02-21 - v1.3.0

  • Add sort/limit/skip options when querying data #4
collection.find({}, {
    sort: { created: -1 },
    limit: 10,
    skip: 10,
})

2017-02-13 - v1.2.2

  • Change TypeScript build target to ES5

2017-02-13 - v1.2.1

  • Change RxJS to a peerDependency to avoid duplicates
  • Add support for RxJS v5.0.0-beta.0 and above

2017-02-13 - v1.2.0

  • API change collection.update to use $set field
-collection.update({ type: 'a' }, { foo: 'bar' })
+collection.update({ type: 'a' }, { $set: { foo: 'bar' }})
  • Fix unnecessary collection init calls
  • Fix import statements (use 'import * as')
  • Add support for RxJS v5.0.0 and above

2017-02-09 - v1.1.1

  • Fix missing update call for active queries on data change

2017-02-09 - v1.1.0

  • Add missing "main" and "typings" fields to package.json.
  • Add exports for IPersistor and IPersistorFactory interfaces.

2017-02-09 - v1.0.2

  • Refactor core classes so it'll be easier to test.

2017-02-08 - v1.0.1

  • Initial Release!