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-reduxmodule has been removed, because the kotlin-redux library (part of the kotlin-wrappers project) has been discontinued. You need to changekvision-reduxmodule tokvision-redux-kotlinin yourbuild.gradle.ktsfile. The API is almost the same, just usecreateTypedReduxStoreinstead ofcreateReduxStorefunction. 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.ktsand move more advanced stuff to the*.jsfiles insidewebpack.config.ddirectory. RemovedevServer = KotlinWebpackConfig.DevServer(...)block from yourbuild.gradle.ktsfile. Modify yourwebpack.config.d/webpack.jsfile to match that file in the template project: webpack.js. If your project is a fullstack application, you will also needwebpack.config.d/proxy.jsfile.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/resourcesdirectory are now copied to the destination zip file. It's not always the desired behaviour, because yourresourcesfolder contains files which are processed by webpack (css, images, hbs). You can exclude files from copying by creating amodulesdirectory and moving all your files there (remember to also fix yourrequireand@JsModulepaths).