Skip to content

Commit 579ddb3

Browse files
committed
Add release notes for v1.2.0
1 parent db0af44 commit 579ddb3

File tree

1 file changed

+102
-1
lines changed

1 file changed

+102
-1
lines changed

website/docs/release_notes.md

Lines changed: 102 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,107 @@ import ReactPlayer from 'react-player'
88

99
# Release notes
1010

11+
## [v1.2.0](https://github.com/VirtusLab/scala-cli/releases/tag/v1.2.0)
12+
13+
### Scala 3.3.3, 3.4.0, 2.13.13 & 2.12.19 support
14+
15+
This version of Scala CLI adds support for a whooping 4 new Scala versions, it's been busy these past few days!
16+
The default version used when using the CLI will from now on be the Scala 3 Next version (3.4.0 as of this release).
17+
Using the `lts` tag will now point to Scala 3.3.3.
18+
The LTS is also the version used for building the internals of Scala CLI (although we now also cross-compile with 3.4.0).
19+
```bash
20+
scala-cli version
21+
# Scala CLI version: 1.2.0
22+
# Scala version (default): 3.4.0
23+
```
24+
Added by [@Gedochao](https://github.com/Gedochao) in [#2772](https://github.com/VirtusLab/scala-cli/pull/2772), [#2736](https://github.com/VirtusLab/scala-cli/pull/2736), [#2755](https://github.com/VirtusLab/scala-cli/pull/2755), [#2753](https://github.com/VirtusLab/scala-cli/pull/2753) and [#2752](https://github.com/VirtusLab/scala-cli/pull/2752)
25+
26+
### Remapping EsModule imports at link time with Scala.js
27+
Given the following `importMap.json` file:
28+
```json title=importMap.json
29+
{
30+
"imports": {
31+
"@stdlib/linspace": "https://cdn.skypack.dev/@stdlib/linspace"
32+
}
33+
}
34+
```
35+
36+
It is now possible to remap the imports at link time with the `jsEsModuleImportMap` directive.
37+
38+
```scala title=RemappingEsModuleImports.scala
39+
//> using jsEsModuleImportMap importMap.json
40+
//> using jsModuleKind es
41+
//> using jsMode fastLinkJS
42+
//> using platform js
43+
44+
import scala.scalajs.js
45+
import scala.scalajs.js.annotation.JSImport
46+
import scala.scalajs.js.typedarray.Float64Array
47+
48+
object Foo {
49+
def main(args: Array[String]): Unit = {
50+
println(Array(-10.0, 10.0, 10).mkString(", "))
51+
println(linspace(0, 10, 10).mkString(", "))
52+
}
53+
}
54+
55+
@js.native
56+
@JSImport("@stdlib/linspace", JSImport.Default)
57+
object linspace extends js.Object {
58+
def apply(start: Double, stop: Double, num: Int): Float64Array = js.native
59+
}
60+
```
61+
62+
The same can be achieved with the `--js-es-module-import-map` command line option.
63+
```bash
64+
scala-cli --power package RemappingEsModuleImports.scala --js --js-module-kind ESModule -o main.js --js-es-module-import-map importMap.json
65+
```
66+
67+
Added by [@Quafadas](https://github.com/Quafadas) in [#2737](https://github.com/VirtusLab/scala-cli/pull/2737) and [scala-js-cli#47](https://github.com/VirtusLab/scala-js-cli/pull/47)
68+
69+
### Fixes
70+
* Updated method for choosing a free drive letter (fixes #2743) by [@philwalk](https://github.com/philwalk) in [#2749](https://github.com/VirtusLab/scala-cli/pull/2749)
71+
* Make sure tasty-lib doesn't warn about Scala 3 Next by [@Gedochao](https://github.com/Gedochao) in [#2775](https://github.com/VirtusLab/scala-cli/pull/2775)
72+
73+
### Enhancements
74+
* Add the ability to remap EsModule imports at link time by [@Quafadas](https://github.com/Quafadas) in [#2737](https://github.com/VirtusLab/scala-cli/pull/2737)
75+
76+
### Internal changes
77+
* Fix overeager Scala version docs tests by [@Gedochao](https://github.com/Gedochao) in [#2750](https://github.com/VirtusLab/scala-cli/pull/2750)
78+
* Lock script wrapper tests on the internally used Scala 2.13 version by [@Gedochao](https://github.com/Gedochao) in [#2754](https://github.com/VirtusLab/scala-cli/pull/2754)
79+
* Use Scala LTS as the default version while cross compiling all Scala 3 modules on both LTS & Next by [@Gedochao](https://github.com/Gedochao) in [#2752](https://github.com/VirtusLab/scala-cli/pull/2752)
80+
* Explicitly set sonatype publishing to use the default cross Scala version by [@Gedochao](https://github.com/Gedochao) in [#2757](https://github.com/VirtusLab/scala-cli/pull/2757)
81+
* Fix publishing of artifacts to include non-cross-compiled modules by [@Gedochao](https://github.com/Gedochao) in [#2759](https://github.com/VirtusLab/scala-cli/pull/2759)
82+
* Run integration tests with both Scala 3 LTS & Next versions by [@Gedochao](https://github.com/Gedochao) in [#2760](https://github.com/VirtusLab/scala-cli/pull/2760)
83+
84+
### Documentation changes
85+
* Fix typo by [@imRentable](https://github.com/imRentable) in [#2739](https://github.com/VirtusLab/scala-cli/pull/2739)
86+
* Add directive examples in Scala Native docs by [@spamegg1](https://github.com/spamegg1) in [#2774](https://github.com/VirtusLab/scala-cli/pull/2774)
87+
* toolkit latest is deprecated, mention default instead by [@spamegg1](https://github.com/spamegg1) in [#2776](https://github.com/VirtusLab/scala-cli/pull/2776)
88+
89+
### Updates and maintenance
90+
* Update scala-cli.sh launcher for 1.1.3 by [@github-actions](https://github.com/features/actions) in [#2734](https://github.com/VirtusLab/scala-cli/pull/2734)
91+
* Bump webfactory/ssh-agent from 0.8.0 to 0.9.0 by [@dependabot](https://github.com/dependabot) in [#2731](https://github.com/VirtusLab/scala-cli/pull/2731)
92+
* Update `coursier` to 2.1.9 by [@Gedochao](https://github.com/Gedochao) in [#2735](https://github.com/VirtusLab/scala-cli/pull/2735)
93+
* Bump `scala-js-cli` to 1.15.0.1 by [@Gedochao](https://github.com/Gedochao) in [#2738](https://github.com/VirtusLab/scala-cli/pull/2738)
94+
* Update Scala to 3.4.0 by [@Gedochao](https://github.com/Gedochao) in [#2736](https://github.com/VirtusLab/scala-cli/pull/2736)
95+
* Update slf4j-nop to 2.0.12 by [@scala-steward](https://github.com/scala-steward) in [#2748](https://github.com/VirtusLab/scala-cli/pull/2748)
96+
* Update trees_2.13 to 4.9.0 by [@scala-steward](https://github.com/scala-steward) in [#2747](https://github.com/VirtusLab/scala-cli/pull/2747)
97+
* Update mill-main to 0.11.7 by [@scala-steward](https://github.com/scala-steward) in [#2744](https://github.com/VirtusLab/scala-cli/pull/2744)
98+
* Update sttp client core_2.13 to 3.9.3 by [@scala-steward](https://github.com/scala-steward) in [#2745](https://github.com/VirtusLab/scala-cli/pull/2745)
99+
* Bump Scala 2.12 to 2.12.19 by [@Gedochao](https://github.com/Gedochao) in [#2753](https://github.com/VirtusLab/scala-cli/pull/2753)
100+
* Update sbt to 1.9.9 by [@scala-steward](https://github.com/scala-steward) in [#2756](https://github.com/VirtusLab/scala-cli/pull/2756)
101+
* Bump Scala 2.13 to 2.13.13 by [@Gedochao](https://github.com/Gedochao) in [#2755](https://github.com/VirtusLab/scala-cli/pull/2755)
102+
* Update scalameta to 4.9.1 by [@scala-steward](https://github.com/scala-steward) in [#2770](https://github.com/VirtusLab/scala-cli/pull/2770)
103+
* Bump Scala LTS to 3.3.3 by [@Gedochao](https://github.com/Gedochao) in [#2772](https://github.com/VirtusLab/scala-cli/pull/2772)
104+
* Update ammonite to 3.0.0-M0-71-1e75159e by [@scala-steward](https://github.com/scala-steward) in [#2773](https://github.com/VirtusLab/scala-cli/pull/2773)
105+
106+
### New Contributors
107+
* [@imRentable](https://github.com/imRentable) made their first contribution in [#2739](https://github.com/VirtusLab/scala-cli/pull/2739)
108+
* [@spamegg1](https://github.com/spamegg1) made their first contribution in [#2774](https://github.com/VirtusLab/scala-cli/pull/2774)
109+
110+
**Full Changelog**: https://github.com/VirtusLab/scala-cli/compare/v1.1.3...v1.2.0
111+
11112
## [v1.1.3](https://github.com/VirtusLab/scala-cli/releases/tag/v1.1.3)
12113

13114
### Support for LTS Scala version aliases
@@ -434,7 +535,7 @@ Added by [@keynmol](https://github.com/keynmol) in [#2196](https://github.com/Vi
434535

435536
Platform version is now always logged during compilation.
436537

437-
```bash
538+
```bash ignore
438539
scala-cli compile .
439540
# Compiling project (Scala 3.3.1, JVM (17))
440541
# Compiled project (Scala 3.3.1, JVM (17))

0 commit comments

Comments
 (0)