Skip to content

2.2.0-alpha-1

Pre-release
Pre-release
Compare
Choose a tag to compare
@jan-tennert jan-tennert released this 16 Feb 16:50
· 268 commits to development since this release
a464abe

Changes

Core

  • Reworked internal logging to support new features including:
    • Setting the default logging level within the SupabaseClientBuilder:
      val supabase = createSupabaseClient(url, key) {
         defaultLogLevel = LogLevel.WARNING
      }
      Note: The default logging level is set to LogLevel.INFO
    • Changing the logging level per plugins:
      Auth.setLoggingLevel(LogLevel.NONE)
    • Overall better and more debug log messages

Auth

  • Rename Auth#oAuthUrl to Auth#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* and linuxX64 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 and scheme 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.