News

Announcing Scala.js 1.13.0

Jan 26, 2023

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

This release drops support for Scala 2.11. Finally, 5 years after Scala 2.11 was declared end-of-life, we decided to drop support for it in Scala.js. We also dropped support for Scala 2.12.1 (Scala 2.12.2+ is still supported, of course).

Other than that, this release brings a number of bug fixes and enhancements. Notably:

  • Ability to export inner objects and classes in Scala classes
  • Checked exceptions for NullPointerExceptionss
  • Better optimizations for exported methods and methods in JavaScript classes

Read on for more details.

Read more

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