Realm v0.87.0 Release Notes
Release Date: 2014-10-21 // over 9 years ago-
API breaking changes
- RLMArray has been split into two classes,
RLMArray
andRLMResults
. RLMArray is used for object properties as in previous releases. Moving forward all methods used to enumerate, query, and sort objects return an instance of a new classRLMResults
. This change was made to support diverging apis and the future addition of change notifications for queries. - The api for migrations has changed. You now call
setSchemaVersion:withMigrationBlock:
to register a global migration block and associated version. This block is applied to Realms as needed when opened for Realms at a previous version. The block can be applied manually if desired by callingmigrateRealmAtPath:
. arraySortedByProperty:ascending:
was renamed tosortedResultsUsingProperty:ascending
addObjectsFromArray:
on bothRLMRealm
andRLMArray
has been renamed toaddObjects:
and now accepts any container class which implementsNSFastEnumeration
- ๐ Building with Swift support now requires Xcode 6.1
โจ Enhancements
- โ Add support for sorting
RLMArray
s by multiple columns withsortedResultsUsingDescriptors:
- โ Added method
deleteAllObjects
onRLMRealm
to clear a Realm. - โ Added method
createObject:withObject:
onRLMMigration
which allows object creation during migrations. - โ Added method
deleteObject:
onRLMMigration
which allows object deletion during migrations. - โก๏ธ Updating to core library version 0.85.0.
- Implement
objectsWhere:
andobjectsWithPredicate:
for array properties. - โ Add
cancelWriteTransaction
to revert all changes made in a write transaction and end the transaction. - ๐ Make creating
RLMRealm
instances on background threads when an instance exists on another thread take a fifth of the time. - ๐ Support for partial updates when calling
createOrUpdateWithObject:
andaddOrUpdateObject:
- ๐ Re-enable Swift support on OS X
๐ Bugfixes
- ๐ Fix exceptions when trying to set
RLMObject
properties after rearranging the properties in aRLMObject
subclass. - ๐ Fix crash on IN query with several thousand items.
- ๐ Fix crash when querying indexed
NSString
properties. - ๐ Fixed an issue which prevented in-memory Realms from being used accross multiple threads.
- Preserve the sort order when querying a sorted
RLMResults
. - ๐ Fixed an issue with migrations where if a Realm file is deleted after a Realm is initialized, the newly created Realm can be initialized with an incorrect schema version.
- ๐ Fix crash in
RLMSuperSet
when assigning to aRLMArray
property on a standalone object. - โ Add an error message when the protocol for an
RLMArray
property is not a valid object type. - โ Add an error message when an
RLMObject
subclass is defined nested within another Swift class.
- RLMArray has been split into two classes,