-
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
core
plugin. 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.[].subfield
was 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
before
orafter
other plugin hooks. -
Attachments are now internally handled as string instead of
Blob
orBuffer
-
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
:
RxStorageInstance
must have theRxStorage
in thestorage
property.- The
_deleted
field is now required for each data interaction withRxStorage
. - Removed
RxStorageInstance.getChangedDocuments()
and addedRxStorageInstance.getChangedDocumentsSince()
for better performance. - Added
doesBroadcastChangestream()
toRxStorageStatics
- Added
withDeleted
parameter toRxStorageKeyObjectInstance.findLocalDocumentsById()
- Added internal
_meta
property to stored document data that contains internal document related data like last-write-time and replication checkpoints.