Skip to content

Releases: pubkey/rxdb

10.0.0-beta.1

22 Jun 23:25
Compare
Choose a tag to compare
10.0.0-beta.1 Pre-release
Pre-release

Read the full release article

Breaking:

  • Setting a primaryKey for a schema is now required.

  • When using the type RxJsonSchema<DocType> the DocType is now required.

  • Outgoing data is now Readonly typed and deep-frozen in dev mode

  • RxDocument.putAttachment() no longer supports string as data, only Blob or Buffer.

  • Changed the default of putAttachment to skipIfSame=true.

  • Removed the deprecated atomicSet(), use atomicPatch() instead.

  • Removed the deprecated RxDatabase.collection() use RxDatabase().addCollections() instead.

  • Moved everything pouchdb related to the pouchdb plugin.

  • Pouchdb plugins are not longer added via addRxPlugin() but addPouchPlugin(). (RxDB plugins are still added via addRxPlugin).

  • Removed plugin hook preCreatePouchDb.

  • Removed the watch-for-changes plugin, this is now directly integrated into the pouchdb RxStorage.

  • Removed the adapter-check plugin. (The function adapterCheck is move to the pouchdb plugin).

  • Calling RxDatabase.server() now returns a promise that resolves when the server is started up.

  • Changed the defaults of PouchDBExpressServerOptions from the server() method, by default we now store logs in the tmp folder and the config is in memory.

  • Renamed replication-plugin to replication-couchdb to be more consistend in naming like with replication-graphql

    • Renamed RxCollection().sync() to RxCollection().syncCouchDB()
  • Renamed the functions of the json import/export plugin to be less confusing

    • dump() is now exportJSON()
    • importDump() is now importJSON()
  • RxCollection uses a separate pouchdb instance for local documents, so that they can persist during migrations.

9.20.0

15 May 23:19
Compare
Choose a tag to compare

Bugfixes:

  • Auto-cancel one time couchdb replications to not cause a memory leak
  • Fixed another memory leak when calling the couchdb replication many times.

Features:

  • Added the backup-plugin

Other:

  • Updated rxjs to version 7.0.1

9.18.0

26 Apr 21:24
Compare
Choose a tag to compare

Bugfixes:

  • Fixed memory leak in RxCollection().findByIds$()

Other:

  • Added collection name when throwing errors in RxQuery

9.17.0

14 Apr 15:43
Compare
Choose a tag to compare

Features:

  • Added possibility to change, update, remove and add RxAttachments inside of a migration strategy.

9.16.0

12 Apr 21:42
Compare
Choose a tag to compare

Features:

  • Added RxDatabase.migrationStates() which returns an observable to observe the state of all ongoing migrations.
  • Added startupPromise to the returned object of RxDatabase().server()

Bugfixes:

  • Ensure every background task is done when RxDatabase.destroy() resolves. #2938

Other:

  • Added analytics to docs page

9.15.0

24 Feb 23:25
Compare
Choose a tag to compare

Bugfixes:

Other:

  • Determinstic handling of revision keys during data migration
  • Added more information to RxError when data migration fails

9.14.0

14 Feb 02:29
Compare
Choose a tag to compare

Features:

  • Added RxReplicationState.awaitInitialReplication()

Bugfixes:

  • Using the replication plugins must not required to also use leader-election
  • Refactor QueryCache.triggerCacheReplacement() to not spawn setTimeout regulary. This is needed for server side rendering with angular universal.

Other:

9.13.0

10 Feb 21:13
Compare
Choose a tag to compare

Features:

Other:

  • Improved typings of insertLocal() #2850 Thanks @openscript
  • Improved typings of bulkInsert()

9.12.1

24 Jan 22:08
Compare
Choose a tag to compare

Bugfixes:

  • #2785 postInsert hook not working when use bulkInsert to insert doc. Thanks @qinyang912
  • Setted sideEffects: true for main module #2798

Other:

  • (docs) added warning about indexeddb adapter
  • Upgraded typescript to 4.1.3

9.12.0

03 Jan 04:28
Compare
Choose a tag to compare

Features:

  • Allow primary and ref at the same time in a schema. #2747

Bugfixes:

  • #2705 when use bulkInsert to insert doc, the rxDocument property on changeEvent is an object, not a RxDocument instance. Thanks @qinyang912
  • When the mutation function of atomicUpdate() has thrown once, it was not possible to use it again.