Skip to content

Releases: ra1028/Alembic

3.4.0

17 Apr 19:45
1f3b23a
Compare
Choose a tag to compare

Breaking Changes

  • Array, Dictionary and Optional now conformed Parsable by conditional conformance 🎉

3.3.0

31 Jan 17:53
Compare
Choose a tag to compare

Improvements

Significant performance improvement

Breaking Changes

  • Rename flatMap to filterMap
  • JSON.Path is now RandomAccessCollection
  • Rename Parsed to Parser
  • Rename ThrowParsed to ThrowParser

3.2.0

31 Jan 17:49
Compare
Choose a tag to compare

#Fix

  • Fix number type parsing on Linux

#Breaking Changes

  • Add JSON.Error.dataCorrupted
  • Add Parse Decimal type
  • Remove JSON.Error.serializeFailed
  • Rename JSON.Error.custom to JSON.Error.other

3.1.0

02 Nov 07:51
Compare
Choose a tag to compare

Swift4

3.0.0

19 Sep 14:53
Compare
Choose a tag to compare

API has been renewaled.
See README.md example.

2.1.2

10 Oct 19:54
Compare
Choose a tag to compare

Add

  • InsecureDistillate.value(handler: (Value) -> Void)
  • InsecureDistillate.error(handler: (Value) -> Void)
  • SecureDistillate.value(handler: (Value) -> Void)

2.1.1

07 Oct 18:22
Compare
Choose a tag to compare

Add

  • Add failedToSerialize(with:) to DistillError
  • Add associated value path: Path to DistillError.typeMismatch

Breaking

Change

  • No need to try/catch when intializing JSON from String or Data
  • Argument label to: is now as:

Rename

  • Rename InitDistillable to Brewable

Remove

  • Remove function value(handler:) that get value via closure
  • Remove utility functions of Distillate for Collection

2.1.0

05 Oct 17:17
Compare
Choose a tag to compare

Linux Ready 🎉
Pull-Request

2.0.0

26 Sep 19:11
Compare
Choose a tag to compare

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

1.8.1

03 Sep 20:43
Compare
Choose a tag to compare

Serialization is now depricated 😢