Skip to content

Commit b11d39e

Browse files
committed
Rename back to SupabaseClient
1 parent 5eb9f7a commit b11d39e

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ If you're using Xcode, [use this guide](https://developer.apple.com/documentatio
2727

2828
## Usage
2929

30-
For all requests made for supabase, you will need to initialize a `Supabase` object.
30+
For all requests made for supabase, you will need to initialize a `SupabaseClient` object.
3131
```swift
32-
let client = Supabase(supabaseUrl: "{ Supabase URL }", supabaseKey: "{ Supabase anonymous Key }")
32+
let client = SupabaseClient(supabaseUrl: "{ Supabase URL }", supabaseKey: "{ Supabase anonymous Key }")
3333
```
3434
This client object will be used for all the following examples.
3535

Sources/Supabase/Supabase.swift renamed to Sources/Supabase/SupabaseClient.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import SupabaseStorage
1717

1818
For more usage information read the README.md
1919
*/
20-
public class Supabase {
20+
public class SupabaseClient {
2121
private var supabaseUrl: String
2222
private var supabaseKey: String
2323
private var schema: String
@@ -76,6 +76,3 @@ public class Supabase {
7676
realtime = RealtimeClient(endPoint: realtimeUrl, params: ["apikey": supabaseKey])
7777
}
7878
}
79-
80-
@available(*, deprecated, message: "Use `Supabase` instead of `SupabaseClient`")
81-
typealias SupabaseClient = Supabase

Tests/SupabaseTests/SupabaseTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import XCTest
44
@testable import Supabase
55

66
final class SupabaseTests: XCTestCase {
7-
var supabase = Supabase(supabaseUrl: SupabaseTests.supabaseUrl(), supabaseKey: SupabaseTests.supabaseKey())
7+
var supabase = SupabaseClient(supabaseUrl: SupabaseTests.supabaseUrl(), supabaseKey: SupabaseTests.supabaseKey())
88

99
static func supabaseUrl() -> String {
1010
if let token = ProcessInfo.processInfo.environment["supabaseUrl"] {

0 commit comments

Comments
 (0)