Announcing Scala.js 0.6.1
Mar 3, 2015.
We are excited to announce the release of Scala.js 0.6.1!
This release mostly contains bug fixes, including inefficiencies in the incremental
It also brings the entire
If you are new to Scala.js, head over to the tutorial.
For changes in the 0.6.x series compared to 0.5.x, read the announcement of 0.6.0.
As a minor release, 0.6.1 is backward source and binary compatible with 0.6.0.
Libraries compiled with 0.6.0 can be used with 0.6.1 without change.
However, they will suffer from bug #1506, which will cause your
fastOptJS to perform more work than necessary.
It is therefore recommended for library authors to upgrade to 0.6.1 and publish new versions of their libraries.
Scala.js 0.6.0 can read binaries compiled with 0.6.1, so you need not be afraid to force an upgrade of all the users of your libraries.
Please report any issues on GitHub.
java.nio.Buffer and Typed Arrays
Scala.js 0.6.1 brings a complete implementation of the
java.nio.Buffer API, with the exception of
The non-direct buffers work on any JS engine supported by Scala.js, i.e., supporting ECMAScript 5.1.
- TypedArrayBufferOps allows to retrieve the underlying
DataView, and optionally
TypedArrayof a direct buffer (if it is not read-only)
- TypedArrayBuffer allows to construct direct buffers wrapping existing Typed Arrays.
- Better dce reduces the size of the generated .js files by a few percents.
- java.util.Random and j.l.Math.random() have been optimized. The latter is now an (inlined) direct forwarder to
- Running tests should be faster thanks to launching JS VMs in advance.
- #1496 Partial relative paths can now be used in
- #1478 Wrong optimization of Float/Double * -1
~fastOptJSruns non-stop (also reported as #1513)
fastOptJSperforms unnecessary work (requires libraries to be recompiled with 0.6.1)
- #1497 A better error message when trying to
@JSExportan abstract class
fullOptJSdoesn’t generate the
- #1515 Hidden crasher bug of the optimizer in obscure cases