mint-lang v0.6.0 Release Notes

Release Date: 2019-10-30 // about 2 years ago
  • ๐Ÿ’ฅ Breaking Changes

    • References of elements and components now return a Maybe
    • โœ‚ Remove pre defined global styles from the generated HTML #125
    • Type variables are not allow in component properties and records
    • Record definitions are needed for records except records for encode

    ๐Ÿ†• New Features

    ๐Ÿ‘Œ Improvements for the style tag #140 #128

    String interpolation #141

    Implemented member access function for records:

    object = Maybe::Just({
      name: "Joe"
    })
    
    Maybe.map(.name) /* Maybe::Just("Joe") */
    

    Implemented safe operators (&. and &() for dealing with Maybe in specific cases:

    Maybe::Just({ name: "Joe" })&.name /* Maybe::Just("Joe") */
    Maybe::Just(() : String { "Joe" })&() /* Maybe::Just("Joe") */
    

    Implement static and runtime type checking for route parameters #134

    ๐Ÿ”„ Changes

    • โž• Add chromium as recognized executable name for test runner #116
    • ๐Ÿ‘ Allow namespaces in HTML attributes #119
    • ๐Ÿ‘ Allow string style attributes on elements
    • ๐Ÿ‘ Allow function recursion by using it's static type definition
    • ๐Ÿ‘ Allow decoding time from a number (unix timestamp) #137
    • ๐Ÿ‘ Allow decoding Object as itself
    • Parenthesize JS interpolated values to avoid confusion #135
    • Serve files from baked files and public folder with right mime types #129
    • Don't generate links for icons if there aren't any #126
    • Replace native Maybe and Result implementations with enums #133
    • ๐Ÿ‘‰ Use static recrod of a component when accessing it as a ref

    ๐Ÿ›  Bugfixes:

    • ๐Ÿ›  Fix formatting of multiline strings #129
    • ๐Ÿ›  Fix readonly attribute compiling
    • ๐Ÿ›  Fix crash with remainder % operator

    Core

    • โž• Added Array.sumBy
    • โž• Added Array.sum
    • โž• Added Dom.focusWhenVisible
    • โž• Added Dom.contains
    • โž• Added Number.format
    • โž• Added String.replace
    • โž• Added Test.Html.assertActiveElement
    • โž• Added Set.size
    • ๐Ÿ›  Fix some Set functions
    • ๐Ÿ›  Fix Time.month and Time.year comment
    • ๐Ÿ›  Fix Array.indexBy by adding tests and using interpolation