Skip to content

Commit

Permalink
Docs: Towards 9.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
raquo committed Dec 13, 2024
1 parent d302ab6 commit 319b6fb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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



Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions project/Versions.scala
Original file line number Diff line number Diff line change
@@ -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"

Expand Down

0 comments on commit 319b6fb

Please sign in to comment.