0.26.0
Standard Library
- Added arguments for upload and download progress to
Http.send. - Added
FormDatavariant toHttp.ResponseBody. - Added
FormData.getFileandFormData.getStringfunctions. - Added
File.fromUrlfunction. - Added
Regexp.execfunction. - Added
Html.DataTransfer.getMimeTypesfunction.
Exporting Entities
The build command now takes any number of --export arguments which allows exporting entities from the final bundle.
Functions and constants can be exported from modules, variant constructors from types and components. Components are exported in a way that they can be used easily.
Here is a minimal example:
component Greeter {
property name : String = ""
fun render {
"Hello #{name}!"
}
}mint build --export Greeterimport { Greeter } from `index.js`;
// Render the component into a DOM element.
Main.render(document.querySelector('div'), { name: "Joe" })Bugfixes
- Properly resolve static type signature of
Ast::Type - Make sure that variable labels survive pruning. (#780)