Skip to content

2.0.0

Compare
Choose a tag to compare
@ra1028 ra1028 released this 26 Sep 19:11
· 187 commits to master since this release

Support Swift3/Xcode8 🎉

Add

  • Add function InsecureDistillate.value(): () throws -> Value
  • Add function SecureDistillate.value(): () -> Value
  • Add function Array<Distillable>.distil(j:)
  • Add function Dictionary<Key: StringConvertible, Value: Distillable>.distil(j:)
  • Add protocol InitDistillable

Breaking

Obsolete

  • Serialize objects to JSON Data or String
  • DistillateType

Rename

  • success(_ handler:) to value(_ handler)
  • failure(_ handler:) to error(_ handler)
  • recover() to catch()
  • DistillSubscripted to LazyJSON
  • JSONPath to Path
  • OptionalType to OptionalConvertible
  • JSONPathElement to PathElement

Change

  • Change the type constraint of distil value functions from distil(Path)(Type) to distil(Path, to: Type)
  • Distillate.filter() is now computed property .filter"
  • JSON became Class object from Struct
  • Enums are now lowercase
  • Some argument labeling rules