Skip to content

Commit 0ce9bb1

Browse files
authored
Merge pull request #641 from sjrd/upgrades-in-vite-tutorial
Upgrades in the Vite-Laminar-ScalablyTyped tutorial.
2 parents 0190f33 + 6a7f7d4 commit 0ce9bb1

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ versions:
6868
scalaJSBinary: 1
6969
scalaJS06x: 0.6.33
7070
scalaJS06xBinary: 0.6
71-
scalaJSDOM: 2.4.0
71+
scalaJSDOM: 2.8.0

doc/tutorial/laminar.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ We will elaborate on this point later.
2626
To start off, we add a dependency on Laminar in our `build.sbt`:
2727

2828
{% highlight diff %}
29-
libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "2.4.0",
29+
libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "{{ site.versions.scalaJSDOM }}",
3030
+
3131
+ // Depend on Laminar
32-
+ libraryDependencies += "com.raquo" %%% "laminar" % "15.0.1",
32+
+ libraryDependencies += "com.raquo" %%% "laminar" % "17.0.0",
3333
)
3434
{% endhighlight %}
3535

@@ -263,10 +263,10 @@ We first add the following dependency on [MUnit](https://scalameta.org/munit/),
263263

264264
{% highlight diff %}
265265
// Depend on Laminar
266-
libraryDependencies += "com.raquo" %%% "laminar" % "15.0.1",
266+
libraryDependencies += "com.raquo" %%% "laminar" % "17.0.0",
267267
+
268268
+ // Testing framework
269-
+ libraryDependencies += "org.scalameta" %%% "munit" % "0.7.29" % Test,
269+
+ libraryDependencies += "org.scalameta" %%% "munit" % "1.0.0" % Test,
270270
)
271271
{% endhighlight %}
272272

doc/tutorial/scalablytyped.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $ npm install -D @types/chart.js@2.9.29 typescript@4.9.5
3737
In `project/plugins.sbt`, we add a dependency on ScalablyTyped:
3838

3939
{% highlight scala %}
40-
addSbtPlugin("org.scalablytyped.converter" % "sbt-converter" % "1.0.0-beta41")
40+
addSbtPlugin("org.scalablytyped.converter" % "sbt-converter" % "1.0.0-beta44")
4141
{% endhighlight %}
4242

4343
Finally, in `build.sbt`, we configure ScalablyTyped on our project:
@@ -47,10 +47,10 @@ Finally, in `build.sbt`, we configure ScalablyTyped on our project:
4747
.enablePlugins(ScalaJSPlugin) // Enable the Scala.js plugin in this project
4848
+ .enablePlugins(ScalablyTypedConverterExternalNpmPlugin)
4949
.settings(
50-
scalaVersion := "3.2.2",
50+
scalaVersion := "3.3.3",
5151
[...]
5252
// Testing framework
53-
libraryDependencies += "org.scalameta" %%% "munit" % "0.7.29" % Test,
53+
libraryDependencies += "org.scalameta" %%% "munit" % "1.0.0" % Test,
5454
+
5555
+ // Tell ScalablyTyped that we manage `npm install` ourselves
5656
+ externalNpm := baseDirectory.value,

doc/tutorial/scalajs-vite.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ In the subdirectory `livechart/project/`, we add two files: `build.properties` a
104104
* `project/build.properties`: set the version of sbt
105105

106106
{% highlight plaintext %}
107-
sbt.version=1.8.2
107+
sbt.version=1.10.0
108108
{% endhighlight %}
109109

110110
* `project/plugins.sbt`: declare sbt plugins; in this case, only sbt-scalajs
@@ -123,7 +123,7 @@ import org.scalajs.linker.interface.ModuleSplitStyle
123123
lazy val livechart = project.in(file("."))
124124
.enablePlugins(ScalaJSPlugin) // Enable the Scala.js plugin in this project
125125
.settings(
126-
scalaVersion := "3.2.2",
126+
scalaVersion := "3.3.3",
127127

128128
// Tell Scala.js that this is an application with a main method
129129
scalaJSUseMainModuleInitializer := true,

0 commit comments

Comments
 (0)