Skip to content

2.0.0

Compare
Choose a tag to compare
@lukewestby lukewestby released this 01 Nov 00:53
· 56 commits to master since this release

Breaking Changes:

  • Upgrade for Elm 0.18
  • Removed maybeNull in favor of Json.Decode.nullable
  • Removed lazy in favor of Json.Decode.lazy
  • Renamed apply to andMap and reversed arguments to Decoder a -> Decoder (a -> b) -> Decoder b to make it work nicely with (|>)

Additions:

  • fromResult : Result String a -> Decoder a - convert a Result to a Decoder, helpful in andThen callbacks following the removal of Json.Decode.customDecoder
  • Json.Encode.Extra.maybe : (a -> Value) -> Maybe a -> Value - encode a Maybe a given an encoder for a. Thanks to @hendore for this addition.

Other Stuff:

  • Code style conforms to elm-format