Skip to content

v4.0.0

Compare
Choose a tag to compare
@jaredcwhite jaredcwhite released this 11 Feb 21:21
· 395 commits to master since this release

Changes since v3.6.1

  • Support static method calls with blocks in es2015+
  • Auto-bind instance methods referenced as properties within a class
  • New defs option to add definitions for autoimported classes/methods
  • Open classes/modules, inheritance, and module include of props/methods
  • Handle begin, if, and case as expressions
  • Handle modules with exactly one method
  • Handle empty edge cases like `#{}` and ()
  • Live demo based on Opal (see here)
  • Demo: Hidden AST syntax enables copy/paste of syntactically correct AST
  • Anonymous classes via Class.new
  • Autoexport :default option
  • Support both default and named imports on same import statement
  • requires for modules containing exports statements generate import statements
  • require_recursive option