Realm v0.80.0 Release Notes

Release Date: 2014-07-15 // over 9 years ago
  • API breaking changes

    • 0๏ธโƒฃ Rename migration methods to -migrateDefaultRealmWithBlock: and -migrateRealmAtPath:withBlock:
    • ๐Ÿšš Moved Realm specific query methods from RLMRealm to class methods on RLMObject (-allObjects: to +allObjectsInRealm: ect.)

    โœจ Enhancements

    • โž• Added +createInDefaultRealmWithObject: method to RLMObject.
    • โž• Added support for array and object literals when calling -createWithObject: and -initWithObject: variants.
    • โž• Added method -deleteObjects: to batch delete objects from a Realm
    • ๐Ÿ‘Œ Support for defining RLMObject models entirely in Swift (experimental, see known issues).
    • ๐Ÿ’… RLMArrays in Swift support Sequence-style enumeration (for obj in array).
    • Implemented -indexOfObject: for RLMArray

    Known Issues for Swift-defined models

    • 0๏ธโƒฃ Properties other than String, NSData and NSDate require a default value in the model. This can be an empty (but typed) array for array properties.
    • 0๏ธโƒฃ The previous caveat also implies that not all models defined in Objective-C can be used for object properties. Only Objective-C models with only implicit (i.e. primitives) or explicit default values can be used. However, any Objective-C model object can be used in a Swift array property.
    • Array property accessors don't work until its parent object has been added to a realm.
    • ๐Ÿ›  Realm-Bridging-Header.h is temporarily exposed as a public header. This is temporary and will be private again once rdar://17633863 is fixed.
    • Does not leverage Swift generics and still uses RLM-prefix everywhere. This is coming in #549.