Realm v10.20.0 Release Notes
Release Date: 2021-11-16 // over 2 years ago-
โจ Enhancements
- Conform
@ThreadSafe
andThreadSafeReference
toSendable
. - ๐ Allow using Swift enums which conform to
PersistableEnum
as the value type for all Realm collections. AnyRealmCollection
now conforms toEncodable
.- ๐ Greatly improve performance of reading AnyRealmValue and enum types from Realm collections.
AnyRealmCollection
now conforms toEncodable
.
๐ Fixed
@AutoOpen
will open the existing local Realm file on any connection error rather than only when the connection specifically times out.- Do not allow
progress
state changes for@AutoOpen
and@AsyncOpen
after changing state toopen(let realm)
orerror(let error)
. - ๐ Logging out a sync user failed to remove the local Realm file for partitions with very long partition values that would have exceeded the maximum path length. (Core #4187, since v10.0.0)
- Don't keep trying to refresh the access token if the client's clock is more than 30 minutes fast. (Core #4941)
- ๐ Failed auth requests used a fixed long sleep rather than exponential backoff like other sync requests, which could result in very delayed reconnects after a device was offline long enough for the access token to expire (since v10.0.0).
Compatibility
- Realm Studio: 11.0.0 or later.
- ๐ APIs are backwards compatible with all previous releases in the 10.x.y series.
- ๐ Carthage release for Swift is built with Xcode 13.1.
- CocoaPods: 1.10 or later.
- Xcode: 12.2-13.1.
Internal
- โฌ๏ธ Upgraded realm-core from 11.6.0 to 11.6.1.
- Conform