2.2.0-alpha-1
Pre-release
Pre-release
·
268 commits
to development
since this release
Changes
Core
- Reworked internal logging to support new features including:
- Setting the default logging level within the SupabaseClientBuilder:
Note: The default logging level is set to
val supabase = createSupabaseClient(url, key) { defaultLogLevel = LogLevel.WARNING }
LogLevel.INFO
- Changing the logging level per plugins:
Auth.setLoggingLevel(LogLevel.NONE)
- Overall better and more debug log messages
- Setting the default logging level within the SupabaseClientBuilder:
Auth
- Rename
Auth#oAuthUrl
toAuth#getOAuthUrl
- Switch to Ktor for Http Callback Servers when using OAuth on Desktop targets. Signing in using an OAuth provider e.g. with
signInWith(Google)
will now block the current coroutine until the flow succeeds or times out. - Add support for using a Http Callback Server for OAuth in the Kotlin
macosX64*
andlinuxX64
targets
* Only used if no deeplink host & scheme or a default redirect url is provided. - Add
AuthConfig#httpCallbackConfig()
method for configuring these servers. - Add
host
andscheme
auth config properties to common code (will still not used by all targets) - Add
AuthConfig#defaultRedirectUrl
to override the default redirect url used for requests. Defaults to null, which means that everything stays as it is; Desktop targets will use a http callback server, mobile targets deeplinks, etc.
Realtime
- Add support for realtime message throttling in #471
There is now a new realtime config property:eventsPerSecond
(default is 10), which configures a client-side rate-limit for sending broadcasts, presence updates etc. If this rate-limit is exceeded, any message within this duration will fail.
Set to a negative number to disable.
Check the Supabase docs for more information.