-
All indexes that do not contain the primaryKey, get the primary key added.
-
You can now set a custom index when doing a query.
-
Unified the replication primitives and the GraphQL replication plugin.
-
Removed the deprecated in-memory plugin.
-
Added cleanup plugin
-
Refactor local documents plugin to only create a storage instance for local documents when needed.
-
Removed the
coreplugin. The default exportfrom 'rxdb'now exports only the RxDB core without plugins. -
The Dexie.js RxStorage is no longer in beta mode.
-
Added the in memory storage plugin.
-
Added
RxDocument().toMutableJSON() -
Added
RxCollection().bulkUpsert() -
Added optional
init()function toRxPlugin. -
dev-mode: Add check to ensure all top-level fields in a query are defined in the schema.
-
Support for array field based indexes like
data.[].subfieldwas removed, as it anyway never really worked. -
Refactored the usage of RxCollection.storageInstance to ensure all hooks run properly.
-
Refactored the encryption plugin so no more plugin specific code is in the RxDB core.
-
Removed the encrypted export from the json-import-export plugin. This was barely used and made everything more complex. All exports are no non-encrypted. If you need them encrypted, you can still run by encryption after the export is done.
-
RxPlugin hooks now can be defined as running
beforeorafterother plugin hooks. -
Attachments are now internally handled as string instead of
BloborBuffer -
Fix (replication primitives) only drop pulled documents when a relevant document was changed locally.
-
Fix dexie.js was not able to query over an index when
keyCompression: true
Changes to RxStorageInterface:
RxStorageInstancemust have theRxStoragein thestorageproperty.- The
_deletedfield is now required for each data interaction withRxStorage. - Removed
RxStorageInstance.getChangedDocuments()and addedRxStorageInstance.getChangedDocumentsSince()for better performance. - Added
doesBroadcastChangestream()toRxStorageStatics - Added
withDeletedparameter toRxStorageKeyObjectInstance.findLocalDocumentsById() - Added internal
_metaproperty to stored document data that contains internal document related data like last-write-time and replication checkpoints.