Skip to content

Commit 6667dcd

Browse files
committed
Scala.js 0.5.1 release
1 parent 936dc82 commit 6667dcd

File tree

4 files changed

+71
-1
lines changed

4 files changed

+71
-1
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
layout: post
3+
title: Announcing Scala.js 0.5.1
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.1!
10+
11+
This version features bug fixes and improvements while remaining binary compatible with Scala.js 0.5.0. Therefore, Scala.js libraries may, but need not be republished with Scala.js 0.5.1.
12+
13+
Please report any issues [on GitHub](https://github.com/scala-js/scala-js/issues).
14+
15+
## Improvements in the 0.5.1 release
16+
17+
For changes introduced in 0.5.0, how to upgrade, getting started etc. have a look at the [0.5.0 announcement](./2014-06-13-announcing-scalajs-0.5.0.html).
18+
19+
#### Additions to the Java library
20+
21+
The following two are now implemented according to spec:
22+
23+
- `java.util.Date`
24+
- `java.util.Random`
25+
26+
#### Wrappers for JavaScript Arrays and Dictionaries
27+
28+
Thanks to `js.WrappedArray` and `js.WrappedDictionary` (and some implicit conversions), `js.Array` and `js.Dictionary` can now be passed to Scala code that expects `mutable.Seq` and `mutable.Map` respectively:
29+
30+
{% highlight scala %}
31+
def setHead(x: mutable.Seq[Int]): Unit = x(0) = 42
32+
val array = js.Array(1, 2, 3)
33+
setHead(array)
34+
println(array) // -> 42,2,3
35+
{% endhighlight %}
36+
37+
Further, this allows to call methods defined on `Map` on `js.Dictionary` (`foreach`, `map`, `filter`, etc.)
38+
39+
#### Filter `jsDependencies` when executing JavaScript code
40+
41+
The new sbt setting `jsDependencyFilter` can be used to modify the dependencies used when running/testing:
42+
43+
jsDependencyFilter := (_.filter(_.resourceName != "jquery.js"))
44+
45+
The above would prevent "jquery.js" from being included by the sbt runners. See [FlatJSDependency]({{ BASE_PATH }}/api/scalajs-tools/0.5.1/#scala.scalajs.tools.jsdep.FlatJSDependency) for fields that you can use.
46+
47+
#### Ordered testing output
48+
49+
When testing in the `fastOptStage` or the `fullOptStage`, test output sometimes appeared interleaved. This has been fixed this release.
50+
51+
## Contributors
52+
53+
Thanks to all the code contributors:
54+
55+
- [Sébastien Doeraene](https://github.com/sjrd/)
56+
- [Tobias Schlatter](https://github.com/gzm0/)
57+
- [Alexander Myltsev](https://github.com/alexander-myltsev)
58+
- [Matt Seddon](https://github.com/mseddon)

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.1
35+
* [0.5.1 scalajs-library]({{ BASE_PATH }}/api/scalajs-library/0.5.1/#scala.scalajs.js.package)
36+
* [0.5.1 scalajs-tools]({{ BASE_PATH }}/api/scalajs-tools/0.5.1/)
37+
* [0.5.1 scalajs-test-bridge]({{ BASE_PATH }}/api/scalajs-test-bridge/0.5.1/)
38+
* [0.5.1 scalajs-jasmine-test-framework]({{ BASE_PATH }}/api/scalajs-jasmine-test-framework/0.5.1/)
39+
3440
#### Scala.js 0.5.0
3541
* [0.5.0 scalajs-library]({{ BASE_PATH }}/api/scalajs-library/0.5.0/#scala.scalajs.js.package)
3642
* [0.5.0 scalajs-tools]({{ BASE_PATH }}/api/scalajs-tools/0.5.0/)

doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ To setup Scala.js in a new sbt project, we need to do two things:
2323

2424
Adding the Scala.js sbt plugin is a one-liner in `project/plugins.sbt` (all file names we write in this tutorial are relative to the project root):
2525

26-
addSbtPlugin("org.scala-lang.modules.scalajs" % "scalajs-sbt-plugin" % "0.5.0")
26+
addSbtPlugin("org.scala-lang.modules.scalajs" % "scalajs-sbt-plugin" % "0.5.1")
2727

2828
We also setup basic project settings and Scala.js settings in the sbt build file (`build.sbt`, in the project root directory):
2929

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.1
13+
* [0.5.1, Scala 2.11 (tgz, 13MB)]({{ BASE_PATH }}/files/scalajs_2.11-0.5.1.tgz)
14+
* [0.5.1, Scala 2.11 (zip, 13MB)]({{ BASE_PATH }}/files/scalajs_2.11-0.5.1.zip)
15+
* [0.5.1, Scala 2.10 (tgz, 15MB)]({{ BASE_PATH }}/files/scalajs_2.10-0.5.1.tgz)
16+
* [0.5.1, Scala 2.10 (zip, 15MB)]({{ BASE_PATH }}/files/scalajs_2.10-0.5.1.zip)
17+
1218
#### Scala.js 0.5.0
1319
* [0.5.0, Scala 2.11 (tgz, 13MB)]({{ BASE_PATH }}/files/scalajs_2.11-0.5.0.tgz)
1420
* [0.5.0, Scala 2.11 (zip, 13MB)]({{ BASE_PATH }}/files/scalajs_2.11-0.5.0.zip)

0 commit comments

Comments
 (0)