Skip to content

Commit 8c13bf6

Browse files
authored
Add release notes for Scala CLI v1.5.2 (#3262)
1 parent 23f6949 commit 8c13bf6

File tree

1 file changed

+106
-0
lines changed

1 file changed

+106
-0
lines changed

website/docs/release_notes.md

+106
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,112 @@ import ReactPlayer from 'react-player'
88

99
# Release notes
1010

11+
## [v1.5.2](https://github.com/VirtusLab/scala-cli/releases/tag/v1.5.2)
12+
13+
### `--source` is now deprecated and scheduled for removal in Scala CLI v1.6.x
14+
Due to how easy it is to confuse `--source` (the command line option for producing source JARs
15+
with the `package` sub-command) and `-source` (the Scala compiler option, which can also be passed
16+
as `--source` in recent Scala 3 versions), using the former is now deprecated, and will likely be removed
17+
in Scala CLI v1.6.x.
18+
19+
```bash ignore
20+
scala-cli --power package --source .
21+
# [warn] The --source option alias has been deprecated and may be removed in a future version.
22+
# (...)
23+
```
24+
25+
Do note that the deprecation (and future removal) only affects the option alias.
26+
The feature of packaging source JARs remains unchanged.
27+
It is now recommended to switch to using the `--src` alias instead.
28+
29+
```bash ignore
30+
scala-cli --power package --src .
31+
```
32+
33+
Added by [@Gedochao](https://github.com/Gedochao) in [#3257](https://github.com/VirtusLab/scala-cli/pull/3257).
34+
35+
### Support for Scala 3.5.2
36+
This Scala CLI version switches the default Scala version to 3.5.2.
37+
38+
```bash
39+
scala-cli version
40+
# Scala CLI version: 1.5.2
41+
# Scala version (default): 3.5.2
42+
```
43+
44+
Added by [@Gedochao](https://github.com/Gedochao) in [#3230](https://github.com/VirtusLab/scala-cli/pull/3230).
45+
46+
### (experimental) Initial support for emitting Wasm with a command line option and a directive
47+
It is now possible to emit Wasm via Scala.js with the `//> using jsEmitWasm` directive:
48+
```scala title=wasm.sc compile power
49+
//> using platform js
50+
//> using jsEmitWasm
51+
//> using jsModuleKind es
52+
//> using jsModuleSplitStyleStr fewestmodules
53+
println("Hello")
54+
```
55+
Or with the `--js-emit-wasm` command line option:
56+
```bash ignore
57+
scala-cli --power package wasm.sc --js --js-emit-wasm
58+
# The `--js-emit-wasm` option is experimental
59+
# Please bear in mind that non-ideal user experience should be expected.
60+
# If you encounter any bugs or have feedback to share, make sure to reach out to the maintenance team at https://github.com/VirtusLab/scala-cli
61+
# Compiling project (Scala 3.5.2, Scala.js 1.17.0)
62+
# Compiled project (Scala 3.5.2, Scala.js 1.17.0)
63+
# Wrote ~/wasm/wasm.js/main.js, run it with
64+
# node ./wasm.js/main.js
65+
tree wasm.js
66+
# wasm.js
67+
# ├── __loader.js
68+
# ├── main.js
69+
# └── main.wasm
70+
#
71+
# 1 directory, 3 files
72+
```
73+
74+
For more information about Wasm (WebAssembly) support via Scala.js, refer [here](https://www.scala-js.org/doc/project/webassembly.html).
75+
76+
Added by [@Quafadas](https://github.com/Quafadas) in [#3255](https://github.com/VirtusLab/scala-cli/pull/3255).
77+
78+
### Features
79+
* Add a `--js-emit-wasm` option and a corresponding `using` directive by [@Quafadas](https://github.com/Quafadas) in [#3255](https://github.com/VirtusLab/scala-cli/pull/3255)
80+
81+
### Deprecations
82+
* Deprecate the `--source` command line option for the package sub-command by [@Gedochao](https://github.com/Gedochao) in [#3257](https://github.com/VirtusLab/scala-cli/pull/3257)
83+
84+
### Fixes
85+
* Fix `--watch` to work correctly with changing `using` directives & sources requiring code generation (scripts, markdown, etc) by [@Gedochao](https://github.com/Gedochao) in [#3218](https://github.com/VirtusLab/scala-cli/pull/3218)
86+
* Ensure resource directories passed via a using directive aren't ignored in `--watch` mode by [@Gedochao](https://github.com/Gedochao) in [#3221](https://github.com/VirtusLab/scala-cli/pull/3221)
87+
* Ensure consecutive `-Wconf:*` flags are not ignored by [@Gedochao](https://github.com/Gedochao) in [#3245](https://github.com/VirtusLab/scala-cli/pull/3245)
88+
89+
### Documentation changes
90+
* Mention the `Fix` command in the `Using directives` guide by [@dabrowski-adam](https://github.com/dabrowski-adam) in [#3239](https://github.com/VirtusLab/scala-cli/pull/3239)
91+
* Back port of documentation changes to main by [@github-actions](https://github.com/github-actions) in [#3242](https://github.com/VirtusLab/scala-cli/pull/3242)
92+
93+
### Updates
94+
* Update scala-cli.sh launcher for 1.5.1 by [@github-actions](https://github.com/github-actions) in [#3217](https://github.com/VirtusLab/scala-cli/pull/3217)
95+
* Update sttp to 3.10.0 by [@scala-steward](https://github.com/scala-steward) in [#3219](https://github.com/VirtusLab/scala-cli/pull/3219)
96+
* Update asm to 9.7.1 by [@scala-steward](https://github.com/scala-steward) in [#3223](https://github.com/VirtusLab/scala-cli/pull/3223)
97+
* Update bloop-rifle_2.13 to 2.0.3 by [@scala-steward](https://github.com/scala-steward) in [#3225](https://github.com/VirtusLab/scala-cli/pull/3225)
98+
* Update bloop-config_2.13 to 2.1.0 by [@scala-steward](https://github.com/scala-steward) in [#3228](https://github.com/VirtusLab/scala-cli/pull/3228)
99+
* chore: Update next to 3.5.2-RC2 by [@tgodzik](https://github.com/tgodzik) in [#3224](https://github.com/VirtusLab/scala-cli/pull/3224)
100+
* Update `coursier` to 2.1.14 by [@scala-steward](https://github.com/scala-steward) in [#3226](https://github.com/VirtusLab/scala-cli/pull/3226)
101+
* Update core_2.13 to 3.10.1 by [@scala-steward](https://github.com/scala-steward) in [#3229](https://github.com/VirtusLab/scala-cli/pull/3229)
102+
* Update `os-lib` to 0.11.2 by [@Gedochao](https://github.com/Gedochao) in [#3232](https://github.com/VirtusLab/scala-cli/pull/3232)
103+
* Update sbt, scripted-plugin to 1.10.3 by [@scala-steward](https://github.com/scala-steward) in [#3235](https://github.com/VirtusLab/scala-cli/pull/3235)
104+
* Update dependency to 0.2.4 by [@scala-steward](https://github.com/scala-steward) in [#3234](https://github.com/VirtusLab/scala-cli/pull/3234)
105+
* Bump Scala Next to 3.5.2 by [@Gedochao](https://github.com/Gedochao) in [#3230](https://github.com/VirtusLab/scala-cli/pull/3230)
106+
* Update os-lib to 0.11.3 by [@scala-steward](https://github.com/scala-steward) in [#3240](https://github.com/VirtusLab/scala-cli/pull/3240)
107+
* Set Scala 3.5.2 as the latest announced Scala Next version by [@Gedochao](https://github.com/Gedochao) in [#3243](https://github.com/VirtusLab/scala-cli/pull/3243)
108+
* Set Scala 3.6.1 as the Next RC version (which it effectively is) by [@Gedochao](https://github.com/Gedochao) in [#3244](https://github.com/VirtusLab/scala-cli/pull/3244)
109+
* Update dependencies in `gh-action.md` examples by [@kubukoz](https://github.com/kubukoz) in [#3249](https://github.com/VirtusLab/scala-cli/pull/3249)
110+
* Bump `scala-js-cli` to 1.17.0.1 by [@Gedochao](https://github.com/Gedochao) in [#3252](https://github.com/VirtusLab/scala-cli/pull/3252)
111+
112+
## New Contributors
113+
* [@dabrowski-adam](https://github.com/dabrowski-adam) made their first contribution in [#3239](https://github.com/VirtusLab/scala-cli/pull/3239)
114+
115+
**Full Changelog**: https://github.com/VirtusLab/scala-cli/compare/v1.5.1...v1.5.2
116+
11117
## [v1.5.1](https://github.com/VirtusLab/scala-cli/releases/tag/v1.5.1)
12118

13119
### Support for Scala 3.5.1, 3.3.4, 2.13.15 and 2.12.20

0 commit comments

Comments
 (0)