elixir_script v0.14.0 Release Notes
Release Date: 2015-12-06 // over 7 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
toelixirscript
. 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.
- Can now implement protocols using JavaScript types