Kakapo v2.1.0 Release Notes
Release Date: 2016-10-14 // about 8 years ago-
- ➕ Added
PATCH
method support Hernan Gonzalez
- ➕ Added
Previous changes from v2.0.0
-
💥 Breaking
_Swift 3.0 Support _
📇 Renamed
HTTPBody
tohttpBody
andHTTPHeader
tohttpHeader
HTTPMethod
enum cases are now lowercase⚡️ Updated APIs to follow Swift 3 new naming guidelines:
Serializable
serialize(_ keyTransformer: KeyTransformer? = nil) -> Any?
->serialized(transformingKeys keyTransformer: KeyTransformer? = nil) -> Any?
CustomSerializable
customSerialize(_ keyTransformer: KeyTransformer?) -> Any?
->customSerialized(transformingKeys keyTransformer: KeyTransformer?) -> Any?
Store
filter<T: Storable>(_: T.Type, includeElement: (T) -> Bool) -> [T]
->filter<T: Storable>(_: T.Type, isIncluded: (T) -> Bool) -> [T]
JSONAPISerializable
data(includeRelationships: Bool, includeAttributes: Bool, keyTransformer: KeyTransformer?) -> Any?
->data(includingRelationships: Bool, includingAttributes: Bool, transformingKeys keyTransformer: KeyTransformer?) -> Any?
includedRelationships(includeChildren: Bool, keyTransformer: KeyTransformer?) -> [Any]?
->includedRelationships(includingChildren: Bool, transformingKeys keyTransformer: KeyTransformer?) -> [Any]?
JSONAPISerializer
init(_ object: T, topLevelLinks: [String: JSONAPILink]? = nil, topLevelMeta: Serializable? = nil, includeChildren: Bool = false)
->init(_ object: T, topLevelLinks: [String: JSONAPILink]? = nil, topLevelMeta: Serializable? = nil, includingChildren: Bool = false)