Skip to content

Commit

Permalink
fix: postgrest-js v1.17.0-rc.3
Browse files Browse the repository at this point in the history
  • Loading branch information
avallete authored Oct 28, 2024
1 parent e8e178c commit 3eda615
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
9 changes: 5 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.65.1",
"@supabase/functions-js": "2.4.3",
"@supabase/node-fetch": "2.6.15",
"@supabase/postgrest-js": "1.17.0-rc.1",
"@supabase/postgrest-js": "1.17.0-rc.3",
"@supabase/realtime-js": "2.10.7",
"@supabase/storage-js": "2.7.1"
},
Expand Down
5 changes: 2 additions & 3 deletions test/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const supabase = createClient<Database>(URL, KEY)
if (error) {
throw new Error(error.message)
}
expectType<Database['public']['Tables']['users']['Row'] | null>(message.user)
expectType<Database['public']['Tables']['users']['Row']>(message.user)
}

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

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

// one-to-one relationship
Expand Down

0 comments on commit 3eda615

Please sign in to comment.