From e2c2206505f3c49ec6857bd0066fb31fb02e0535 Mon Sep 17 00:00:00 2001 From: Andrew Valleteau Date: Mon, 28 Oct 2024 18:41:50 +0100 Subject: [PATCH] fix: upgrade postgrest-js to rc.4 (#1296) --- package-lock.json | 8 ++++---- package.json | 2 +- test/index.test-d.ts | 6 +++++- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 60bb046a..1dfd2bd1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,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.3", + "@supabase/postgrest-js": "1.17.0-rc.4", "@supabase/realtime-js": "2.10.7", "@supabase/storage-js": "2.7.1" }, @@ -1196,9 +1196,9 @@ } }, "node_modules/@supabase/postgrest-js": { - "version": "1.17.0-rc.3", - "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-1.17.0-rc.3.tgz", - "integrity": "sha512-EAj7ZfFbK3eAIzRF9UoCDsmTFPEmBXE5j83v4R7GtZm4/yEYTnYLnztwLLt908vxivG0hQYbs05yrrH2AZkTPQ==", + "version": "1.17.0-rc.4", + "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-1.17.0-rc.4.tgz", + "integrity": "sha512-hEybGlZJzel3AnROiF/loYMx1eZpD6ETTYdoFN5BLM4mqcrONlmG9P+fD0OFvXdsnwcGjvKB9PDgTbYE545ToQ==", "license": "MIT", "dependencies": { "@supabase/node-fetch": "^2.6.14" diff --git a/package.json b/package.json index f22ac5c7..a22d40c8 100644 --- a/package.json +++ b/package.json @@ -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.3", + "@supabase/postgrest-js": "1.17.0-rc.4", "@supabase/realtime-js": "2.10.7", "@supabase/storage-js": "2.7.1" }, diff --git a/test/index.test-d.ts b/test/index.test-d.ts index c70230f7..672e4697 100644 --- a/test/index.test-d.ts +++ b/test/index.test-d.ts @@ -98,8 +98,12 @@ const supabase = createClient(URL, KEY) // referencing missing column { + type SelectQueryError = { error: true } & Message + const res = await supabase.from('users').select('username, dat') - expectType>(res) + expectType< + PostgrestSingleResponse[]> + >(res) } // one-to-one relationship