realm-java v10.6.0-BETA.2 Release Notes

Release Date: 2021-06-14 // 4 months ago
  • ๐Ÿ’ฅ Breaking Changes

    • `MapChangeSet.getDeletionsCount() has been replaced with MapChangeSet.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 and insertOrUpdate operations on RealmObject or RealmObject collections containing RealmDictionary or RealmSet fields.
    • โž• Added support for RealmDictionary in DynamicRealmObject with setDictionary(String fieldName, RealmDictionary<?> dictionary), getDictionary(String fieldName, Class<?> primitiveType), and getDictionary(String fieldName).
    • โž• Added support for RealmSet in DynamicRealmObject with setRealmSet(String fieldName, RealmSet<?> realmSet), getRealmSet(String fieldName, Class<?> primitiveType), and getRealmSet(String fieldName).

    ๐Ÿ›  Fixed

    • โœ‚ Removed wrong @Nullable annotation on RealmQuery.maxRealmAny().
    • ๐Ÿ›  Fixed RealmAny.getValueClass() returning the RealmObject proxy class instead of the model class on a RealmAny referencing a managed RealmObject.

    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.