Realm v5.0.0 Release Notes
Release Date: 2018-03-15 // about 6 years ago-
๐ This release is compatible with the Realm Object Server 3.0.0-beta.3 or later.
Known Bugs
- ๐ API's marked @ObjectServer are shipped as part of the base binary, they should only be available when enabling synchronized Realms.
๐ฅ Breaking Changes
- ๐ [ObjectServer] Renamed
SyncUser.currentUser()
toSyncUser.current()
. - ๐ [ObjectServer] Renamed
SyncUser.login(...)
andSyncUser.loginAsync(...)
toSyncUser.logIn(...)
andSyncUser.logInAsync(...)
. - ๐ [ObjectServer] Renamed
SyncUser.logout()
toSyncUser.logOut()
. - The
OrderedCollectionChangeSet
parameter inOrderedRealmCollectionChangeListener.onChange()
is no longer nullable. UsechangeSet.getState()
instead (#5619). - ๐
realm.subscribeForObjects()
have been removed. UseRealmQuery.findAllAsync(String subscriptionName)
andRealmQuery.findAllAsync()
instead. - โ Removed previously deprecated
RealmQuery.findAllSorted()
,RealmQuery.findAllSortedAsync()
RealmQuery.distinct()
andRealmQuery.distinctAsync()
. - ๐ Renamed
RealmQuery.distinctValues()
toRealmQuery.distinct()
โจ Enhancements
- โ [ObjectServer] Added support for partial Realms. Read here for more information.
- ๐ [ObjectServer] Added support for Object Level Permissions (requires partial synchronized Realms). Read here for more information.
- ๐ [ObjectServer] Added
SyncConfiguration.automatic()
andSyncConfiguration.automatic(SyncUser user)
(#5806). - โ Added two new methods to
OrderedCollectionChangeSet
:getState()
andgetError()
(#5619).