Skip to content

Commit bc9771d

Browse files
committed
Announcing Scala.js 0.6.33.
1 parent 873df82 commit bc9771d

File tree

5 files changed

+97
-1
lines changed

5 files changed

+97
-1
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ colors: #in hex code if not noted else
5959
versions:
6060
scalaJS: 1.0.1
6161
scalaJSBinary: 1
62-
scalaJS06x: 0.6.32
62+
scalaJS06x: 0.6.33
6363
scalaJS06xBinary: 0.6
6464
scalaJSDOM: 1.0.0
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
---
2+
layout: post
3+
title: Announcing Scala.js 0.6.33
4+
category: news
5+
tags: [releases]
6+
permalink: /news/2020/05/13/announcing-scalajs-0.6.33/
7+
---
8+
9+
10+
We are pleased to announce the release of Scala.js 0.6.33!
11+
12+
This is mostly a bugfix release, including a fix for a bad interaction with React.js' development mode and the `jsdom` JS env.
13+
In addition, we have upgraded to the standard libraries of Scala 2.12.11 and 2.13.2.
14+
15+
Read on for more details.
16+
17+
<!--more-->
18+
19+
## Getting started
20+
21+
If you are new to Scala.js, head over to
22+
[the tutorial]({{ BASE_PATH }}/tutorial/).
23+
24+
## Release notes
25+
26+
If you use `.scala` build files in `project/` and are upgrading from Scala.js 0.6.22 or earlier, do read [the release notes of 0.6.23]({{ BASE_PATH }}/news/2018/05/22/announcing-scalajs-0.6.23/), which contain a source breaking change in that situation.
27+
28+
If upgrading from Scala.js 0.6.14 or earlier, make sure to read [the release notes of 0.6.15]({{ BASE_PATH }}/news/2017/03/21/announcing-scalajs-0.6.15/), which contain important migration information.
29+
30+
As a minor release, 0.6.33 is backward binary compatible with previous releases in the 0.6.x series.
31+
Libraries compiled with earlier versions can be used with 0.6.33 without change.
32+
0.6.33 is also forward binary compatible with 0.6.{29-32}, but not with earlier releases: libraries compiled with 0.6.33 cannot be used by projects using 0.6.{0-28}.
33+
34+
Please report any issues [on GitHub](https://github.com/scala-js/scala-js/issues).
35+
36+
## New warnings
37+
38+
In Scala.js 0.6.33, the Scala.js compiler will start reporting warnings when trying to override `equals` and `hashCode` in a JS type (extending `js.Any`).
39+
For example:
40+
41+
{% highlight scala %}
42+
class A extends js.Object {
43+
override def hashCode(): Int = 1
44+
override def equals(obj: Any): Boolean = false
45+
}
46+
{% endhighlight %}
47+
48+
will report the following warnings:
49+
50+
{% highlight none %}
51+
Test.scala:6: warning: Overriding hashCode in a JS class does not change its hash code.
52+
To silence this warning, change the name of the method and optionally add @JSName("hashCode").
53+
override def hashCode(): Int = 1
54+
^
55+
Test.scala:7: warning: Overriding equals in a JS class does not change how it is compared.
56+
To silence this warning, change the name of the method and optionally add @JSName("equals").
57+
override def equals(obj: Any): Boolean = false
58+
^
59+
{% endhighlight %}
60+
61+
Overriding `equals` and `hashCode` never *worked*, in the sense that it would not affect `==` and `##`.
62+
The new warnings make it clear.
63+
64+
## Bug fixes
65+
66+
Among others, the following bugs have been fixed in 0.6.33:
67+
68+
* [#4034](https://github.com/scala-js/scala-js/issues/4034) Incorrect result for `-x` when `x` is `+0.0`
69+
* [#3998](https://github.com/scala-js/scala-js/issues/3998) Self-types in non-native JS traits cause confusing error message
70+
* [#3458](https://github.com/scala-js/scala-js/issues/3458) Bad interactions in `JSDOMNodeJSEnv` error handling with React.js dev mode
71+
* [#3818](https://github.com/scala-js/scala-js/issues/3818) Linking error for `Future.never` from Scala 2.13
72+
* [#3939](https://github.com/scala-js/scala-js/issues/3939) Compile error on a method with `@JSName("finalize")` in a non-native JS class
73+
74+
You can find the full list [on GitHub](https://github.com/scala-js/scala-js/issues?q=is%3Aissue+milestone%3Av0.6.33+is%3Aclosed).

doc/all-api.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ title: All previous versions of the Scala.js API
55

66
## All previous versions of the API
77

8+
### Scala.js 0.6.33
9+
* [0.6.33 scalajs-library]({{ site.production_url }}/api/scalajs-library/0.6.33/#scala.scalajs.js.package)
10+
* [0.6.33 scalajs-test-interface]({{ site.production_url }}/api/scalajs-test-interface/0.6.33/)
11+
* [0.6.33 scalajs-stubs]({{ site.production_url }}/api/scalajs-stubs/0.6.33/)
12+
* [0.6.33 scalajs-ir]({{ site.production_url }}/api/scalajs-ir/0.6.33/#org.scalajs.core.ir.package)
13+
* [0.6.33 scalajs-tools]({{ site.production_url }}/api/scalajs-tools/0.6.33/#org.scalajs.core.tools.package) ([Scala.js version]({{ site.production_url }}/api/scalajs-tools-js/0.6.33/#org.scalajs.core.tools.package))
14+
* [0.6.33 scalajs-js-envs]({{ site.production_url }}/api/scalajs-js-envs/0.6.33/#org.scalajs.jsenv.package)
15+
* [0.6.33 scalajs-js-envs-test-kit]({{ site.production_url }}/api/scalajs-js-envs-test-kit/0.6.33/#org.scalajs.jsenv.test.package)
16+
* [0.6.33 scalajs-test-adapter]({{ site.production_url }}/api/scalajs-sbt-test-adapter/0.6.33/#org.scalajs.testadapter.package)
17+
* [0.6.33 sbt-scalajs]({{ site.production_url }}/api/sbt-scalajs/0.6.33/#org.scalajs.sbtplugin.package)
18+
819
### Scala.js 1.0.1
920
* [1.0.1 scalajs-library]({{ site.production_url }}/api/scalajs-library/1.0.1/scala/scalajs/js/index.html)
1021
* [1.0.1 scalajs-test-interface]({{ site.production_url }}/api/scalajs-test-interface/1.0.1/)

doc/internals/downloads.md

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

88
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.
99

10+
#### Scala.js 0.6.33
11+
* [0.6.33, Scala 2.13 (tgz, 23MB)]({{ site.production_url }}/files/scalajs_2.13-0.6.33.tgz)
12+
* [0.6.33, Scala 2.13 (zip, 23MB)]({{ site.production_url }}/files/scalajs_2.13-0.6.33.zip)
13+
* [0.6.33, Scala 2.12 (tgz, 30MB)]({{ site.production_url }}/files/scalajs_2.12-0.6.33.tgz)
14+
* [0.6.33, Scala 2.12 (zip, 30MB)]({{ site.production_url }}/files/scalajs_2.12-0.6.33.zip)
15+
* [0.6.33, Scala 2.11 (tgz, 36MB)]({{ site.production_url }}/files/scalajs_2.11-0.6.33.tgz)
16+
* [0.6.33, Scala 2.11 (zip, 36MB)]({{ site.production_url }}/files/scalajs_2.11-0.6.33.zip)
17+
* [0.6.33, Scala 2.10 (tgz, 30MB)]({{ site.production_url }}/files/scalajs_2.10-0.6.33.tgz)
18+
* [0.6.33, Scala 2.10 (zip, 30MB)]({{ site.production_url }}/files/scalajs_2.10-0.6.33.zip)
19+
1020
#### Scala.js 1.0.0
1121
* [1.0.0, Scala 2.13 (tgz, 21MB)]({{ site.production_url }}/files/scalajs_2.13-1.0.0.tgz)
1222
* [1.0.0, Scala 2.13 (zip, 21MB)]({{ site.production_url }}/files/scalajs_2.13-1.0.0.zip)

doc/internals/version-history.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ title: Version history
55

66
## Version history of Scala.js
77

8+
- [0.6.33](/news/2020/05/13/announcing-scalajs-0.6.33/)
89
- [1.0.1](/news/2020/03/10/announcing-scalajs-1.0.1/)
910
- [1.0.0](/news/2020/02/25/announcing-scalajs-1.0.0/)
1011
- [0.6.32](/news/2020/01/24/announcing-scalajs-0.6.32/)

0 commit comments

Comments
 (0)