This release adds a few quality of life features and bumps up some versions.
[versions]
compose-runtime = "1.12.0"
kobweb = "0.25.1"
kotlin = "2.4.10"
[libraries]
compose-runtime = { module = "androidx.compose.runtime:runtime", version.ref = "compose-runtime" }Important
Planning to upgrade? Review instructions in the README.
Frontend
-
Added support for the recently added HTTP QUERY method
- It's like
GETbut supports setting a payload body (finally!)
- It's like
-
New CSS properties and modifiers
animation-compositionblock-sizeborder-spacingcontain-intrinsic-width,contain-intrinsic-height,contain-intrinsic-sizetext-rendering
Workers
- Workers now respect a project's base path if it is set.
Backend
- Fixed server logs not getting generated (accidentally broken in 0.25.0)
- You can now use
printlnandSystem.errin your@Apiendpoints to generateinfoandwarnlogs.- Convenient if you are in a situation where you want quick debugging in a function that doesn't have access to a
ctx.logger.
- Convenient if you are in a situation where you want quick debugging in a function that doesn't have access to a
Gradle
-
Kobweb now runs multiple threads in parallel when doing exports, which can easily halve the total time it takes, or more, based on how powerful your machine is.
- By default, we check how many cores your machine has and use 1/2 of them.
- The number of threads we use can be configured by setting the
kobweb.app.export.numThreadsproperty in your build script, or (for CI convenience) via theKOBWEB_EXPORT_NUM_THREADSenvironment variable.- If using the environment variable, we also accept string values: "max" (all cores), "high" (75% of all cores), and "half"
-
Fixed all detected "Isolated Projects" issues in the Kobweb plugins (we think!)
- In Gradle 9.7.0, the build system finally graduated their "Isolated Projects" feature from experimental to incubating. This feature enforces strict rules that, when followed, allowing Gradle to safely process projects in parallel. This should bring performance improvements especially to large projects.
- It will likely be another year or more before this feature is actually usable for most end users, but at this point Kobweb plugins shouldn't end up in any "Isolated Project failure" callstacks (let us know if they do!)
Full Changelog: v0.25.0...v0.25.1