Skip to content

Releases: Noobish1/KeyedMapper

KeyedMapper 1.12.0

01 Dec 21:33
Compare
Choose a tag to compare
  • added:
    • from<T: Convertible>(_:) -> [[T]].
    • optionalFrom<T: Convertible>(_:) -> [[T]]?.
    • from<T: Mappable>(_:) -> [[T]].
    • optionalFrom<T: Mappable>(_:) -> [[T]]?.

KeyedMapper 1.11.0

01 Dec 21:31
Compare
Choose a tag to compare
  • Added from and optionalFrom functions for mapping to dictionaries in the form [U : [T]] where U and T are Convertible.

KeyedMapper 1.10.0

11 Nov 22:35
Compare
Choose a tag to compare

Changed the invalidRawValue case of MapperError so that it only has rawValue and rawValueType

KeyedMapper 1.9.0

07 Nov 18:37
Compare
Choose a tag to compare
  • Removed the word error from all the MapperError 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 of RawRepresentable 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

03 Nov 13:59
Compare
Choose a tag to compare

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

03 Nov 13:57
Compare
Choose a tag to compare
  • Added a from<T: Convertible>(_ field:) throws -> T? where T == T.ConvertedType function to workaround a swift bug.

KeyedMapper 1.6.0

03 Nov 13:56
Compare
Choose a tag to compare
  • Removed the RawRepresentable KeyedMapper extension as it means you cannot have an object that is RawRepresentable and Convertible
  • Added an extension to DefaultConvertible which provides a default implementation of Convertible for RawRepresentable objects, simply adopt DefaultConvertible and your object will be Convertible

KeyedMapper 1.5.0

01 Nov 14:40
Compare
Choose a tag to compare

Went back to using NSDictionary instead of [AnyHashable : Any] as it resulted in a 6x performance regression.

KeyedMapper 1.4.0

23 Oct 04:14
Compare
Choose a tag to compare
  • Carthage support

KeyedMapper 1.3.0

27 Sep 23:36
Compare
Choose a tag to compare
  • Renamed Mappable.from(JSON: [AnyHashable : Any]) ( to Mappable.from(dictionary:)
  • Renamed Mappable.from(JSON: [Any]) to Mappable.from(array:)