Skip to content

Upgrade Mill to 1.3.1 and Scala.js to 1.22.0 - #1123

Merged
stephenamar-db merged 1 commit into
databricks:masterfrom
He-Pin:upgrade-mill-scalajs
Nov 16, 2026
Merged

stephenamar-db merged 1 commit into
databricks:masterfrom
He-Pin:upgrade-mill-scalajs

Conversation

@He-Pin

@He-Pin He-Pin commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Scala.js 1.22.0's stable WebAssembly backend requires ES2022 or newer. The previous upgrade was reverted in #1107 because Mill 1.1.6 could only select ES versions through ES2021.

Upgrade the build tool first so sjsonnet can use Scala.js 1.22.0 without breaking its existing WebAssembly modules.

Modification

  • Upgrade Mill from 1.1.6 to the stable 1.3.1 release, which includes the ES2022 and stable WebAssembly support introduced by Add ES2022, ES2023, ES2024 to ESVersion enum and JSPI support com-lihaoyi/mill#7303.
  • Upgrade Scala.js from 1.20.2 to 1.22.0.
  • Replace scalaJSExperimentalUseWebAssembly with scalaJSUseWebAssembly and explicitly select ESVersion.ES2022 for the WebAssembly modules.
  • Leave ordinary JavaScript output settings unchanged. JSPI remains disabled because this build does not require it.

Result

The upgrade removes the build-tool limitation behind #1107. Local validation passed with JDK 21, the Mill JVM launcher, and Node.js 24.22.1:

References

@stephenamar-db

Copy link
Copy Markdown
Collaborator

/merge

@stephenamar-db
stephenamar-db merged commit 63734a0 into databricks:master Nov 16, 2026
5 checks passed
@He-Pin
He-Pin deleted the upgrade-mill-scalajs branch November 17, 2026 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants