From 3833918e6a767e841ff8d6e04c0b4584cb84d6e8 Mon Sep 17 00:00:00 2001 From: Bobbie Soedirgo Date: Tue, 29 Oct 2024 00:32:18 +0700 Subject: [PATCH] fix: postgrest-js 1.17.0-rc.4 --- package-lock.json | 9 ++++----- package.json | 2 +- test/index.test-d.ts | 5 ++++- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 60bb046ad..7be0cefb4 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,10 +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==", - "license": "MIT", + "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==", "dependencies": { "@supabase/node-fetch": "^2.6.14" } diff --git a/package.json b/package.json index f22ac5c75..a22d40c8f 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 c70230f7c..4be090fa4 100644 --- a/test/index.test-d.ts +++ b/test/index.test-d.ts @@ -98,8 +98,11 @@ 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