Releases: supabase-community/supabase-kt
2.5.4
2.5.3
2.5.2
Changes
Realtime
- fix(realtime): add private to Realtime by @grdsdev in #642
Add support for specifying if a channel is private viaRealtimeChannelBuilder#isPrivate
Compose Auth
- Fix Google sign in prompt in composeAuth by @Aaron246 in #648
- fix(auth): fix sign in with Apple in ComposeAuth by @grdsdev in #654
New Contributors
2.5.1
Note
Thanks to @manriif you can now write & deploy Supabase Edge Functions completely in Kotlin via Kotlin/JS! Check out the supabase-edge-functions-kt repository for more information!
Changes
Auth
- Ignore certain status codes when signing out a user by @jan-tennert in #633
Failure of signing out because of invalid/expired JWTs will now be ignored and the local session cleared.
2.5.0
Changes
Auth
-
Add error code enum for Auth API errors by @jan-tennert in #618
All rest errors containing aerror_codefield will now throw aAuthRestExceptionrather than genericBadRequestExceptions, etc.
AuthRestExceptions contain aerrorCodefield of the typeAuthErrorCodecontaining all known error codes.
Two error codes have their own exceptions (but obviously inherit fromAuthRestException):AuthWeakPasswordExceptionandAuthSessionMissingException.
API errors not containing this field will throw the generic exceptions. -
Handle
weak_passwordandsession_not_foundauth error codes by @jan-tennert in #596
There is now a new subclass ofRestException:AuthRestExceptonwhich will be a super class for exceptions based on error codes. Currently, there are two new exceptions:AuthWeakPasswordExceptionandAuthSessionMissingException
Postgrest
- Add columns header to
PostgrestQueryBuilder#insertby @jan-tennert in #611
This fixes an issue when inserting a list of objects where some objects might not have all keys. - Add
defaultToNullparameter toPostgrestQueryBuilder#insert
Realtime
- Use
PostgrestspropertyConversionMethodfor getting the property name of primary keys - Add the possibility to have a multi-column PK in realtime by @iruizmar in #614
- Fix presences updates for
RealtimeChannel#presenceDataFlowworking incorrectly by @JOsacky in #607
Compose Auth Ui
- Add
isErrorparameter to Compose Auth Ui fields by @jan-tennert in #612 - Add AuthUiExperimental annotation by @iruizmar in #603
All composables now have aAuthUiExperimentalannotation instead ofSupabaseExperimental
Misc
- Update README.md by @rafalgawlik in #605
New Contributors
- @rafalgawlik made their first contribution in #605
2.5.0-rc-1
Changes
Auth
- Add error code enum for Auth API errors by @jan-tennert in #618
All rest errors containing aerror_codefield will now throw aAuthRestExceptionrather than genericBadRequestExceptions, etc.
AuthRestExceptions contain aerrorCodefield of the typeAuthErrorCodecontaining all known error codes.
Two error codes have their own exceptions (but obviously inherit fromAuthRestException):AuthWeakPasswordExceptionandAuthSessionMissingException.
API errors not containing this field will throw the generic exceptions. - Fix a major bug causing sessions to be refreshed later than they should be in 9b73c03 by @jan-tennert
TheexpiresAtproperty was saved incorrectly, delaying the expiry date.
Realtime
- Use
PostgrestspropertyConversionMethodfor getting the property name of primary keys
2.4.3 Major bug fix
Changes
Auth
- Fix a major bug causing sessions to be refreshed later than they should be in af9143d by @jan-tennert
TheexpiresAtproperty was saved incorrectly, delaying the expiry date.
2.5.0-beta-2
Changes
Postgrest
- Add columns header to
PostgrestQueryBuilder#insertby @jan-tennert in #611
This fixes an issue when inserting a list of objects where some objects might not have all keys. - Add
defaultToNullparameter toPostgrestQueryBuilder#insert
Compose Auth Ui
- Add
isErrorparameter to Compose Auth Ui fields by @jan-tennert in #612
Realtime
2.5.0-beta-1
Changes
Compose Auth Ui
- Add AuthUiExperimental annotation by @iruizmar in #603
All composables now have aAuthUiExperimentalannotation instead ofSupabaseExperimental
Auth
- Handle
weak_passwordandsession_not_foundauth error codes by @jan-tennert in #596
There is now a new subclass ofRestException:AuthRestExceptonwhich will be a super class for exceptions based on error codes. Currently, there are two new exceptions:AuthWeakPasswordExceptionandAuthSessionMissingException
More changes will follow. - Fix/improve session expiry calculation by @JOsacky in #610
Realtime
Misc
- Update README.md by @rafalgawlik in #605
New Contributors
- @rafalgawlik made their first contribution in #605
2.4.2
Changes
Auth
- Remove OtpType deprecation notice and clarify documentation by @jan-tennert in #595
TheSIGNUPandMAGIC_LINKOtpTypes 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 thesessionStatusgets set toAuthenticatedwithout the session actually saving to storage due to the cancellation.