Realm v0.86.0 Release Notes

Release Date: 2015-12-03 // over 8 years ago
    • ๐Ÿ’ฅ BREAKING CHANGE: The Migration API has been replaced with a new API.
    • BREAKING CHANGE: RealmResults.SORT_ORDER_ASCENDING and RealmResults.SORT_ORDER_DESCENDING constants have been replaced by Sort.ASCENDING and Sort.DESCENDING enums.
    • BREAKING CHANGE: RealmQuery.CASE_SENSITIVE and RealmQuery.CASE_INSENSITIVE constants have been replaced by Case.SENSITIVE and Case.INSENSITIVE enums.
    • ๐Ÿ’ฅ BREAKING CHANGE: Realm.addChangeListener, RealmObject.addChangeListener and RealmResults.addChangeListener hold a strong reference to the listener, you should unregister the listener to avoid memory leaks.
    • ๐Ÿ’ฅ BREAKING CHANGE: Removed deprecated methods RealmQuery.minimum{Int,Float,Double}, RealmQuery.maximum{Int,Float,Double}, RealmQuery.sum{Int,Float,Double} and RealmQuery.average{Int,Float,Double}. Use RealmQuery.min(), RealmQuery.max(), RealmQuery.sum() and RealmQuery.average() instead.
    • ๐Ÿ’ฅ BREAKING CHANGE: Removed RealmConfiguration.getSchemaMediator() which is public by mistake. And RealmConfiguration.getRealmObjectClasses() is added as an alternative in order to obtain the set of model classes (#1797).
    • ๐Ÿ’ฅ BREAKING CHANGE: Realm.addChangeListener, RealmObject.addChangeListener and RealmResults.addChangeListener will throw an IllegalStateException when invoked on a non-Looper thread. This is to prevent registering listeners that will not be invoked.
    • ๐Ÿ’ฅ BREAKING CHANGE: trying to access a property on an unloaded RealmObject obtained asynchronously will throw an IllegalStateException
    • โž• Added new Dynamic API using DynamicRealm and DynamicRealmObject.
    • โž• Added Realm.getSchema() and DynamicRealm.getSchema().
    • โšก๏ธ Realm.createOrUpdateObjectFromJson() now works correctly if the RealmObject class contains a primary key (#1777).
    • ๐Ÿ‘ป Realm.compactRealm() doesn't throw an exception if the Realm file is opened. It just returns false instead.
    • โšก๏ธ Updated Realm Core to 0.95.3.
      • Fixed a bug where RealmQuery.average(String) returned a wrong value for a nullable Long/Integer/Short/Byte field (#1803).
      • Fixed a bug where RealmQuery.average(String) wrongly counted the null value for average calculation (#1854).