supabase-kt
supabase-kt copied to clipboard
Add support for WASM-JS and migrate to Ktor 3.0.0
What kind of change does this PR introduce?
Feature (closes #86)
What is the current behavior?
N/A
What is the new behavior?
New wasm-js
target for supabase-kt
Supported modules:
- [x] supabase-kt
- [x] gotrue-kt
- [x] storage-kt
- [x] functions-kt
- [x] postgrest-kt
- [x] realtime-kt
- [x] compose-auth
- [x] compose-auth-ui
- [x] apollo-graphql
Note: I'll probably add wasm-js to supported samples once this is merged.
Additional context
The implementation should be almost the same as the js browser implementation. wasm-wasi
support may also come if the libraries support it.
Latest compatible build: 2.4.2-wasm0
Note: A pre-release version for Ktor is used, waiting for a full release to merge this PR.
Putting this on hold until official KotlinX versions release.
KotlinX Serialization, Coroutines and atomicfu now have official support, ktor and ~coroutines~ to go 👍
ktor has an experimental wasm2 build available here: https://youtrack.jetbrains.com/issue/KTOR-5587/Ktor-client-for-Kotlin-Wasm#focus=Comments-27-8670434.0-0
ktor has an experimental wasm2 build available here: https://youtrack.jetbrains.com/issue/KTOR-5587/Ktor-client-for-Kotlin-Wasm#focus=Comments-27-8670434.0-0
I know, the only problem is that these builds do not support some Kotlin targets required for this project. I might publish separate wasm builds until the official release.
ktor has an experimental wasm2 build available here: https://youtrack.jetbrains.com/issue/KTOR-5587/Ktor-client-for-Kotlin-Wasm#focus=Comments-27-8670434.0-0
I know, the only problem is that these builds do not support some Kotlin targets required for this project. I might publish separate wasm builds until the official release.
Update: Published a compatible build 2.0.2-wasm0
Thank you very much!
I'll definitely squash that PR.