Skip to content

12.0.0-alpha.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@cknitt cknitt released this 06 Sep 06:29
· 266 commits to master since this release
cbae6e7

🚀 New Feature

  • Allow coercing polyvariants to variants when we can guarantee that the runtime representation matches. #6981
  • Add new dict literal syntax (dict{"foo": "bar"}). #6774
  • Optimize usage of the new dict literal syntax to emit an actual JS object literal. #6538

🐛 Bug Fix

  • Fix issue where long layout break added a trailing comma in partial application .... #6949
  • Fix incorrect format of function under unary operator. #6953
  • Fix incorrect printing of module binding with signature. #6963
  • Fix incorrect printing of external with @as attribute and _ placholder (fixed argument). #6970
  • Disallow spreading anything but regular variants inside of other variants. #6980
  • Fix comment removed when function signature has type keyword. #6997
  • Fix parse error on doc comment before "and" in type def. #7001

🏠 Internal

  • Add dev container. #6962
  • Convert more tests to the node test runner. #6956
  • Remove attribute "internal.arity". #7004
  • Remove dead modules. #7008

💅 Polish

  • Improve formatting in the generated js code. #6932
    • }\ncatch{ -> } catch {
    • for(let i = 0 ,i_finish = r.length; i < i_finish; ++i){ -> for (let i = 0, i_finish = r.length; i < i_finish; ++i) {
    • while(true) { -> while (true) {
    • Fixed tabulation for switch case bodies
    • Fixed tabulation for throw new Error bodies
    • Removed empty line at the end of switch statement
    • Removed empty default case from switch statement in the generated code
  • Optimised the Type Extension runtime code and removed trailing /1 from RE_EXN_ID. #6958
  • Compact output for anonymous functions. #6945 #7013
  • Rewatch 1.0.9. #7010