0.4.0
Pre-release
Pre-release
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 inmint.json
to allow settingindent-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 thestyle
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.