|
| 1 | +--- |
| 2 | +layout: post |
| 3 | +title: Announcing Scala.js 0.5.2 |
| 4 | +category: news |
| 5 | +tags: [releases] |
| 6 | +--- |
| 7 | +{% include JB/setup %} |
| 8 | + |
| 9 | +We are excited to announce the release of Scala.js 0.5.2! |
| 10 | + |
| 11 | +Scala.js 0.5.2 is backward binary compatible with older versions of the 0.5.x branch. However, it is *not* forward binary compatible. This means: |
| 12 | + |
| 13 | +- You don't need to re-publish libraries |
| 14 | +- You must upgrade to Scala.js 0.5.2 if any library you depend on uses Scala.js 0.5.2 |
| 15 | + |
| 16 | +If you choose to re-publish a library, make sure to bump its version. |
| 17 | + |
| 18 | +Please report any issues [on GitHub](https://github.com/scala-js/scala-js/issues). |
| 19 | + |
| 20 | +## Improvements in the 0.5.2 release |
| 21 | + |
| 22 | +For changes introduced in 0.5.0, how to upgrade, getting started etc. have a look at the [0.5.0 announcement]({{ BASE_PATH }}/news/2014/06/13/announcing-scalajs-0.5.0/) (and maybe the [0.5.1 announcement]({{ BASE_PATH }}/news/2014/06/30/announcing-scalajs-0.5.1/)). |
| 23 | + |
| 24 | +#### TypedArrays |
| 25 | + |
| 26 | +The new package `scala.scalajs.js.typedarray` contains facade types |
| 27 | +for JavaScript TypedArrays. It introduces compiler support to convert |
| 28 | +`scala.Array`s to their TypedArray equivalent and vice versa. |
| 29 | + |
| 30 | +Note that TypedArrays are **not** part of the ECMAScript 5 |
| 31 | +specification. You need to make sure your target platform supports |
| 32 | +TypedArrays in addition to ECMAScript 5, if you decide to use them. Scala.js' |
| 33 | +[TypedArray test suite](https://github.com/scala-js/scala-js/tree/v0.5.2/test-suite/src/test/scala/scala/scalajs/test/typedarray) |
| 34 | +covers the full typed API and should be sufficient to verify whether a |
| 35 | +given JavaScript runtime supports TypedArrays. |
| 36 | + |
| 37 | +#### Bugfixes |
| 38 | + |
| 39 | +The following bugs have been fixed in 0.5.2: |
| 40 | + |
| 41 | +- [#789](https://github.com/scala-js/scala-js/issues/789) `fastOptStage::run` fails with Node.js |
| 42 | +- [#791](https://github.com/scala-js/scala-js/issues/791) Default arguments in the constructor of facade classes fail if the companion object doesn't extend `js.Any` |
| 43 | +- [#796](https://github.com/scala-js/scala-js/issues/796) Extending `js.Any` directly gives strange error messages |
| 44 | + |
| 45 | +#### Changes to the IR |
| 46 | + |
| 47 | +Some minor changes have been made to the IR to better accommodate the incremental optimizer in the pipeline for 0.5.3. This is the reason for the lack of forward binary compatibility. |
0 commit comments