Skip to content

0.26.0

Choose a tag to compare

@github-actions github-actions released this 09 Jul 16:23
· 120 commits to master since this release

Standard Library

  • Added arguments for upload and download progress to Http.send.
  • Added FormData variant to Http.ResponseBody.
  • Added FormData.getFile and FormData.getString functions.
  • Added File.fromUrl function.
  • Added Regexp.exec function.
  • Added Html.DataTransfer.getMimeTypes function.

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 Greeter
import { 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)