From 319b6fb0caf2bd4f8180e41882406f3b4e14a702 Mon Sep 17 00:00:00 2001 From: Nikita Gazarov Date: Thu, 12 Dec 2024 21:20:52 -0800 Subject: [PATCH] Docs: Towards 9.0.0 --- CHANGELOG.md | 5 +++-- README.md | 2 +- build.sbt | 2 +- project/Versions.scala | 6 +++--- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a88321..c72fd76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,14 +8,15 @@ _You can now [sponsor](https://github.com/sponsors/raquo) Laminar / Airstream / * **Build: Waypoint depends on Laminar now (not just Airstream)** * New: `navigateTo` example method from the docs is now available on `Router` - * Unlike the example, it does not reset scroll position – do that yourself by observing to `currentPageSignal` + * Unlike the previous example in the docs, it does not reset scroll position – do that yourself by observing `currentPageSignal` * _**Migration:** `Router` constructor is now a single argument list, `popStateEvents` and `owner` now have default values._ -* **New: Total and Partial route types, to improve type-safety for the total routes.** +- **New: Total and Partial route types, to improve type-safety for the total routes – by [Artūras Šlajus](https://github.com/arturaz/) – thank you!** * New: `route.argsFromPageTotal` and `route.relativeUrlForPage` available on `Route.Total` subtype of `Route`. * _**Migration:** If `Route.static` complains that it can't find `ValueOf` for your page type, it's because your type is not a singleton like `object LoginPage`, so we can't make a total route for it. Use `Route.staticPartial` instead._ * New: `Router.replacePageTitle` * Fix: `SplitRender.signal` should be a lazy val, not def. * Build: scalamft config +* Note: Airstream has a new [Split by pattern match feature](https://github.com/raquo/Airstream/?tab=readme-ov-file#splitting-with-pattern-match) that you may want to use instead of SplitRender in Scala 3. It's similar in functionality, but macro-based, and more robust. #### v8.0.1 – Aug 2024 * Build: Update URL DSL to 0.6.2 diff --git a/README.md b/README.md index e4053a6..76983b5 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Waypoint can be used with other Scala.js libraries too, not just Laminar. More o Waypoint docs are not as exhaustive as Laminar's, but we have examples, and Waypoint is very, very small, so this shouldn't be a big deal. Just make sure you understand how the browser's History API works. - "com.raquo" %%% "waypoint" % "8.0.1" // Depends on Airstream 17.0.0 & URL DSL 0.6.2 + "com.raquo" %%% "waypoint" % "9.0.0" // Depends on Laminar 17.2.0 & URL DSL 0.6.2 diff --git a/build.sbt b/build.sbt index b83bda1..3666969 100644 --- a/build.sbt +++ b/build.sbt @@ -80,7 +80,7 @@ lazy val jsSettings = Seq( libraryDependencies ++= Seq( "org.scala-js" %%% "scalajs-dom" % Versions.ScalaJsDom, "com.raquo" %%% "laminar" % Versions.Laminar, - "com.raquo" %%% "airstream" % Versions.Airstream + //"com.raquo" %%% "airstream" % Versions.Airstream ), scalacOptions ++= sys.env.get("CI").map { _ => val localSourcesPath = (LocalRootProject / baseDirectory).value.toURI diff --git a/project/Versions.scala b/project/Versions.scala index 6c18986..cd25698 100644 --- a/project/Versions.scala +++ b/project/Versions.scala @@ -1,14 +1,14 @@ object Versions { - val Scala_2_13 = "2.13.14" + val Scala_2_13 = "2.13.15" val Scala_3 = "3.3.1" // -- Dependencies -- - val Laminar = "17.0.0" + val Laminar = "17.2.0" - val Airstream = "17.2.0-M2-SNAPSHOT" + //val Airstream = "17.2.0" val UrlDsl = "0.6.2"