Realm v3.18.0 Release Notes

Release Date: 2019-08-13 // almost 5 years ago
  • ๐Ÿ”€ The file format for synchronized Realms has changed. Old Realms will be โฌ†๏ธ automatically upgraded when they are opened. Once upgraded, the files will not โฌ†๏ธ be openable by older versions of Realm. The upgrade should not take a significant amount of time to run or run any risk of errors.

    ๐Ÿ”€ This does not effect non-synchronized Realms.

    โœจ Enhancements

    • ๐Ÿ‘Œ Improve performance of queries on Date properties (Core #3344, Core #3351).
    • ๐Ÿ”€ Syncronized Realms are now more aggressive about trimming local history that is no longer needed. This should reduce file size growth in write-heavy workloads. (Sync #3007).
    • โž• Add support for building Realm as an xcframework. (PR #6237).
    • โž• Add prebuilt libraries for Xcode 11 to the release package. (PR #6248).
    • โž• Add a prebuilt library for Catalyst/UIKit For Mac to the release package (PR #6248).

    ๐Ÿ›  Fixed

    • ๐Ÿšฆ If a signal interrupted a msync() call, Realm would throw an exception and the write transaction would fail. This behavior has new been changed to retry the system call instead. (Core #3352)
    • Queries on the sum or average of an integer property would sometimes give incorrect results. (Core #3356).
    • ๐Ÿ”€ Opening query-based synchronized Realms with a small number of subscriptions performed an unneccesary write transaction. (ObjectStore #815).

    Compatibility

    • โฌ†๏ธ File format: Generates Realms with format v9 (Reads and upgrades all previous formats)
    • Realm Object Server: 3.21.0 or later.
    • ๐Ÿš€ Carthage release for Swift is built with Xcode 11.0

    ๐Ÿ—„ Deprecations

    • ๐Ÿ—„ RLMIdentityProviderNickname has been deprecated in favor of RLMIdentityProviderUsernamePassword.
    • ๐Ÿ—„ +[RLMIdentityProvider credentialsWithNickname] has been deprecated in favor of +[RLMIdentityProvider credentialsWithUsername].
    • ๐Ÿ”€ Sync.nickname(String, Bool) has been deprecated in favor of Sync.usernamePassword(String, String, Bool).