Skip to content

Commit

Permalink
Merge pull request #1355 from supabase/chore/bump-postgrest-js-1-17-11
Browse files Browse the repository at this point in the history
fix: bump postgrest-js to 1.17.11
  • Loading branch information
avallete authored Jan 15, 2025
2 parents 7ba8408 + 6822cdc commit 1661420
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@supabase/auth-js": "2.67.3",
"@supabase/functions-js": "2.4.4",
"@supabase/node-fetch": "2.6.15",
"@supabase/postgrest-js": "1.17.10",
"@supabase/postgrest-js": "1.17.11",
"@supabase/realtime-js": "2.11.2",
"@supabase/storage-js": "2.7.1"
},
Expand Down
17 changes: 17 additions & 0 deletions test/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,20 @@ const supabase = createClient<Database>(URL, KEY)
channels.channel_details
)
}

// throwOnError in chaining
{
const { data: channels, error } = await supabase
.from('channels')
.select('channel_details(*)')
.throwOnError()
expectType<typeof error>(null)
expectType<
{
channel_details: {
details: string | null
id: number
} | null
}[]
>(channels)
}

0 comments on commit 1661420

Please sign in to comment.