Skip to content

Commit 37a2352

Browse files
committed
Seskar 4.34.0
1 parent ed3c916 commit 37a2352

File tree

6 files changed

+4275
-20
lines changed

6 files changed

+4275
-20
lines changed

README.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ To add Seskar to your project, you need to add the following configuration to yo
1414

1515
```kotlin
1616
plugins {
17-
kotlin("multiplatform") version "2.3.10"
18-
id("io.github.turansky.seskar") version "4.32.0"
17+
kotlin("multiplatform") version "2.3.10"
18+
id("io.github.turansky.seskar") version "4.34.0"
1919
}
2020
```
2121

2222
### Kotlin/JS requirements
2323

2424
* Target -`es2015`
25-
* [example](https://github.com/JetBrains/kotlin-wrappers/blob/fdc8fb9b8ac2b13ba151449e13977a0327e7e3df/examples/buildSrc/src/main/kotlin/kotlin-conventions.gradle.kts#L35)
25+
* [example](https://github.com/JetBrains/kotlin-wrappers/blob/fdc8fb9b8ac2b13ba151449e13977a0327e7e3df/examples/buildSrc/src/main/kotlin/kotlin-conventions.gradle.kts#L35)
2626
* Granularity - `per-file`
27-
* [example](https://github.com/JetBrains/kotlin-wrappers/blob/fdc8fb9b8ac2b13ba151449e13977a0327e7e3df/examples/gradle.properties#L7)
27+
* [example](https://github.com/JetBrains/kotlin-wrappers/blob/fdc8fb9b8ac2b13ba151449e13977a0327e7e3df/examples/gradle.properties#L7)
2828

2929
## Lazy functions
3030

@@ -67,7 +67,7 @@ sourceSets {
6767
// App.kt
6868
suspend fun main() {
6969
console.log("App start!")
70-
70+
7171
val value = if (Random.nextDouble() > 0.5) {
7272
createCalculationWithHeavyLibrary()
7373
} else {
@@ -76,14 +76,16 @@ suspend fun main() {
7676

7777
console.log("Value: $value")
7878
}
79+
```
7980

81+
```kotlin
8082
// createCalculationWithHeavyLibrary.kt
8183
import js.lazy.Lazy
8284
import js.lazy.LazyFunction
8385

8486
/**
8587
* Function will be located in separate JS chunk
86-
*/
88+
*/
8789
@Lazy
8890
val createCalculationWithHeavyLibrary = LazyFunction<Int> {
8991
val calculator = HeavyCalculator()
@@ -102,7 +104,9 @@ val Content = FC {
102104
MyHeavyComponent1()
103105
MyHeavyComponent2()
104106
}
107+
```
105108

109+
```kotlin
106110
// App.kt
107111
val App = FC {
108112
Header()
@@ -349,16 +353,16 @@ import seskar.js.JsRawValue
349353
""
350354
sealed external interface GraphItemType {
351355
companion object {
352-
@JsRawValue("1")
356+
@JsRawValue("1")
353357
val NODE: GraphItemType
354358

355-
@JsRawValue("2")
359+
@JsRawValue("2")
356360
val EDGE: GraphItemType
357361

358-
@JsRawValue("4")
362+
@JsRawValue("4")
359363
val PORT: GraphItemType
360364

361-
@JsRawValue("8")
365+
@JsRawValue("8")
362366
val LABEL: GraphItemType
363367
}
364368
}

isolated-test/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
kotlin.version=2.3.10
22
kfc.version=16.7.0
3-
seskar.version=4.32.0
3+
seskar.version=4.34.0

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

seskar/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group=io.github.turansky.seskar
2-
version=4.32.1-SNAPSHOT
2+
version=4.34.1-SNAPSHOT
33
kfc.pom.inception.year=2021
44
kfc.pom.url=https\://github.com/turansky/seskar
55
kotlin.version=2.3.10

0 commit comments

Comments
 (0)