Skip to content

Commit 3eda615

Browse files
authoredOct 28, 2024
fix: postgrest-js v1.17.0-rc.3
1 parent e8e178c commit 3eda615

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed
 

‎package-lock.json

+5-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.65.1",
4444
"@supabase/functions-js": "2.4.3",
4545
"@supabase/node-fetch": "2.6.15",
46-
"@supabase/postgrest-js": "1.17.0-rc.1",
46+
"@supabase/postgrest-js": "1.17.0-rc.3",
4747
"@supabase/realtime-js": "2.10.7",
4848
"@supabase/storage-js": "2.7.1"
4949
},

‎test/index.test-d.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const supabase = createClient<Database>(URL, KEY)
8484
if (error) {
8585
throw new Error(error.message)
8686
}
87-
expectType<Database['public']['Tables']['users']['Row'] | null>(message.user)
87+
expectType<Database['public']['Tables']['users']['Row']>(message.user)
8888
}
8989

9090
// one-to-many relationship
@@ -98,9 +98,8 @@ const supabase = createClient<Database>(URL, KEY)
9898

9999
// referencing missing column
100100
{
101-
type SelectQueryError<Message extends string> = { error: true } & Message
102101
const res = await supabase.from('users').select('username, dat')
103-
expectType<PostgrestSingleResponse<SelectQueryError<`Referencing missing column \`dat\``>[]>>(res)
102+
expectType<PostgrestSingleResponse<"column 'dat' does not exist on 'users'."[]>>(res)
104103
}
105104

106105
// one-to-one relationship

0 commit comments

Comments
 (0)