Migration from 7.x to 8.x
This is the list of incompatibilities you may encounter when migrating your application to KVision 8.0.0.
The
kvision-redux
module has been removed, because the kotlin-redux library (part of the kotlin-wrappers project) has been discontinued. You need to changekvision-redux
module tokvision-redux-kotlin
in yourbuild.gradle.kts
file. The API is almost the same, just usecreateTypedReduxStore
instead ofcreateReduxStore
function. Unfortunately there is no way to use additional middleware from the JS Redux ecosystem with ReduxKotlin module.Because of different format of the webpack proxy configuration in the Kotlin Gradle Plugin 2.0.20, it is recommended to simplify the webpack configuration used inside
build.gradle.kts
and move more advanced stuff to the*.js
files insidewebpack.config.d
directory. RemovedevServer = KotlinWebpackConfig.DevServer(...)
block from yourbuild.gradle.kts
file. Modify yourwebpack.config.d/webpack.js
file to match that file in the template project: webpack.js. If your project is a fullstack application, you will also needwebpack.config.d/proxy.js
file.Because of changes in the behaviour of the Gradle tasks in Kotlin 2.0.20, you may notice that all files in your
src/jsMain/resources
directory are now copied to the destination zip file. It's not always the desired behaviour, because yourresources
folder contains files which are processed by webpack (css, images, hbs). You can exclude files from copying by creating amodules
directory and moving all your files there (remember to also fix yourrequire
and@JsModule
paths).
Last updated