mint-lang v0.4.0 Release Notes

Release Date: 2019-02-23 // almost 3 years ago
  • ๐Ÿ’ฅ Breaking Changes

    • โœ‚ Removed => from inline functions
    • ๐Ÿ“ฆ mint-core package is now included in the binary (no longer needed as a dependency)

    ๐Ÿ”‹ Features

    • โž• Added --skip-service-worker flag to skip generation of service worker #96
    • Added for expression to allow iterating over some types #110
    • โž• Added ability to expose an item of a store with a different name (connect X exposing { y as z })
    • โž• Added formatter-config field in mint.json to allow setting indent-size #10
    • Implemented language feature for loading environment variables using the @VARIABLE syntax
    • Implemented Dead Code Elimination #98
    • Implemented JavaScript interpolation using the #{...} syntax
    • Implemented referencing childen of a component #108
    • ๐Ÿ‘ Allow passing Map(String, String) to the style attribute of an element.

    ๐Ÿ›  Bugfixes / Improvements

    • ๐Ÿ“œ Raise proper exception when parsing type. #95
    • ๐Ÿ‘ Allow hash to be matched in routes #101
    • ๐Ÿ‘ Allow whitespace at the end of parameter list of inline function
    • ๐Ÿ‘ Allow whitespace between parentheses of if condition #100
    • ๐Ÿ‘ Allow functions without the event parameter to be passed to event attributes.
    • โž• Added progress bar about parsing files in the CLI
    • The type checker now checks for naming conflicts of Types and Enums
    • โž• Added formatter for array access.
    • Automatically break connect exposes if there is at least new line between them.
    • Don't automatically split long strings only if they are split at least once.