Releases: Noobish1/KeyedMapper
Releases · Noobish1/KeyedMapper
KeyedMapper 1.12.0
KeyedMapper 1.11.0
- Added
from
andoptionalFrom
functions for mapping to dictionaries in the form [U : [T]] where U and T are Convertible.
KeyedMapper 1.10.0
Changed the invalidRawValue
case of MapperError so that it only has rawValue
and rawValueType
KeyedMapper 1.9.0
- Removed the word
error
from all theMapperError
types to fit more with the Swift 3 naming conventions. - Modified the params of the invalidRawValue
MapperError
so that it's actually usable again now. It is now used in the DefaultConvertible implementation ofRawRepresentable
objects. - Sped up the
safeValue(forField:in:)
function by roughly 50% (based on the json in JSONShootout) with some early exits.
KeyedMapper 1.8.0
Removed the from<T: Convertible>(_ field:) throws -> T? where T == T.ConvertedType
function added in the previous release as it turns out not to be needed.
KeyedMapper 1.7.0
- Added a
from<T: Convertible>(_ field:) throws -> T? where T == T.ConvertedType
function to workaround a swift bug.
KeyedMapper 1.6.0
- Removed the
RawRepresentable
KeyedMapper
extension as it means you cannot have an object that isRawRepresentable
andConvertible
- Added an extension to
DefaultConvertible
which provides a default implementation ofConvertible
forRawRepresentable
objects, simply adoptDefaultConvertible
and your object will beConvertible
KeyedMapper 1.5.0
Went back to using NSDictionary
instead of [AnyHashable : Any]
as it resulted in a 6x performance regression.
KeyedMapper 1.4.0
- Carthage support
KeyedMapper 1.3.0
- Renamed
Mappable.from(JSON: [AnyHashable : Any]) (
toMappable.from(dictionary:)
- Renamed
Mappable.from(JSON: [Any])
toMappable.from(array:)