Releases: realm/realm-swift
Releases · realm/realm-swift
v0.92.4
API breaking changes
- None.
Enhancements
- Swift: Made
Object.init()
a required initializer. RLMObject
,RLMResults
,Object
andResults
can now be safely
deallocated (but still not used) from any thread.- Improve performance of
-[RLMArray indexOfObjectWhere:]
and-[RLMArray indexOfObjectWithPredicate:]
, and implement them for standalone RLMArrays. - Improved performance of most simple queries.
Bugfixes
- The interprocess notification mechanism no longer uses dispatch worker threads, preventing it from
starving other GCD clients of the opportunity to execute blocks when dozens of Realms are open at once.
v0.92.3
API breaking changes
- Swift:
Results.average(_:)
now returns an optional, which isnil
if and only if the results set is empty.
Enhancements
- Swift: Added
List.invalidated
, which returns if the givenList
is no longer safe to be accessed, and is analogous to-[RLMArray isInvalidated]
. - Assertion messages are automatically logged to Crashlytics if it's loaded into the current process to make it easier to diagnose crashes.
Bugfixes
- Swift: Enumerating through a standalone
List
whose objects themselves have list properties won't crash. - Swift: Using a subclass of
RealmSwift.Object
in an aggregate operator of a predicate no longer throws a spurious type error. - Fix incorrect results for when using OR in a query on a
RLMArray
/List<>
. - Fix incorrect values from
[RLMResults count]
/Results.count
when using!=
on an int property with no other query conditions. - Lower the maximum doubling threshold for Realm file sizes from 128MB to 16MB to reduce the amount of wasted space.
v0.92.2
API breaking changes
- None.
Enhancements
- Exceptions raised when incorrect object types are used with predicates now contain more detailed information.
- Added
-[RLMMigration deleteDataForClassName:]
andMigration.deleteData(_:)
to enable cleaning up after removing object subclasses
Bugfixes
- Prevent debugging of an application using an encrypted Realm to work around
frequent LLDB hangs. Until the underlying issue is addressed you may set
REALM_DISABLE_ENCRYPTION=YES
in your application's environment variables to
have requests to open an encrypted Realm treated as a request for an
unencrypted Realm. - Linked objects are properly updated in
createOrUpdateInRealm:withValue:
. - List properties on Objects are now properly initialized during fast enumeration.
v0.92.1
v0.92.0
API breaking changes
- Migration blocks are no longer called when a Realm file is first created.
- The following APIs have been deprecated in favor of newer method names:
Deprecated API | New API |
---|---|
-[RLMMigration createObject:withObject:] |
-[RLMMigration createObject:withValue:] |
-[RLMObject initWithObject:] |
-[RLMObject initWithValue:] |
+[RLMObject createInDefaultRealmWithObject:] |
+[RLMObject createInDefaultRealmWithValue:] |
+[RLMObject createInRealm:withObject:] |
+[RLMObject createInRealm:withValue:] |
+[RLMObject createOrUpdateInDefaultRealmWithObject:] |
+[RLMObject createOrUpdateInDefaultRealmWithValue:] |
+[RLMObject createOrUpdateInRealm:withObject:] |
+[RLMObject createOrUpdateInRealm:withValue:] |
Enhancements
Int8
properties defined in Swift are now treated as integers, rather than
booleans.- NSPredicates created using
+predicateWithValue:
are now supported.
Bugfixes
- Compound AND predicates with no subpredicates now correctly match all objects.