RxDB v12.0.0 Release Notes
Release Date: 2022-04-26 // about 2 years ago-
- 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.