realm-java v10.6.0-BETA.2 Release Notes
Release Date: 2021-06-14 // almost 3 years ago-
💥 Breaking Changes
- `
MapChangeSet.getDeletionsCount()
has been replaced withMapChangeSet.getDeletions()
that return the keys for entries that has been deleted instead of just the number of deleted entries. - ⬆️ Primary keys now have automatic indexes again. Indexes was removed in v10.0.0 because they were not needed, but it caused issues when upgrading from a pre v10 version of Realm, and in some cases resulted in large delays when upgrading the fileformat. (Issue #7426, since 10.0.0).
✨ Enhancements
- 👍 Allow
insert
andinsertOrUpdate
operations onRealmObject
orRealmObject
collections containingRealmDictionary
orRealmSet
fields. - ➕ Added support for
RealmDictionary
inDynamicRealmObject
withsetDictionary(String fieldName, RealmDictionary<?> dictionary)
,getDictionary(String fieldName, Class<?> primitiveType)
, andgetDictionary(String fieldName)
. - ➕ Added support for
RealmSet
inDynamicRealmObject
withsetRealmSet(String fieldName, RealmSet<?> realmSet)
,getRealmSet(String fieldName, Class<?> primitiveType)
, andgetRealmSet(String fieldName)
.
🛠 Fixed
- ✂ Removed wrong
@Nullable
annotation onRealmQuery.maxRealmAny()
. - 🛠 Fixed
RealmAny.getValueClass()
returning theRealmObject
proxy class instead of the model class on aRealmAny
referencing a managedRealmObject
.
Compatibility
- ⬆️ File format: Generates Realms with format v22. Unsynced Realms will be upgraded from Realm Java 2.0 and later. Synced Realms can only be read and upgraded if created with Realm Java v10.0.0-BETA.1.
- 🚀 APIs are backwards compatible with all previous release of realm-java in the 10.6.y series.
- Realm Studio 11.0.0-alpha.0 or above is required to open Realms created by this version.
Internal
- ⚡️ Updated to Realm Core 11.0.2, commit a30382469eb72c0cf1824b44e7062071c2f3f3a9.
- ⚡️ Updated to Gradle 6.8.3.
- `