News

Announcing Scala.js 1.12.0

Nov 23, 2022

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

This release brings a number of bug fixes and enhancements. The highlights are:

  • Support for the JavaScript operator **, introduced in ECMAScript 2016.
  • Checked exceptions for ArrayStoreExceptionss and NegativeArraySizeExceptions

The Scala standard library was upgraded to version 2.12.17 and 2.13.10.

Read on for more details.

Read more

Announcing Scala.js 1.11.0

Sep 15, 2022

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

This release brings a number of bug fixes and enhancements. The highlights are:

  • Dead code elimination of unused fields, bringing code size improvements, and perhaps small performance improvements.
  • Checked exceptions for StringIndexOutOfBoundsExceptions: String.charAt(), substring(), and all their derivatives now report better errors in development mode.

Read on for more details.

Read more

Announcing Scala.js 1.10.1

Jun 25, 2022

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

This release mostly contains bug fixes and optimizations. It also updates the version of the Scala standard library to 2.12.16 for 2.12.x versions.

Read on for more details.

Read more

Announcing Scala.js 1.10.0

Apr 4, 2022

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

This release addresses a security vulnerability in java.util.UUID.randomUUID(). All versions of Scala.js prior to 1.10.0 are affected, including all 0.6.x versions. We strongly recommend that all users upgrade to Scala.js 1.10.0 as soon as possible. Read the security advisory for more details. The issue was registered as CVE-2022-28355.

This release also brings a new mode of module splitting, which creates the smallest possible modules for a given list of packages, and the fewest possible modules for the rest.

Finally, it contains some minor optimizations, notably contributed by @japgolly.

Read on for more details.

Read more

Announcing Scala.js 1.9.0

Feb 14, 2022

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

Starting with this release, Scala.js will use its strict-floats mode by default (what previously required withStrictFloats(true)). Float values are now always guaranteed to fit in 32-bit floating point data, and all Float operations strictly follow IEEE-754 float32 semantics.

This release also brings support for java.util.BitSet, and fixes some bugs. It also updates the version of the Scala standard library to 2.13.8 for 2.13.x versions.

Read on for more details.

Read more

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