Skip to content

Commit e3de716

Browse files
committed
Merge pull request #131 from sjrd/announcing-scalajs-0.6.1
Announcing Scala.js 0.6.1.
2 parents 34a8c7e + 8ad0247 commit e3de716

File tree

5 files changed

+75
-2
lines changed

5 files changed

+75
-2
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.6.0
21+
scalaJSVersion: 0.6.1
2222
scalaJSBinaryVersion: 0.6
2323

2424
# The production_url is only used when full-domain names are needed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
layout: post
3+
title: Announcing Scala.js 0.6.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.6.1!
10+
11+
This release mostly contains bug fixes, including inefficiencies in the incremental `fastOptJS`.
12+
It also brings the entire `java.nio.Buffer`s API, with interoperability with the JavaScript [Typed Arrays](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray) API.
13+
14+
## Getting started
15+
16+
If you are new to Scala.js, head over to
17+
[the tutorial]({{ BASE_PATH }}/doc/tutorial.html).
18+
19+
## Release notes
20+
21+
For changes in the 0.6.x series compared to 0.5.x, read [the announcement of 0.6.0]({{ BASE_PATH }}/news/2015/02/05/announcing-scalajs-0.6.0/).
22+
23+
As a minor release, 0.6.1 is backward source and binary compatible with 0.6.0.
24+
Libraries compiled with 0.6.0 can be used with 0.6.1 without change.
25+
However, they will suffer from [bug #1506](https://github.com/scala-js/scala-js/issues/1506), which will cause your `fastOptJS` to perform more work than necessary.
26+
It is therefore recommended for library authors to upgrade to 0.6.1 and publish new versions of their libraries.
27+
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.
28+
29+
Please report any issues [on GitHub](https://github.com/scala-js/scala-js/issues).
30+
31+
## java.nio.Buffer and Typed Arrays
32+
33+
Scala.js 0.6.1 brings a complete implementation of the `java.nio.Buffer` API, with the exception of `MappedByteBuffer`.
34+
The non-[direct](http://docs.oracle.com/javase/7/docs/api/java/nio/ByteBuffer.html#direct) buffers work on any JS engine supported by Scala.js, i.e., supporting ECMAScript 5.1.
35+
36+
Direct buffers are implemented with JavaScript [Typed Arrays](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray), and therefore require the JS VM to support them.
37+
Two additional APIs of the Scala.js standard library provide interoperability with Typed Arrays:
38+
39+
* [TypedArrayBufferOps]({{ site.production_url }}/api/scalajs-library/0.6.1/#scala.scalajs.js.typedarray.TypedArrayBufferOps) allows to retrieve the underlying `ArrayBuffer`, `DataView`, and optionally `TypedArray` of a direct buffer (if it is not read-only)
40+
* [TypedArrayBuffer]({{ site.production_url }}/api/scalajs-library/0.6.1/#scala.scalajs.js.typedarray.TypedArrayBuffer$) allows to construct direct buffers wrapping existing Typed Arrays.
41+
42+
## Improvements
43+
44+
* [Better dce](https://github.com/scala-js/scala-js/pull/1488) reduces the size of the generated .js files by a few percents.
45+
* [java.util.Random](https://github.com/scala-js/scala-js/pull/1508) and [j.l.Math.random()](https://github.com/scala-js/scala-js/pull/1511) have been optimized. The latter is now an (inlined) direct forwarder to `js.Math.random()`.
46+
* Running tests should be faster thanks to [launching JS VMs in advance](https://github.com/scala-js/scala-js/issues/1299).
47+
* [#1496](https://github.com/scala-js/scala-js/issues/1496) Partial relative paths can now be used in `jsDependencies`.
48+
49+
## Bug fixes
50+
51+
* [#1478](https://github.com/scala-js/scala-js/issues/1478) Wrong optimization of Float/Double * -1
52+
* [#1491](https://github.com/scala-js/scala-js/issues/1491) `~fastOptJS` runs non-stop (also reported as [#1513](https://github.com/scala-js/scala-js/issues/1513))
53+
* [#1506](https://github.com/scala-js/scala-js/issues/1506)/[#1514](https://github.com/scala-js/scala-js/issues/1514) `fastOptJS` performs unnecessary work (requires libraries to be recompiled with 0.6.1)
54+
* [#1497](https://github.com/scala-js/scala-js/issues/1497) A better error message when trying to `@JSExport` an abstract class
55+
* [#1499](https://github.com/scala-js/scala-js/issues/1499) `fullOptJS` doesn't generate the `-launcher.js` script
56+
* [#1515](https://github.com/scala-js/scala-js/issues/1515) Hidden crasher bug of the optimizer in obscure cases

doc/index.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,19 @@ Generated Scaladocs are available here:
2828

2929
### Scala.js
3030

31+
#### Scala.js 0.6.1
32+
* [0.6.1 scalajs-library]({{ site.production_url }}/api/scalajs-library/0.6.1/#scala.scalajs.js.package)
33+
* [0.6.1 scalajs-test-interface]({{ site.production_url }}/api/scalajs-test-interface/0.6.1/)
34+
* [0.6.1 scalajs-stubs]({{ site.production_url }}/api/scalajs-stubs/0.6.1/)
35+
* [0.6.1 scalajs-ir]({{ site.production_url }}/api/scalajs-ir/0.6.1/#org.scalajs.core.ir.package)
36+
* [0.6.1 scalajs-tools]({{ site.production_url }}/api/scalajs-tools/0.6.1/#org.scalajs.core.tools.package) ([Scala.js version]({{ site.production_url }}/api/scalajs-tools-js/0.6.1/#org.scalajs.core.tools.package))
37+
* [0.6.1 scalajs-js-envs]({{ site.production_url }}/api/scalajs-js-envs/0.6.1/#org.scalajs.jsenv.package)
38+
* [0.6.1 scalajs-test-adapter]({{ site.production_url }}/api/scalajs-sbt-test-adapter/0.6.1/#org.scalajs.testadapter.package)
39+
* [0.6.1 sbt-scalajs]({{ site.production_url }}/api/sbt-scalajs/0.6.1/#org.scalajs.sbtplugin.package)
40+
3141
#### Scala.js 0.6.0
3242
* [0.6.0 scalajs-library]({{ site.production_url }}/api/scalajs-library/0.6.0/#scala.scalajs.js.package)
33-
* [0.6.6 scalajs-test-interface]({{ site.production_url }}/api/scalajs-test-interface/0.6.0/)
43+
* [0.6.0 scalajs-test-interface]({{ site.production_url }}/api/scalajs-test-interface/0.6.0/)
3444
* [0.6.0 scalajs-stubs]({{ site.production_url }}/api/scalajs-stubs/0.6.0/)
3545
* [0.6.0 scalajs-ir]({{ site.production_url }}/api/scalajs-ir/0.6.0/#org.scalajs.core.ir.package)
3646
* [0.6.0 scalajs-tools]({{ site.production_url }}/api/scalajs-tools/0.6.0/#org.scalajs.core.tools.package) ([Scala.js version]({{ site.production_url }}/api/scalajs-tools-js/0.6.0/#org.scalajs.core.tools.package))

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.6.1
13+
* [0.6.1, Scala 2.11 (tgz, 20MB)]({{ site.production_url }}/files/scalajs_2.11-0.6.1.tgz)
14+
* [0.6.1, Scala 2.11 (zip, 20MB)]({{ site.production_url }}/files/scalajs_2.11-0.6.1.zip)
15+
* [0.6.1, Scala 2.10 (tgz, 18MB)]({{ site.production_url }}/files/scalajs_2.10-0.6.1.tgz)
16+
* [0.6.1, Scala 2.10 (zip, 18MB)]({{ site.production_url }}/files/scalajs_2.10-0.6.1.zip)
17+
1218
#### Scala.js 0.6.0
1319
* [0.6.0, Scala 2.11 (tgz, 20MB)]({{ site.production_url }}/files/scalajs_2.11-0.6.0.tgz)
1420
* [0.6.0, Scala 2.11 (zip, 20MB)]({{ site.production_url }}/files/scalajs_2.11-0.6.0.zip)

index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ List of websites using Scala.js:
177177

178178
## Version History
179179

180+
- [0.6.1](/news/2015/03/03/announcing-scalajs-0.6.1/)
180181
- [0.6.0](/news/2015/02/05/announcing-scalajs-0.6.0/)
181182
- [0.6.0-RC2](/news/2015/01/23/announcing-scalajs-0.6.0-RC2/)
182183
- [0.6.0-RC1](/news/2015/01/12/announcing-scalajs-0.6.0-RC1/)

0 commit comments

Comments
 (0)