Back to Coffeescript

2.3.1

documentation/sections/changelog/2.3.1.md

2.7.0853 B
Original Source
releaseHeader('2018-05-21', '2.3.1', '2.3.0')
  • Returning a JSX tag that is adjacent to another JSX tag, as opposed to returning a root JSX tag or fragment, is invalid JSX syntax. Babel throws an error on this, and now the CoffeeScript compiler does too.
  • Invalid indentation inside a JSX interpolation (the middle of <tag>{ ... }</tag>) now throws an error.
  • The browser compiler, used in Try CoffeeScript and similar web-based CoffeeScript editors, now evaluates code in a global scope rather than the scope of the browser compiler. This improves performance of code executed via the browser compiler.
  • Syntax cleanup: it is now possible for an implicit function call to take a body-less class as an argument, and ?:: now behaves identically to :: with regard to implying a line continuation.