elixir_script v0.14.0 Release Notes

Release Date: 2015-12-06 // over 8 years ago
  • โž• Added

    • Can now implement protocols using JavaScript types elixir defimpl MyProtocol, for: HTMLElement
    • virtual-dom JavaScript library
    • ElixirScript.Html module for defining a virtual-dom tree
    • ElixirScript.VDom module for manipulating the virtual-dom tree created using the ElixirScript.Html module
    • โž• Added ElixirScript.View module for handling view state and rendering virtual-dom
    • โž• Added stdlib_path compiler option to specify the es6 path to the standard library. If used, elixir.js will not be exported with the compiled modules

    ๐Ÿ”„ Changed

    • ๐Ÿ“‡ Renamed ex2js to elixirscript. This effects the escript as well as the mix task
    • Structs are now translated into classes
    • Structs and Tuples now match on their types
    • Can now match on JavaScript classes. Works just like matching on structs: elixir def my_func(%HTMLElement{id: "myId"})
    • ๐Ÿšš Moved non-elixir JavaScript code into core es6 module. This will hopefully make it so ElixirScript Standard Library modules can be defined in Elixir soon.