The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
array tests now passing
awalias3b5e339e4526
diff --git a/libraries/supabase-js/package.json b/libraries/supabase-js/package.jsonindex a68b74400a9..400c783112e 100644--- a/libraries/supabase-js/package.json+++ b/libraries/supabase-js/package.json@@ -48,7 +48,7 @@"rimraf": "^2.6.2"},"dependencies": {- "@supabase/postgrest-js": "^0.7.0",+ "@supabase/postgrest-js": "^0.8.0","@supabase/realtime-js": "^0.1.6","superagent": "^5.2.1"}diff --git a/libraries/supabase-js/test/integration/testRealtime.js b/libraries/supabase-js/test/integration/testRealtime.jsindex 11a7fca8086..48a45218743 100644--- a/libraries/supabase-js/test/integration/testRealtime.js+++ b/libraries/supabase-js/test/integration/testRealtime.js@@ -9,24 +9,17 @@ import { createClient } from '../../src'describe('test subscribing to an insert', () => {const supabase = createClient('http://localhost:8000', 'examplekey')- afterEach(async() => {- console.log(supabase.getSubscriptions())- for (let subscription of supabase.getSubscriptions()) {- supabase.removeSubscription(subscription)- }- })-- it('on() and subscribe()', done => {+ it('on() and subscribe()', async () => {function callbackAction(record) {assert(record.new.message === 'hello', 'inserted message is incorrect')- done()+ console.log("ASSERT MADE")}- supabase+ await supabase.from('messages').on('*', callbackAction).subscribe()- supabase.from('messages').insert([{ message: 'hello', user_id: 1, channel_id: 1 }])+ await supabase.from('messages').insert([{ message: 'hello', user_id: 1, channel_id: 1 }])}).timeout(10000)})diff --git a/libraries/supabase-js/test/integration/testRest.js b/libraries/supabase-js/test/integration/testRest.jsindex 11b7f03cec3..45930f52024 100644--- a/libraries/supabase-js/test/integration/testRest.js+++ b/libraries/supabase-js/test/integration/testRest.js@@ -54,7 +54,7 @@ describe('test reading from the rest interface', () => {it('filter()', async () => {const response = await supabase.from('users')- .filter('id', 'lt', 3)+ .filter('id', 'lte', 3).filter('username', 'in', ['awalias', 'supabot']).select('*')assert(response.body.length === 2, 'should return two records, awalias, and supabot')@@ -138,8 +138,8 @@ describe('test reading from the rest interface', () => {.from('users').in('id', [2, 3]).select('*')- assert(response.body[0].id === 1, 'first item should be id 1')- assert(response.body[1].id === 4, 'last (and second) item should be id 4')+ assert(response.body[0].id === 2, 'first item should be id 2')+ assert(response.body[1].id === 3, 'last (and second) item should be id 3')})it('not()', async () => {