mint-lang v0.8.0 Release Notes

Release Date: 2020-03-13 // about 4 years ago
  • This release contains 122 commits from 6 contributors ๐ŸŽ‰

    ๐Ÿฑ ๐Ÿšง Breaking changes ๐Ÿšง

    Mint now uses Preact instead of React (this should not break anything though) which will result in smaller compile files.

    ๐Ÿฑ External assets are now handled differently:

    • stylesheets are now supported as well
    • javascripts and stylesheets are now compiled into their own file

    - more information in issues and PRs: #151 #155 #183

    CSS rules whith multiple selectors are now compiled separately f2eab4b:

    div,p { color: red; }
    

    now compiles as:

    div { color: red; }p { color: red; }
    

    โž• Additions

    Implemented constants for stores , components and modules #194

    Implemented unary minus expression #201

    Implemented tuples #209

    Implemented array destructuring #210

    ๐Ÿ‘ Allows inline functions to be called recursively #181, #199

    โž• Added more functions to the core library:

    • Clipboard.set
    • FileSize.format
    • Provider.MediaQuery
    • Provider.Resize
    • Provider.Shortcuts
    • Dom.containedInSelector
    • Dom.getAttribute
    • Dom.setStyle
    • Dom.focus
    • Dom.getElementFromPoint
    • String.trim
    • String.withDefault
    • Window.prompt
    • Window.open
    • Window.getScrollbarWidth
    • Maybe.andThen #197
    • Math.random #190

    ๐Ÿ›  Fixes and other changes

    • ๐Ÿ‘‰ Show error for formatter if the pattern is invalid #157
    • โœ… Format files in both source-directories and test-directories #158
    • ๐Ÿ‘ Allow underscores in environment variable names
    • ๐Ÿ›  Fixed an issue when media query provider triggering events for non subscribers
    • ๐Ÿ›  Fixed String.trim
    • ๐Ÿ›  Fixed Time.range because of DatFNS update
    • ๐Ÿ›  Fixed an error when rendering HTML errors on WSL
    • ๐Ÿ›  Fixed an issue of resolving function type definitions #212
    • sequence and parallel reserved variable names #185
    • ๐Ÿ”ง Make host:port configurable for test server #207
    • ๐Ÿ‘‰ Show more context for the missing closing tag syntax error #213
    • Display more relevant errors for property and state if the type is a record without definition #188