You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove RealtimeChannel#join and add new RealtimeChannel#subscribe method, which does the same but also connects to the realtime websocket automatically
Add Realtime.Config#connectOnSubscribe to disable this behaviour
Rename RealtimeChannel#leave to RealtimeChannel#unsubscribe
Add SupabaseClient#channel extension function delegating to Realtime#channel
Rename Realtime.Status to reflect the new methods:
Remove upsert parameter in insert and update methods and add new upsert method
Remove returning, count and single parameters from postgrest methods
Rework postgrest methods:
val result = supabase.postgrest["messages"].select {
single() //receive an object rather than an array
count(Count.EXACT) //receive amount of database entries
limit(10) //limit amount of results
range(2, 3) //change range of results
select() //return the data when updating/deleting/upserting (same as settings 'returning' to REPRESENTATION before)
filter {
eq("id", 1)
}
}
Add new methods to this builder:
val result = supabase.postgrest["messages"].select {
csv() //receive data as csv
geojson() //receive data as geojson
explain(/**/) //debug queries
}
Rename PostgrestResult#count to PostgrestResult#countOrNull
Reanem PostgrestResult#range to PostgrestResult#rangeOrNull
Add SupabaseClient#from delegating to Postgrest#from
Rename PostgrestResult#body to PostgrestResult#data
Change type of PostgrestResult#data to String
Allow destructuring of PostgrestResult: (especially handy when dealing with datatypes other than json)
val (data, headers) = supabase.from("countries").select {
csv()
}
This new plugin can be added to a Coil ImageLoader to easily display images from public and non-public buckets from storage (Android only)
(in #323 by @jan-tennert). Learn more
New module: Compose-ImageLoader Integration
This new plugin can be added to a ImageLoader to easily display images from public and non-public buckets from storage (All Compose targets) (in #335 by @jan-tennert). Learn more
This discussion was created from the release 2.0.0.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Note
Migration guide
Documentation
Changes
Core
GoTrue
GoTrue
plugin toAuth
GoTrueConfig
toAuthConfig
SupabaseClient#gotrue
toSupabaseClient#auth
Auth#loginWith
toAuth#signInWith
Auth#logout
toAuth#signOut
LogoutScope
toSignOutScope
Auth#sendOtpTo
and add newOTP
auth provider (in Refactor OTP authentication #350 by @jan-tennert):AdminUserUpdateBuilder#phoneNumber
toAdminUserUpdateBuilder#phone
UserUpdateBuilder#phoneNumber
toUserUpdateBuilder#phone
Phone.Config#phoneNumber
toPhone.Config#phone
Auth#sendRecoveryEmail
toAuth#resetPasswordForEmail
and add PKCE support (in Rename sendRecoveryEmail method and add PKCE support #367 by @jan-tennert)Auth#linkIdentity(OAuthProvider)
- The works the same assignInWith(OAuthProvider)
but links an additional OAuth provider to an authenticated userAuth#unlinkIdentity(identityId)
Auth#currentIdentitiesOrNull
Realtime
Realtime#createChannel
toRealtime#channel
RealtimeChannel#join
and add newRealtimeChannel#subscribe
method, which does the same but also connects to the realtime websocket automaticallyRealtime.Config#connectOnSubscribe
to disable this behaviourRealtimeChannel#leave
toRealtimeChannel#unsubscribe
SupabaseClient#channel
extension function delegating toRealtime#channel
Realtime.Status
to reflect the new methods:UNSUBSCRIBED
SUBSCRIBING
SUBSCRIBED
UNSUBSCRIBING
Postgrest
upsert
parameter ininsert
andupdate
methods and add newupsert
methodreturning
,count
andsingle
parameters from postgrest methodsPostgrestResult#count
toPostgrestResult#countOrNull
PostgrestResult#range
toPostgrestResult#rangeOrNull
SupabaseClient#from
delegating toPostgrest#from
PostgrestResult#body
toPostgrestResult#data
PostgrestResult#data
toString
PostgrestResult
: (especially handy when dealing with datatypes other than json)Compose Auth
ComposeAuth#rememberLoginWithGoogle
toComposeAuth#rememberSignInWithGoogle
ComposeAuth#rememberLoginWithApple
toComposeAuth#rememberSignInWithApple
ComposeAuth#rememberSignOut
toComposeAuth#rememberSignOutWithGoogle
New module: Coil Integration
This new plugin can be added to a Coil ImageLoader to easily display images from public and non-public buckets from storage (Android only)
(in #323 by @jan-tennert).
Learn more
New module: Compose-ImageLoader Integration
This new plugin can be added to a ImageLoader to easily display images from public and non-public buckets from storage (All Compose targets) (in #335 by @jan-tennert).
Learn more
This discussion was created from the release 2.0.0.
Beta Was this translation helpful? Give feedback.
All reactions