@@ -35,7 +35,7 @@ This is a **minor** release:
35
35
36
36
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.
37
37
38
- ## Linker Improvements
38
+ ## Improvements
39
39
40
40
### Reachability Analysis is parallel by default
41
41
@@ -49,19 +49,31 @@ scalaJSLinkerConfig ~= { _.withParallel(false) }
49
49
50
50
This will disable all parallelism in the linker (expect significant slowdown).
51
51
52
- ### Better Default Bridge Generation
52
+ ### Implicit conversions to js.Any for js.UndefOr in Scala 3
53
53
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 %}
56
63
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
58
69
59
70
The compiler and linker now use ` @inline ` / ` @noinline ` hints provided at the call-site.
60
71
See the [ Scaladoc for ` @inline ` ] ( https://www.scala-lang.org/api/2.13.11/scala/inline.html ) for details.
61
72
62
- ## New ECMAScript Core Types
73
+ ### Better Default Bridge Generation
63
74
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.
65
77
66
78
## Bug fixes
67
79
0 commit comments