Skip to content

Commit 5c17644

Browse files
committed
Review suggestions
1 parent def6ccd commit 5c17644

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

_posts/news/2023-09-30-announcing-scalajs.1.14.0.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ This is a **minor** release:
3535

3636
As a reminder, libraries compiled with 0.6.x cannot be used with Scala.js 1.x; they must be republished with 1.x first.
3737

38-
## Linker Improvements
38+
## Improvements
3939

4040
### Reachability Analysis is parallel by default
4141

@@ -49,19 +49,31 @@ scalaJSLinkerConfig ~= { _.withParallel(false) }
4949

5050
This will disable all parallelism in the linker (expect significant slowdown).
5151

52-
### Better Default Bridge Generation
52+
### Implicit conversions to js.Any for js.UndefOr in Scala 3
5353

54-
The linker will now avoid generating a default bridge in a subclass if an existing bridge in the superclass can be used.
55-
This can lead to minor code-size improvements.
54+
Because `js.UndefOr` is implemented differently in Scala 3, implicit conversion to `js.Any` was not available.
55+
56+
Thanks to @armanbilge, `js.UndefOr[T]` now implicitly converts to `js.Any`, provided `T` is convertiable to `js.Any`.
57+
58+
For example, the following now compiles on Scala 3:
59+
60+
{% highlight scala %}
61+
val x: js.Any = js.defined("")
62+
{% endhighlight %}
5663

57-
## Call-site inline
64+
### New ECMAScript Core Types
65+
66+
* [AggregateError](https://www.scala-js.org/api/scalajs-library/2.14.0/scala/scalajs/js/AggregateError.html) thanks to @armanbilge
67+
68+
### Call-site inline
5869

5970
The compiler and linker now use `@inline` / `@noinline` hints provided at the call-site.
6071
See the [Scaladoc for `@inline`](https://www.scala-lang.org/api/2.13.11/scala/inline.html) for details.
6172

62-
## New ECMAScript Core Types
73+
### Better Default Bridge Generation
6374

64-
* [AggregateError](https://www.scala-js.org/api/scalajs-library/2.14.0/scala/scalajs/js/AggregateError.html) thanks to @armanbilge
75+
The linker will now avoid generating a default bridge in a subclass if an existing bridge in the superclass can be used.
76+
This can lead to minor code-size improvements.
6577

6678
## Bug fixes
6779

0 commit comments

Comments
 (0)