Skip to content

0.6.0

Choose a tag to compare

@gdotdesign gdotdesign released this 30 Oct 11:42

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