Skip to content

0.9.0

Choose a tag to compare

@frankois944 frankois944 released this 07 Dec 07:51
· 8 commits to main since this release
3e8be3c

New

  • All browsers targets are using now sqlite database instead of Indexdb / localStorage.
  • Increase Kotlin to "2.2.20" as required by wasm.
  • Require at least sqldelight 2.1.0

Requirement

JS & WasmJs

  • Update your Gradle config
// {project}/build.gradle.kts
wasmJsMain.dependencies {
    implementation(devNpm("copy-webpack-plugin", "9.1.0"))
}
// OR
jsMain.dependencies {
    implementation(devNpm("copy-webpack-plugin", "9.1.0"))
}
  • Update or Create your webpack folder
// {project}/webpack.config.d/sqljs.js
config.resolve = {
    fallback: {
        fs: false,
        path: false,
        crypto: false,
    }
};

const CopyWebpackPlugin = require('copy-webpack-plugin');
config.plugins.push(
    new CopyWebpackPlugin({
        patterns: [
            '../../node_modules/sql.js/dist/sql-wasm.wasm'
        ]
    })
);