github supabase-community/supabase-kt 3.8.0

3 hours ago

Changes

Core

Postgrest

  • feat(postgrest): add dryRun(), maybeSingle() modifiers, notIn filter by @jan-tennert in #1365

Auth

Realtime

val channel = supabase.realtime.channel("test") {
    broadcast { 
        replicationReady = true
    }
}
channel.systemFlow().collect { 
    println(it.status)
}
channel.postgresChangeFlow<PostgresAction>("public") {
    table = "myTable"
    filter { 
        lt("id", 20)
        eq("name", "Tom")
    }
}
// supported by all realtime postgres methods including:
supabase.from("myTable").selectAsFlow(...) {
    eq("id", 2)
    lt("age", 58)
}
  • fix(realtime): catch exceptions when resolving access token by @jan-tennert in #1386

Storage

  • feat(storage): add purge methods for buckets and single objects by @jan-tennert in #1375
supabase.storage.purgeBucketCache("myBucket")
supabase.storage["myBucket"].purgeCache("myFile.png")

New Contributors

Don't miss a new supabase-kt release

NewReleases is sending notifications on new releases.