Navigation Menu

Skip to content

6.0.0

Compare
Choose a tag to compare
@ianmackenzie ianmackenzie released this 12 Mar 00:48

This is a release with a small but breaking change - a new SubEntity type has been added to replace the use of ( TypeName, List Attribute ) when working with complex entities. This makes things a little cleaner and more explicit, and paves the way for a new optimized decoding implementation that will likely be published as part of a 7.0.0 release soon.

Full diff:

---- Step.Encode - MAJOR ----

    Changed:
      - complexEntity : List ( String, List Attribute ) -> Entity
      + complexEntity : List SubEntity -> Entity

    Added:
        subEntity : String -> List Attribute -> SubEntity

---- Step.Types - MAJOR ----

    Added:
        type SubEntity
            = SubEntity TypeName (List Attribute)

    Changed:
      - type Entity
            = SimpleEntity (Maybe Int) TypeName (List Attribute)
            | ComplexEntity (Maybe Int) (List ( TypeName, List Attribute ))
      + type Entity
            = SimpleEntity (Maybe Int) TypeName (List Attribute)
            | ComplexEntity (Maybe Int) (List SubEntity)