Releases: supabase-community/supabase-kt
Releases · supabase-community/supabase-kt
2.4.2
Changes
Auth
- Remove OtpType deprecation notice and clarify documentation by @jan-tennert in #595
TheSIGNUP
andMAGIC_LINK
OtpType
s are no longer deprecated as they are used for resending OTPs. - Store session before emitting Authenticated state by @iruizmar in #600
This fixes a bug where it's possible to cancel any sign-in method and thesessionStatus
gets set toAuthenticated
without the session actually saving to storage due to the cancellation.
2.4.1-wasm0
Note
You need this repository because an EAP Ktor version is used: https://maven.pkg.jetbrains.space/public/p/ktor/eap
Ktor version: 3.0.0-beta-2-eap-932
Changes
- Merge
2.3.1
-2.4.1
changes into wasm
2.4.1
Changes
Compose Auth UI
Postgrest
- Include columns in upsert request & change default parameter value for
defaultToNull
totrue
by @jan-tennert in #590
This fixes an issue when upserting a list of objects where some objects might not have all keys.
New Contributors
2.4.0
Changes
Core
- Update Kotlin to 2.0.0-RC2 and Compose to 1.6.10-rc01 by @jan-tennert in #581
- Rethrow
CancellationException
s in network requests by @jan-tennert in #578 - Log the actual error if a network request fails by @jan-tennert in 0c93053
Auth
- Auth changes & fixes by @jan-tennert in #568
- The method
Auth#linkIdentity
will now return the OAuth URL if the config valueExternalAuthConfigDefaults.automaticallyOpenUrl
is set to false.
Otherwise, null. - Fix the
autoRefresh
default value forAuth#importSession
not being set toconfig.alwaysAutoRefresh
- Add
codeVerifier
parameter toMemoryCodeVerifierCache
to be able to set an initial value - Add missing
captchaToken
config option in theOTP
auth provider
- The method
- Change the default session key for the
SettingsSessionManager
to work with multiple instances on the same device and add akey
parameter to the constructor in case you want a custom key by @MohamedRejeb in #572
Realtime
- Add new experimental extension functions to retrieve initial data and listen for updates without using realtime channels by @jan-tennert #579:
//Not a suspending function, subscribing and unsubscribing is handled internally
val myProductFlow: Flow<Product> = supabase.from("products").selectSingleValueAsFlow(Product::id) {
Product::id eq 2
}.collect {
println(it)
}
val productsFlow: Flow<List<Product>> = supabase.from("products").selectAsFlow(Product::id, filter = FilterOperation("id", FilterOperator.GT, 2)).collect {
println(it)
}
This requires both Realtime
and Postgrest
to be installed within the SupabaseClient.
Storage
Functions
- Add new
region
parameter to invoke functions which allows changing the region where the Edge Function will be invoked in. Defaults toFunctions.Config#defaultRegion
(which isFunctionRegion.ANY
) by @jan-tennert in #580
2.4.0-rc-1
Note
Documentation will update shortly, after that I'll release the version.
Changes
Core
- Rework & clean up build files by @jan-tennert in #586
2.4.0-beta-1
Changes
Core
- Update Kotlin to 2.0.0-RC2 and Compose to 1.6.10-rc01 by @jan-tennert in #581
- Rethrow
CancellationException
s in network requests by @jan-tennert in #578 - Log the actual error if a network request fails by @jan-tennert in 0c93053
Auth
- Auth changes & fixes by @jan-tennert in #568
- The method
Auth#linkIdentity
will now return the OAuth URL if the config valueExternalAuthConfigDefaults.automaticallyOpenUrl
is set to false.
Otherwise, null. - Fix the
autoRefresh
default value forAuth#importSession
not being set toconfig.alwaysAutoRefresh
- Add
codeVerifier
parameter toMemoryCodeVerifierCache
to be able to set an initial value - Add missing
captchaToken
config option in theOTP
auth provider
- The method
- Change the default session key for the
SettingsSessionManager
to work with multiple instances on the same device and add akey
parameter to the constructor in case you want a custom key by @MohamedRejeb in #572
Realtime
- Add new experimental extension functions to retrieve initial data and listen for updates without using realtime channels by @jan-tennert #579:
//Not a suspending function, subscribing and unsubscribing is handled internally
val myProductFlow: Flow<Product> = supabase.from("products").selectSingleValueAsFlow(Product::id) {
Product::id eq 2
}.collect {
println(it)
}
val productsFlow: Flow<List<Product>> = supabase.from("products").selectAsFlow(Product::id, filter = FilterOperation("id", FilterOperator.GT, 2)).collect {
println(it)
}
This requires both Realtime
and Postgrest
to be installed within the SupabaseClient.
Storage
Functions
- Add new
region
parameter to invoke functions which allows changing the region where the Edge Function will be invoked in. Defaults toFunctions.Config#defaultRegion
(which isFunctionRegion.ANY
) by @jan-tennert in #580
2.3.1
Changes
Storage
- Make the default value for
Storage.Config.resumable#cache
null
to prevent a NullPointerException in testing enviroments. (If it's set to null, the default cache implementation will be used) - Fix
BucketApi#createSignedUploadUrl
returning an invalid url - Fix
BucketApi#createSignedUrl
not correctly adding transformation parameters - Fix
BucketApi#createSignedUrl
returning an invalid url - Fix
BucketListFilter#sortBy
not working correctly - Add missing
destinationBucket
parameter toBucketApi#copy
andBucketApi#move
by @jan-tennert in #562
Auth
- Move
enableLifecycleCallbacks
to the common source set (still only used on Android) by @jan-tennert in #561 - Add
AuthConfig#minimalSettings
(useful for servers or testing, disabling session storage and uses only in-memory caches) by @jan-tennert in #561
Realtime
- Remove the suspend modifier for
RealtimeChannel#postgresListDataFlow
by @jan-tennert in #563 - When a postgres flow is closed, the joining payload will now be correctly cleaned by @jan-tennert in #563
2.3.0
Changes
Core
- Update Kotlin to
2.0.0-RC1
Postgrest
- Add referenced table parameter to
or
andand
by @jan-tennert in #551 - Fix nested
or
blocks working incorrectly - Auto remove line breaks and white spaces when unquoted on Columns.Raw by @iruizmar in #544
- Add support for using GET when calling database functions by @jan-tennert in #538
There is now amethod
parameter which takes in aRpcMethod
. This can either bePOST
,HEAD
orGET
. The head parameter has been removed.
Realtime
- Stabilize new flow presence and postgres methods by @jan-tennert in #535
Auth
- Stabilize linking identities and signing in anonymously by @jan-tennert in #535
- Rename
Auth#modifyUser
toAuth#updateUser
by @jan-tennert in #534 - Return full a full
UserInfo
on sign up by @jan-tennert in #528
ThesignUpWith
method will now return aUserInfo
object for theEmail
,Phone
andIDToken
instead of separate Result objects. - Allow customizing the custom tab intent on Android by @jan-tennert in #529
New Contributors
2.3.0-rc-2
Changes
Core
- Update Kotlin to
2.0.0-RC1
Postgrest
- Add referenced table parameter to
or
andand
by @jan-tennert in #551 - Fix nested
or
blocks working incorrectly