News

Announcing Scala.js 1.8.0

Dec 10, 2021

We are excited to announce the release of Scala.js 1.8.0!

This release supports Node.js 17 out of the box. If you were previously using one of the workarounds described in this issue, you may remove it when upgrading to Scala.js 1.8.0.

It also introduces compiler warnings when using the default ExecutionContext.global. Read below for details about the reasons, replacements and ways to silence the warnings.

Finally, it introduces a few new language features, including support for the JavaScript metaproperty new.target.

Read on for more details.

Read more

Announcing Scala.js 1.7.1

Oct 7, 2021

We are pleased to announce the release of Scala.js 1.7.1!

This is mostly a bugfix release. It also updates the version of the Scala standard library to 2.12.15 for 2.12.x versions.

Read on for more details.

Read more

Announcing Scala.js 1.7.0

Aug 4, 2021

We are excited to announce the release of Scala.js 1.7.0!

This release fixes a number of bugs. In particular, regular expressions, available through java.util.regex.Pattern or Scala’s Regex and .r method, now behave in the same way as on the JVM. This change has compatibility implications, which we discuss below.

Moreover, this release fixes all the known bugs that were left. As of this writing, Scala.js 1.7.0 has zero known bugs!

The Scala standard library was upgraded to versions 2.12.14 and 2.13.6.

Read on for more details.

Read more

Announcing Scala.js 1.6.0

Jun 9, 2021

We are excited to announce the release of Scala.js 1.6.0!

This release fixes a number of bugs and brings new interoperability features, notably js.import.meta. It also brings new facades for js.WeakRef and js.FinalizationRegistry, while proper implementations of java.lang.ref.* are moved to separate libraries.

The Scala standard library was upgraded to versions 2.12.13 and 2.13.5.

Read on for more details.

Read more

Announcing Scala.js 1.5.1

Apr 1, 2021

We are pleased to announce the release of Scala.js 1.5.1!

This release mostly contains additions and improvements in the JDK libraries. In particular, several APIs involving floating point numbers have been fixed, from parsing to bit manipulation to formatting.

Read on for more details.

Read more

Announcing Scala.js 1.5.0

Feb 12, 2021

We are excited to announce the release of Scala.js 1.5.0!

This is mostly a bugfix release, including fixes for some important bugs related to dynamic module loading, which was introduced in 1.4.0.

The main non-bug fix improvement is the introduction of custom JS function types. It is now possible to declare custom subtraits of js.Function with arbitrary apply signatures. Notably, this allows to declare types for JS functions with varargs.

Scala.js 1.5.0 adds support for the imminent Scala 2.13.5. Previous versions of Scala.js, including Scala.js 0.6.x, will not work with Scala 2.13.5+.

Finally, due to the announcement by JFrog to discontinue Bintray, we are now publishing the sbt-scalajs sbt plugin to Maven Central, like all our other artifacts. Discussions are in progress with key actors of the Scala ecosystem about how to preserve all the previously published sbt plugins (sbt-scalajs being just one of many).

Read on for more details.

Read more