Skip to content

Commit

Permalink
minor tweaking, changelog, site update
Browse files Browse the repository at this point in the history
  • Loading branch information
yurique committed Jul 7, 2021
1 parent f90cb0c commit 26163fb
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 16 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

### 0.13.8

* API: new: `.addSwitchingObserver` and `.addOptionalSwitchingObserver`
* API: new: `mutationObserver`
* Fix: stored vars now check if local storage is accessible
* API: observable extension methods are now source extension methods
* API: now accepting source and sink where observable and observer where expected before

### 0.13.7

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import io.laminext.util.SmartClass
import org.scalajs.dom

trait CoreSyntax
extends ObservableSyntax
extends SourceSyntax
with ObservableOfBooleanSyntax
with ObservableOfOptionSyntax
with SignalSyntax
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package io.laminext.syntax

import com.raquo.laminar.api.L._
import io.laminext.core.ops.source.SourceOfOptionOps
import io.laminext.core.ops.source.SourceOps

trait ObservableSyntax {
trait SourceSyntax {

implicit def syntaxObservable[A](
s: Observable[A]
implicit def syntaxSource[A](
s: Source[A]
): SourceOps[A] = new SourceOps[A](s)

}
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ val obs: Observable[Boolean] = ???

div(
obs.childWhenTrue {
span("signal is true")
span("source emitted true")
},
obs.childWhenFalse {
span("signal is false")
span("source emitted false")
}
)
```
Expand All @@ -46,10 +46,10 @@ val obs: Observable[Boolean] = ???

div(
obs.doWhenTrue {
dom.console.log("signal is true")
dom.console.log("source emitted true")
},
obs.doWhenFalse {
dom.console.log("signal is false")
dom.console.log("source emitted false")
}
)
```
1 change: 1 addition & 0 deletions website/src/main/resources/doc/news/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
* [v0.13.8 release](/news/v0-13-8) (8.07.2021)
* [v0.13.7 release](/news/v0-13-7) (5.07.2021)
* [v0.13.6 bug-fix release](/news/v0-13-6) (15.06.2021)
* [v0.13.5 release](/news/v0-13-5) (06.06.2021)
Expand Down
8 changes: 8 additions & 0 deletions website/src/main/resources/doc/news/v0.13.8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# v0.13.8 release

* 08.07.2021

* API: new: `mutationObserver`
* Fix: stored vars now check if local storage is accessible
* API: observable extension methods are now source extension methods
* API: now accepting source and sink where observable and observer where expected before
11 changes: 6 additions & 5 deletions website/src/main/scala/io/laminext/site/Site.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ object Site {
SiteModule(
path = "core",
index = docPage("", "Core", FileAsString("/doc/core/index.md")),
"Observable" -> Seq(
docPage("observable", "Observable", FileAsString("/doc/core/observable.md")),
docPage("observable-of-boolean", "Observable of Boolean", FileAsString("/doc/core/observable-of-boolean.md")),
docPage("observable-of-option", "Observable of Option", FileAsString("/doc/core/observable-of-option.md")),
docPage("observable-of-either", "Observable of Either", FileAsString("/doc/core/observable-of-either.md")),
"Source" -> Seq(
docPage("source", "Source", FileAsString("/doc/core/source.md")),
docPage("source-of-boolean", "Source of Boolean", FileAsString("/doc/core/source-of-boolean.md")),
docPage("source-of-option", "Source of Option", FileAsString("/doc/core/source-of-option.md")),
docPage("source-of-either", "Source of Either", FileAsString("/doc/core/source-of-either.md")),
),
"Signal" -> Seq(
docPage("signal", "Signal", FileAsString("/doc/core/signal.md")),
Expand Down Expand Up @@ -174,6 +174,7 @@ object Site {
path = "news",
index = docPage("", "News", FileAsString("/doc/news/index.md")),
"" -> Seq(
docPage("v0-13-8", "v0.13.8", FileAsString("/doc/news/v0.13.8.md")),
docPage("v0-13-7", "v0.13.7", FileAsString("/doc/news/v0.13.7.md")),
docPage("v0-13-6", "v0.13.6", FileAsString("/doc/news/v0.13.6.md")),
docPage("v0-13-5", "v0.13.5", FileAsString("/doc/news/v0.13.5.md")),
Expand Down
2 changes: 1 addition & 1 deletion website/src/main/scala/io/laminext/site/TemplateVars.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package io.laminext.site
object TemplateVars {

val vars = Seq(
"laminextVersion" -> "0.13.7"
"laminextVersion" -> "0.13.8"
)

def apply(s: String): String =
Expand Down

0 comments on commit 26163fb

Please sign in to comment.