Skip to content

Commit 1661420

Browse files
authored
Merge pull request #1355 from supabase/chore/bump-postgrest-js-1-17-11
fix: bump postgrest-js to 1.17.11
2 parents 7ba8408 + 6822cdc commit 1661420

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

package-lock.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"@supabase/auth-js": "2.67.3",
4444
"@supabase/functions-js": "2.4.4",
4545
"@supabase/node-fetch": "2.6.15",
46-
"@supabase/postgrest-js": "1.17.10",
46+
"@supabase/postgrest-js": "1.17.11",
4747
"@supabase/realtime-js": "2.11.2",
4848
"@supabase/storage-js": "2.7.1"
4949
},

test/index.test-d.ts

+17
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,20 @@ const supabase = createClient<Database>(URL, KEY)
119119
channels.channel_details
120120
)
121121
}
122+
123+
// throwOnError in chaining
124+
{
125+
const { data: channels, error } = await supabase
126+
.from('channels')
127+
.select('channel_details(*)')
128+
.throwOnError()
129+
expectType<typeof error>(null)
130+
expectType<
131+
{
132+
channel_details: {
133+
details: string | null
134+
id: number
135+
} | null
136+
}[]
137+
>(channels)
138+
}

0 commit comments

Comments
 (0)