github supabase-community/supabase-kt 3.7.0-beta-1

pre-release7 days ago

A small note

Sorry that the library has been moving slow lately, we currently have some internal stuff to figure out, once that is sorted there will be coming a lot of new features and quality of life changes to the library.

Changes

Core

Auth

  • Add support for custom OAuth provider by @jan-tennert in #1236
  • feat(auth): expose public getter for AuthConfig.httpCallbackConfig on Desktop by @PierreVieira in #1322
  • fix(auth): don't throw an error when there is no stored session by @PierreVieira in #1320
  • Add API support for Passkeys by @jan-tennert in #1327 under supabase.auth.passkeys - Note, there is currently no sign-in method. We are still deciding how to move on with Native APIs. Compose Auth support may come as a temporary solution.
  • Add PKCE support for resend by @jan-tennert in #1337

Realtime

  • Add support for binary broadcasts, httpSend and VSN 2.0.0 by @jan-tennert in #1325

    Either use the ByteArray type in broadcastFlow:

    channel.broadcastFlow<ByteArray>("test").collect {
        println(it.decodeToString())
    }

    Or use broadcastFlow without a type to receive both types:

    channel.broadcastFlow("test").collect {
        when(it.payload) {
            is BroadcastPayload.Binary -> println(it.payload.data.decodeToString())
            is BroadcastPayload.Json -> println(it.payload.value)
        }
    }

    New method to broadcast messages (the old ones are using this in the implementation if not connected)':

    channel.httpSend("myEvent", BroadcastPayload.Binary(byteArrayOf(1,2,3)))
  • Implement deferred disconnect after removing last channel by @jan-tennert in #1276

  • docs(realtime): clarify that maxAttempts governs channel rejoin attempts by @PierreVieira in #1331

  • fix(realtime): log transient websocket reconnects at WARN instead of ERROR by @PierreVieira in #1329

Postgrest

Storage

New Contributors

Don't miss a new supabase-kt release

NewReleases is sending notifications on new releases.