Skip to content

Commit dee31eb

Browse files
committed
Add release notes for 1.3.0
1 parent 731582d commit dee31eb

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed

website/docs/release_notes.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,83 @@ import ReactPlayer from 'react-player'
88

99
# Release notes
1010

11+
## [v1.3.0](https://github.com/VirtusLab/scala-cli/releases/tag/v1.3.0)
12+
13+
### Support for Scala Native 0.5.1
14+
This Scala CLI version adds support for Scala Native 0.5.1.
15+
All native platform builds will now use 0.5.1 as the default version.
16+
17+
```bash
18+
scala-cli -e 'println("Hello, Scala Native!")' --native
19+
# Compiling project (Scala 3.4.1, Scala Native 0.5.1)
20+
# Compiled project (Scala 3.4.1, Scala Native 0.5.1)
21+
# [info] Linking (multithreadingEnabled=true, disable if not used) (1059 ms)
22+
# [info] Discovered 882 classes and 5388 methods after classloading
23+
# [info] Checking intermediate code (quick) (39 ms)
24+
# [info] Multithreading was not explicitly enabled - initial class loading has not detected any usage of system threads. Multithreading support will be disabled to improve performance.
25+
# [info] Linking (multithreadingEnabled=false) (291 ms)
26+
# [info] Discovered 499 classes and 2501 methods after classloading
27+
# [info] Checking intermediate code (quick) (6 ms)
28+
# [info] Discovered 478 classes and 1916 methods after optimization
29+
# [info] Optimizing (debug mode) (432 ms)
30+
# [info] Produced 9 LLVM IR files
31+
# [info] Generating intermediate code (293 ms)
32+
# [info] Compiling to native code (1504 ms)
33+
# [info] Linking with [pthread, dl]
34+
# [info] Linking native code (immix gc, none lto) (351 ms)
35+
# [info] Postprocessing (0 ms)
36+
# [info] Total (4012 ms)
37+
# Hello, Scala Native!
38+
```
39+
40+
Note that not all the tools Scala CLI integrates with support Scala Native 0.5.x just yet.
41+
When such an integration is being used, the default Scala Native version will get downgraded to 0.4.17.
42+
43+
```bash
44+
scala-cli -e 'println("Hello, Scala Native!")' --native --toolkit default
45+
# [warn] Scala Toolkit does not support Scala Native 0.5.1, 0.4.17 should be used instead.
46+
# [warn] Scala Native default version 0.5.1 is not supported in this build. Using 0.4.17 instead.
47+
# Compiling project (Scala 3.4.1, Scala Native 0.4.17)
48+
# Compiled project (Scala 3.4.1, Scala Native 0.4.17)
49+
# [info] Linking (1017 ms)
50+
# [info] Checking intermediate code (quick) (53 ms)
51+
# [info] Discovered 743 classes and 4242 methods
52+
# [info] Optimizing (debug mode) (654 ms)
53+
# [info] Generating intermediate code (898 ms)
54+
# [info] Produced 10 files
55+
# [info] Compiling to native code (2039 ms)
56+
# [info] Linking with [pthread, dl]
57+
# [info] Total (4812 ms)
58+
# Hello, Scala Native!
59+
```
60+
61+
Efforts for supporting Scala Native 0.5.x are ongoing, we expect the downgrade to 0.4.17 in such cases to be a temporary solution.
62+
If you know for a fact that 0.5.x support has been delivered for a tool, you can always pass the `--native-version` option explicitly, which will prevent the downgrade.
63+
64+
Added by [@Gedochao](https://github.com/Gedochao) in [#2862](https://github.com/VirtusLab/scala-cli/pull/2862)
65+
66+
### Fixes
67+
* Add missing Scala 2 compiler print options by [@Gedochao](https://github.com/Gedochao) in [#2848](https://github.com/VirtusLab/scala-cli/pull/2848)
68+
* Don't recommend `latest` for toolkit version by [@keynmol](https://github.com/keynmol) in [#2852](https://github.com/VirtusLab/scala-cli/pull/2852)
69+
* Explicitly pass `scala3-sbt-bridge` to Bloop by [@Gedochao](https://github.com/Gedochao) in [#2873](https://github.com/VirtusLab/scala-cli/pull/2873)
70+
71+
### Internal changes
72+
* Add launcher options allowing to override the default Scala version by [@Gedochao](https://github.com/Gedochao) in [#2860](https://github.com/VirtusLab/scala-cli/pull/2860)
73+
74+
### Updates and maintenance
75+
* Update scala-cli.sh launcher for 1.2.2 by [@github-actions](https://github.com/features/actions) in [#2847](https://github.com/VirtusLab/scala-cli/pull/2847)
76+
* Update os-lib to 0.10.0 by [@scala-steward](https://github.com/scala-steward) in [#2854](https://github.com/VirtusLab/scala-cli/pull/2854)
77+
* Update scala-collection-compat to 2.12.0 by [@scala-steward](https://github.com/scala-steward) in [#2856](https://github.com/VirtusLab/scala-cli/pull/2856)
78+
* Update slf4j-nop to 2.0.13 by [@scala-steward](https://github.com/scala-steward) in [#2857](https://github.com/VirtusLab/scala-cli/pull/2857)
79+
* Update pprint to 0.9.0 by [@scala-steward](https://github.com/scala-steward) in [#2855](https://github.com/VirtusLab/scala-cli/pull/2855)
80+
* Update fansi to 0.5.0 by [@scala-steward](https://github.com/scala-steward) in [#2853](https://github.com/VirtusLab/scala-cli/pull/2853)
81+
* Update using_directives to 1.1.1 by [@scala-steward](https://github.com/scala-steward) in [#2863](https://github.com/VirtusLab/scala-cli/pull/2863)
82+
* Update Scala Native to 0.5.1 by [@scala-steward](https://github.com/scala-steward) and [@Gedochao](https://github.com/Gedochao) in [#2862](https://github.com/VirtusLab/scala-cli/pull/2862)
83+
* Update `bloop-core` to 1.5.17-sc-1 by [@scala-steward](https://github.com/scala-steward) in [#2873](https://github.com/VirtusLab/scala-cli/pull/2873)
84+
* Update `bloop-config` to 2.0.0 by [@scala-steward](https://github.com/scala-steward) in [#2873](https://github.com/VirtusLab/scala-cli/pull/2873)
85+
86+
**Full Changelog**: https://github.com/VirtusLab/scala-cli/compare/v1.2.2...v1.3.0
87+
1188
## [v1.2.2](https://github.com/VirtusLab/scala-cli/releases/tag/v1.2.2)
1289

1390
### Fixed the `Fatal invariant violated` false-positive error coming from Bloop

0 commit comments

Comments
 (0)