Skip to content

0.18.0

Compare
Choose a tag to compare
@DenTelezhkin DenTelezhkin released this 01 Jul 15:35
· 101 commits to master since this release

New

  • All API was annotated for nullability, allowing better interoperability with Swift
  • Added mapPropertiesFromUnderscoreToCamelCase: method on EKObjectMapping, that allows mapping underscored JSON keypaths to camel-cased properties.

For example:

[mapping mapPropertiesFromUnderscoreToCamelCase:@[@"created_at",@"car_id"]];

will map created_at and car_id keypaths to createdAt and carId properties in your model.

Fixed

  • When using mapKeyPath:toProperty:withValueBlock: method and ignoreMissingFields property on EKObjectMapping is set to YES, value block will no longer be called, if value in JSON is nil

Deprecations

  • NSDateFormatter extension with ek_formatterForCurrentThread is deprecated and slated to be removed in release for Xcode 8, which drops support for iOS 7 and lower. This property is no longer useful, because NSDateFormatter is thread safe from iOS 7 and higher, and there's no reason to store NSDateFormatter in thread dictionary anymore.

Removals

Following deprecated methods were removed:

  • serializedObject on EKManagedObjectModel. Use serializedObjectInContext: instead.
  • mapKeyPath:toProperty:withDateFormat: method on EKObjectMapping. Use mapKeyPath:toProperty:withDateFormatter: method instead.