Skip to content

Commit 8587ece

Browse files
committed
Scala.js 0.5.2 release
1 parent f99e1a6 commit 8587ece

File tree

6 files changed

+67
-7
lines changed

6 files changed

+67
-7
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ author :
1818
twitter : sjrdoeraene
1919
feedburner : feedname
2020

21-
scalaJSVersion: 0.5.1
21+
scalaJSVersion: 0.5.2
2222
scalaJSBinaryVersion: 0.5
2323

2424
# The production_url is only used when full-domain names are needed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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.

doc/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ Generated Scaladocs are available here:
3131

3232
### Scala.js
3333

34+
#### Scala.js 0.5.2
35+
* [0.5.2 scalajs-library]({{ BASE_PATH }}/api/scalajs-library/0.5.2/#scala.scalajs.js.package)
36+
* [0.5.2 scalajs-tools]({{ BASE_PATH }}/api/scalajs-tools/0.5.2/)
37+
* [0.5.2 scalajs-test-bridge]({{ BASE_PATH }}/api/scalajs-test-bridge/0.5.2/)
38+
* [0.5.2 scalajs-jasmine-test-framework]({{ BASE_PATH }}/api/scalajs-jasmine-test-framework/0.5.2/)
39+
3440
#### Scala.js 0.5.1
3541
* [0.5.1 scalajs-library]({{ BASE_PATH }}/api/scalajs-library/0.5.1/#scala.scalajs.js.package)
3642
* [0.5.1 scalajs-tools]({{ BASE_PATH }}/api/scalajs-tools/0.5.1/)

doc/semantics.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ exceptions. For information about how Scala numeric types map to
1616
JavaScript numeric types, have a look at the
1717
[interoparability guide](./js-interoperability.html).
1818

19-
### Floats behave like Doubles
20-
Since JavaScript doesn't have a native float type, we represent them
21-
using doubles/numbers, rather than manually implementing float
22-
arithmetic.
19+
### Floats may behave like Doubles
20+
Since JavaScript doesn't have a native float type, we sometimes represent Floats
21+
using doubles/numbers, rather than with lower-precision 32-bit floats.
2322

24-
Note that float literals are still truncated to their (binary)
23+
The choice of how to represent floats is up to the implementation. You may not rely on floats providing 64-bit floating point precision.
24+
25+
Float literals are truncated to their (binary)
2526
precision. However, output does not truncate to that precision. This
2627
can lead to the following behavior (this works as expected when using
2728
doubles):

downloads.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ We strongly recommend using the SBT plugin, as shown in the [bootstrapping skele
99

1010
The CLI distribution requires `scala` and `scalac` (of the right major version) to be on the execution path. Unpack it wherever you like and add the `bin/` folder to your execution path.
1111

12+
#### Scala.js 0.5.2
13+
* [0.5.2, Scala 2.11 (tgz, 14MB)]({{ BASE_PATH }}/files/scalajs_2.11-0.5.2.tgz)
14+
* [0.5.2, Scala 2.11 (zip, 14MB)]({{ BASE_PATH }}/files/scalajs_2.11-0.5.2.zip)
15+
* [0.5.2, Scala 2.10 (tgz, 15MB)]({{ BASE_PATH }}/files/scalajs_2.10-0.5.2.tgz)
16+
* [0.5.2, Scala 2.10 (zip, 15MB)]({{ BASE_PATH }}/files/scalajs_2.10-0.5.2.zip)
17+
1218
#### Scala.js 0.5.1
1319
* [0.5.1, Scala 2.11 (tgz, 13MB)]({{ BASE_PATH }}/files/scalajs_2.11-0.5.1.tgz)
1420
* [0.5.1, Scala 2.11 (zip, 13MB)]({{ BASE_PATH }}/files/scalajs_2.11-0.5.1.zip)

index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Although this is a project of LAMP/EPFL for which we will continue to provide
1616
best-effort improvements and bug fixes, it is <i>not</i> supported by Typesafe,
1717
and not part of any of their support contracts. You have been warned!</p>
1818

19-
<p style="text-align: center"><a href="{{ BASE_PATH }}/news/2014/06/30/announcing-scalajs-0.5.1/" class="btn btn-large btn-success">Latest stable release: 0.5.1</a></p>
19+
<p style="text-align: center"><a href="{{ BASE_PATH }}/news/2014/07/09/announcing-scalajs-0.5.2/" class="btn btn-large btn-success">Latest stable release: 0.5.2</a></p>
2020

2121
Noteworthy features:
2222

0 commit comments

Comments
 (0)