Announcing Scala.js 0.6.15

Mar 21, 2017

We are excited to announce the release of Scala.js 0.6.15!

This release was focused on preparations for Scala.js 1.0.0. It notably contains better replacements for some features that we were not 100% happy with, which are now deprecated and will be dropped in 1.0.0.

Thanks to @olafurpg and his great tool scalafix, you can automatically migrate your codebase for the first and most intrusive of those deprecations. See below for details.

Scala.js 0.6.15 also comes with a set of exciting new features, including several awesome JavaScript interoperability features:

  • Use @JSExportStatic to define static members on Scala.js-defined JS classes.
  • @JSExportTopLevel is not restricted to methods anymore: it can be used on fields and top-level classes/objects.
  • The standard library now contains the API for ECMAScript 2015 symbols (as js.Symbol) and iterables/iterators (as js.Iterable and js.Iterator).
  • In JS types (both native and non-native), @JSName can be given a reference to a js.Symbol (instead of a constant string) to declare members whose “name” is a JavaScript symbol.

Finally, the sbt plugin also features a replacement for the “launcher” files, so that the call to the main method of your program can be included directly inside the main -fastopt.js.

Read on for more details.

Read more

Announcing Scala.js 0.6.14

Dec 21, 2016

We are excited to announce the release of Scala.js 0.6.14!

This release features a few language enhancements for interoperability. Among others, it allows to export top-level functions, and provides language support for JavaScript “configuration objects”.

Read more

Announcing Scala.js 0.6.13

Oct 17, 2016

We are excited to announce the release of Scala.js 0.6.13!

This release contains one particularly anticipated feature: the ability to generate CommonJS modules with Scala.js! It also standardizes on Node.js as the default runner for all sbt projects (with sbt run and sbt test), which constitutes a breaking change for builds. Read on for more details!

Read more

Announcing Scala.js 0.6.12

Sep 1, 2016

We are pleased to announce the release of Scala.js 0.6.12!

This release exclusively contains bug fixes, and a few internal changes to support the upcoming Scala 2.12.0-RC1.

Read more

Announcing Scala.js 0.6.11

Jul 27, 2016

We are pleased to announce the release of Scala.js 0.6.11!

This release was mainly focused on optimizations. In particular, Longs have been dramatically improved, with up to 15x speedups (#1488). Some operations on BigIntegers benefit a lot from this, with up to 8x speedups.

We have also finally upgraded the version of the Google Closure Compiler that is used for fullOptJS, which brings speed improvements to the production applications of up to 2x, although mostly in the 10-15% range (#2490).

Read more

Announcing Scala.js 0.6.10

Jun 17, 2016

We are pleased to announce the release of Scala.js 0.6.10!

This release is mostly a bug-fix release. It also contains further adaptations to support the upcoming Scala 2.12.0-M5.

The most important improvement is that the sbt plugin can now generate HTML pages to run your test suites in browsers (with any testing framework), so that you can use your browser’s debugger to step through your tests.

Read more