Skip to content

Commit c47fcb8

Browse files
committed
temporarily remove shouldThrowOnError
Till all the client libraries support this option. Once they do, we can add this option back in to the parent library as a non-breaking change
1 parent 8e8087e commit c47fcb8

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/SupabaseClient.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ export default class SupabaseClient<
5050
protected storageKey: string
5151
protected fetch?: Fetch
5252
protected changedAccessToken: string | undefined
53-
protected shouldThrowOnError: boolean
5453

5554
protected headers: {
5655
[key: string]: string
@@ -96,7 +95,6 @@ export default class SupabaseClient<
9695
const settings = { ...DEFAULT_OPTIONS, ...options, storageKey: this.storageKey }
9796

9897
this.headers = { ...DEFAULT_HEADERS, ...options?.headers }
99-
this.shouldThrowOnError = settings.shouldThrowOnError || false
10098

10199
this.auth = this._initSupabaseAuthClient(settings.auth || {}, this.headers, settings.fetch)
102100
this.fetch = fetchWithAuth(supabaseKey, this._getAccessToken.bind(this), settings.fetch)
@@ -106,7 +104,6 @@ export default class SupabaseClient<
106104
headers: this.headers,
107105
schema: options?.db?.schema,
108106
fetch: this.fetch,
109-
throwOnError: this.shouldThrowOnError,
110107
})
111108

112109
this._listenForAuthEvents()

src/lib/types.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ export type SupabaseClientOptions<SchemaName> = {
5353
* Optional headers for initializing the client.
5454
*/
5555
headers?: Record<string, string>
56-
/**
57-
* Throw errors, instead of returning them.
58-
*/
59-
shouldThrowOnError?: boolean
6056
}
6157

6258
export type SupabaseRealtimePayload<T> = {

0 commit comments

Comments
 (0)