0.18.0
New
- All API was annotated for nullability, allowing better interoperability with Swift
- Added
mapPropertiesFromUnderscoreToCamelCase:
method onEKObjectMapping
, 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 andignoreMissingFields
property onEKObjectMapping
is set toYES
, value block will no longer be called, if value in JSON is nil
Deprecations
NSDateFormatter
extension withek_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, becauseNSDateFormatter
is thread safe from iOS 7 and higher, and there's no reason to storeNSDateFormatter
in thread dictionary anymore.
Removals
Following deprecated methods were removed:
serializedObject
onEKManagedObjectModel
. UseserializedObjectInContext:
instead.mapKeyPath:toProperty:withDateFormat:
method onEKObjectMapping
. UsemapKeyPath:toProperty:withDateFormatter:
method instead.