0.5.2 (2024-05-28)

We’re happy to announce the release of Scala Native 0.5.2. It’s a second patch release, providing fixes to Java Standard Library reimplementaiton and adding support for new Scala versions 3.4.2 and 3.5.0-RC1

Supported Scala versions

Scala Binary Version Supported Scala Versions
2.12 2.12.14 ... 2.12.19
2.13 2.13.8 ... 2.13.14
3 3.1.2 ... 3.1.3
3.2.0 ... 3.2.2
3.3.0 ... 3.3.3
3.4.0 ... 3.4.2
3.5.0-RC1

Upon release of new Scala version (stable, or Scala 3 RC) version dependent artifacts would be published without a new release.

Commits since last release 29
Merged PRs 28
Contributors 11

Contributors

Big thanks to everybody who contributed to this release or reported an issue!

$ git shortlog -sn --no-merges v0.5.1..v0.5.2
   11 LeeTibbert
    8 Wojciech Mazur
    2 gaogao_qwq
    1 Andres Lowrie
    1 Anton Sviridov
    1 Jakub Kozłowski
    1 Michel Davit
    1 Natsu Kagami
    1 kbeldjilali
    1 naferx

Deprecations

Introduced in this version

All newly deprecated declarations are subject to removal in the future.

  • posixlib dirent.scala ‘readdir(dirp: Ptr[DIR], buf: Ptr[dirent]): CInt’ is now deprecated because it is not part of the POSIX 2018 standard. Suggested replacement: ‘readdir(dirp: Ptr[DIR]): Ptr[dirent]’.

Merged PRs

v0.5.2 (2024-05-28)

Full Changelog

Merged pull requests:

Java Standard Library

  • Fix #3878: javalib Files symlink deletion now matches JVM #3887 (LeeTibbert)

  • fix: javalib SimpleFileVisitor#visitFileFailed now matches JVM #3889 (LeeTibbert)

  • fix: Files#move now handles target directories which are populated #3901 (LeeTibbert)

  • fix: javalib streams from Files#list are now lazy on non-Windows #3897 (LeeTibbert)

  • fix: javalib FileChannel scattering api respect offsets #3907 (RustedBones)

  • fix [javalib]: java.nio.file.Files.copy handling for symbolic links #3913 (WojciechMazur)

  • fix: javalib many Files.copy methods now use multi-byte I/O #3915 (LeeTibbert)

  • fix [javalib]: Fix passing arguments to fallback /bin/sh -c command script in Unix process builders #3918 (WojciechMazur)

  • fix [javalib] - Improve handling of symbolic links in java.nio.file.Files #3917 (WojciechMazur)

  • fix: Eliminate unnecessary locking in posixlib unix Files.list; correct Exceptions thrown #3923 (LeeTibbert)

  • fix [javalib]: Synchronize access to process io, retry read after draining stdout. #3922 (WojciechMazur)

  • fix: javalib posix fileKeys are now unique #3906 (LeeTibbert)

POSIX bindings

  • fix: provide POSIX dirent#readdir & deprecate non-POSIX prior #3894 (LeeTibbert)

Scala Compile plugin

Toolchain

  • Respect LLVM_BIN when invoking llvm-config #3908 (keynmol)

  • improvement [toolchain]: Ignore incompatible NIR files when checking for entrypoints #3930 (WojciechMazur)

Scala Native runtime

  • Build architecture specific setjmp .S code more efficiently, reduce liklihood of Gnu ld error #3926 (LeeTibbert)