Skip to content

Commit f780066

Browse files
committed
Bump version to 0.0.5
1 parent dcd13c7 commit f780066

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

Sources/PostgREST/Constants.swift

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import Foundation
2+
3+
enum Constants {
4+
static let defaultHeaders = [
5+
"X-Client-Info": "postgrest-swift/\(version)"
6+
]
7+
}

Sources/PostgREST/PostgrestClient.swift

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import Foundation
22

3-
let version = "0.0.4"
4-
let defaultHeaders = [
5-
"X-Client-Info": "postgrest-swift/\(version)"
6-
]
7-
83
/// This is the main class in this package. Use it to execute queries on a PostgREST instance on Supabase.
94
public class PostgrestClient {
105
/// Configuration for the client
@@ -24,7 +19,7 @@ public class PostgrestClient {
2419
delegate: PostgrestClientDelegate? = nil
2520
) {
2621
self.url = url
27-
self.headers = headers.merging(defaultHeaders) { old, _ in old }
22+
self.headers = headers.merging(Constants.defaultHeaders) { old, _ in old }
2823
self.schema = schema
2924
self.delegate = delegate ?? DefaultPostgrestClientDelegate()
3025
}

Sources/PostgREST/Version.swift

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
let version = "0.0.5"

0 commit comments

Comments
 (0)