2.5.0
Changes
Auth
-
Add error code enum for Auth API errors by @jan-tennert in #618
All rest errors containing aerror_code
field will now throw aAuthRestException
rather than genericBadRequestExceptions
, etc.
AuthRestException
s contain aerrorCode
field of the typeAuthErrorCode
containing all known error codes.
Two error codes have their own exceptions (but obviously inherit fromAuthRestException)
:AuthWeakPasswordException
andAuthSessionMissingException
.
API errors not containing this field will throw the generic exceptions. -
Handle
weak_password
andsession_not_found
auth error codes by @jan-tennert in #596
There is now a new subclass ofRestException
:AuthRestExcepton
which will be a super class for exceptions based on error codes. Currently, there are two new exceptions:AuthWeakPasswordException
andAuthSessionMissingException
Postgrest
- Add columns header to
PostgrestQueryBuilder#insert
by @jan-tennert in #611
This fixes an issue when inserting a list of objects where some objects might not have all keys. - Add
defaultToNull
parameter toPostgrestQueryBuilder#insert
Realtime
- Use
Postgrest
spropertyConversionMethod
for 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#presenceDataFlow
working incorrectly by @JOsacky in #607
Compose Auth Ui
- Add
isError
parameter to Compose Auth Ui fields by @jan-tennert in #612 - Add AuthUiExperimental annotation by @iruizmar in #603
All composables now have aAuthUiExperimental
annotation instead ofSupabaseExperimental
Misc
- Update README.md by @rafalgawlik in #605
New Contributors
- @rafalgawlik made their first contribution in #605