The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Revert "fix: bump supabase js next version"
Joshen Lim6f80079d7c6c
diff --git a/studio/components/interfaces/Home/Landing.tsx b/studio/components/interfaces/Home/Landing.tsxindex 1df14b1cf47..d0cee301e51 100644--- a/studio/components/interfaces/Home/Landing.tsx+++ b/studio/components/interfaces/Home/Landing.tsx@@ -13,12 +13,14 @@ const Landing = () => {async function handleGithubSignIn() {try {- const { error } = await auth.signInWithOAuth({- provider: 'github',- options: {- redirectTo: `${process.env.NEXT_PUBLIC_SITE_URL}?auth=true`,+ const { error } = await auth.signIn(+ {+ provider: 'github',},- })+ {+ redirectTo: `${process.env.NEXT_PUBLIC_SITE_URL}?auth=true`,+ }+ )if (error) throw error} catch (error) {console.error(error)diff --git a/studio/components/to-be-cleaned/Docs/Snippets.js b/studio/components/to-be-cleaned/Docs/Snippets.jsindex d97e9eb9071..6240a7ebe52 100644--- a/studio/components/to-be-cleaned/Docs/Snippets.js+++ b/studio/components/to-be-cleaned/Docs/Snippets.js@@ -474,7 +474,7 @@ curl -X POST '${endpoint}/auth/v1/token?grant_type=password' \\js: {language: 'js',code: `-let { user, error } = await supabase.auth.signInWithPassword({+let { user, error } = await supabase.auth.signIn({email: '[email protected]',password: '${randomPassword}'})@@ -497,7 +497,7 @@ curl -X POST '${endpoint}/auth/v1/magiclink' \\js: {language: 'js',code: `-let { user, error } = await supabase.auth.signInWithOtp({+let { user, error } = await supabase.auth.signIn({email: '[email protected]'})`,@@ -543,7 +543,7 @@ curl -X POST '${endpoint}/auth/v1/otp' \\js: {language: 'js',code: `-let { user, error } = await supabase.auth.signInWithOtp({+let { user, error } = await supabase.auth.signIn({phone: '+13334445555'})`,@@ -604,7 +604,7 @@ let { data, error } = await supabase.auth.api.inviteUserByEmail('[email protected]js: {language: 'js',code: `-let { user, error } = await supabase.auth.signInWithOAuth({+let { user, error } = await supabase.auth.signIn({provider: 'github'})`,diff --git a/studio/package-lock.json b/studio/package-lock.jsonindex c78815e9d17..c17a573d564 100644--- a/studio/package-lock.json+++ b/studio/package-lock.json@@ -21,7 +21,7 @@"@supabase/postgres-meta": "^0.26.1","@supabase/react-data-grid": "^7.1.0-beta.7","@supabase/shared-types": "^0.1.25",- "@supabase/supabase-js": "^1.36.0-next.14",+ "@supabase/supabase-js": "^1.36.0-next.9","@supabase/ui": "0.37.0-alpha.80","ajv": "^8.6.3","analytics-node": "^3.5.0",@@ -8331,9 +8331,9 @@}},"node_modules/@supabase/gotrue-js": {- "version": "1.23.0-next.12",- "resolved": "https://registry.npmjs.org/@supabase/gotrue-js/-/gotrue-js-1.23.0-next.12.tgz",- "integrity": "sha512-F+XFCnexNwDHD9JcbqhnJeM10MSBRuLZXWKvEGLjrRSHJdxYm7z+HSf1t8mlvno2Xd97oWUFTr6lSnSQmDM+Bw==",+ "version": "1.23.0-next.4",+ "resolved": "https://registry.npmjs.org/@supabase/gotrue-js/-/gotrue-js-1.23.0-next.4.tgz",+ "integrity": "sha512-w+qCUc7BA0t1Tx08ylObz/XzmnVlTwkdDPrYlE/gC9Qr6n1MmuNNbmz6Odz66CtFQiDjS+62uTJbxJSnn/Mygg==","dependencies": {"cross-fetch": "^3.1.5"}@@ -8373,9 +8373,9 @@}},"node_modules/@supabase/realtime-js": {- "version": "1.8.0-next.13",- "resolved": "https://registry.npmjs.org/@supabase/realtime-js/-/realtime-js-1.8.0-next.13.tgz",- "integrity": "sha512-qHMIXTp7AXd4Iy2vtOBqYJ7C1x7DrgTH3BqrcvQQCqp+xEBAqQdKsiZsbk8mfSJqVMQghksgMT3GT3G9QboBDQ==",+ "version": "1.7.3",+ "resolved": "https://registry.npmjs.org/@supabase/realtime-js/-/realtime-js-1.7.3.tgz",+ "integrity": "sha512-iNUWhVeYRi5+XUlW2zJ7ccGfhI6caLxcn2t6VuQK3OTJNzXdVXeKb25nffLx1g4F7Ty6VM8Xiue7i0z0cWG3pQ==","dependencies": {"@types/phoenix": "^1.5.4","websocket": "^1.0.34"@@ -8387,23 +8387,23 @@"integrity": "sha512-nKIwMc/Ig22s58FxH9lyCJ+hAqp3D4Qq7LDCTlGlzTV7sOeKXFyMQuevwGdCVfIuQbp99QC1y2rS9pyV+R7RFA=="},"node_modules/@supabase/storage-js": {- "version": "1.8.0-next.3",- "resolved": "https://registry.npmjs.org/@supabase/storage-js/-/storage-js-1.8.0-next.3.tgz",- "integrity": "sha512-3gfrXap+awcgwyw44s0x248Qu4x+yaqpe8JLWEnp/G2hecD+J/7vEJ9MJe+GS0ZL+ZJalnWcDWt1m86fxoDyFg==",+ "version": "1.7.2",+ "resolved": "https://registry.npmjs.org/@supabase/storage-js/-/storage-js-1.7.2.tgz",+ "integrity": "sha512-HX4HAfLUJznVgAwiKVgdTe5QD0bpUcqgc0hpk/s5Uy8qoe1tHZAc5qE9kI+tqk7rQKyymFpiA7+bAHlzyZXxxQ==","dependencies": {- "cross-fetch": "^3.1.5"+ "cross-fetch": "^3.1.0"}},"node_modules/@supabase/supabase-js": {- "version": "1.36.0-next.14",- "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-1.36.0-next.14.tgz",- "integrity": "sha512-e14M4JyRrbFx7MdBFvSO4umJm1nzBUaLhPRwwFWMZfSPPlYmjYdrCQOgHITkE9G+E/QLNFK3x7WthIjLkcODrw==",+ "version": "1.36.0-next.9",+ "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-1.36.0-next.9.tgz",+ "integrity": "sha512-GzaCNe7maoaao6MjX+MZoEd3EZnMCbathvXmh77vLOWD72HuQKVxUM77CR1cO/Ry8tZpbQlHkAiPKM122NSQkQ==","dependencies": {"@supabase/functions-js": "^1.3.3",- "@supabase/gotrue-js": "^1.23.0-next.12",+ "@supabase/gotrue-js": "^1.23.0-next.3","@supabase/postgrest-js": "^1.0.0-next.2",- "@supabase/realtime-js": "^1.8.0-next.13",- "@supabase/storage-js": "^1.8.0-next.3",+ "@supabase/realtime-js": "^1.7.3",+ "@supabase/storage-js": "^1.7.0","cross-fetch": "^3.1.5"}},@@ -13692,9 +13692,9 @@}},"node_modules/es5-ext": {- "version": "0.10.62",- "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.62.tgz",- "integrity": "sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA==",+ "version": "0.10.61",+ "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.61.tgz",+ "integrity": "sha512-yFhIqQAzu2Ca2I4SE2Au3rxVfmohU9Y7wqGR+s7+H7krk26NXhIRAZDgqd6xqjCEFUomDEA3/Bo/7fKmIkW1kA==","hasInstallScript": true,"dependencies": {"es6-iterator": "^2.0.3",@@ -14194,9 +14194,9 @@}},"node_modules/ext/node_modules/type": {- "version": "2.7.2",- "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz",- "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw=="+ "version": "2.6.0",+ "resolved": "https://registry.npmjs.org/type/-/type-2.6.0.tgz",+ "integrity": "sha512-eiDBDOmkih5pMbo9OqsqPRGMljLodLcwd5XD5JbtNB0o89xZAwynY9EdCDsJU7LtcVCClu9DvM7/0Ep1hYX3EQ=="},"node_modules/extend": {"version": "3.0.2",@@ -35744,9 +35744,9 @@}},"@supabase/gotrue-js": {- "version": "1.23.0-next.12",- "resolved": "https://registry.npmjs.org/@supabase/gotrue-js/-/gotrue-js-1.23.0-next.12.tgz",- "integrity": "sha512-F+XFCnexNwDHD9JcbqhnJeM10MSBRuLZXWKvEGLjrRSHJdxYm7z+HSf1t8mlvno2Xd97oWUFTr6lSnSQmDM+Bw==",+ "version": "1.23.0-next.4",+ "resolved": "https://registry.npmjs.org/@supabase/gotrue-js/-/gotrue-js-1.23.0-next.4.tgz",+ "integrity": "sha512-w+qCUc7BA0t1Tx08ylObz/XzmnVlTwkdDPrYlE/gC9Qr6n1MmuNNbmz6Odz66CtFQiDjS+62uTJbxJSnn/Mygg==","requires": {"cross-fetch": "^3.1.5"}@@ -35778,9 +35778,9 @@}},"@supabase/realtime-js": {- "version": "1.8.0-next.13",- "resolved": "https://registry.npmjs.org/@supabase/realtime-js/-/realtime-js-1.8.0-next.13.tgz",- "integrity": "sha512-qHMIXTp7AXd4Iy2vtOBqYJ7C1x7DrgTH3BqrcvQQCqp+xEBAqQdKsiZsbk8mfSJqVMQghksgMT3GT3G9QboBDQ==",+ "version": "1.7.3",+ "resolved": "https://registry.npmjs.org/@supabase/realtime-js/-/realtime-js-1.7.3.tgz",+ "integrity": "sha512-iNUWhVeYRi5+XUlW2zJ7ccGfhI6caLxcn2t6VuQK3OTJNzXdVXeKb25nffLx1g4F7Ty6VM8Xiue7i0z0cWG3pQ==","requires": {"@types/phoenix": "^1.5.4","websocket": "^1.0.34"@@ -35792,23 +35792,23 @@"integrity": "sha512-nKIwMc/Ig22s58FxH9lyCJ+hAqp3D4Qq7LDCTlGlzTV7sOeKXFyMQuevwGdCVfIuQbp99QC1y2rS9pyV+R7RFA=="},"@supabase/storage-js": {- "version": "1.8.0-next.3",- "resolved": "https://registry.npmjs.org/@supabase/storage-js/-/storage-js-1.8.0-next.3.tgz",- "integrity": "sha512-3gfrXap+awcgwyw44s0x248Qu4x+yaqpe8JLWEnp/G2hecD+J/7vEJ9MJe+GS0ZL+ZJalnWcDWt1m86fxoDyFg==",+ "version": "1.7.2",+ "resolved": "https://registry.npmjs.org/@supabase/storage-js/-/storage-js-1.7.2.tgz",+ "integrity": "sha512-HX4HAfLUJznVgAwiKVgdTe5QD0bpUcqgc0hpk/s5Uy8qoe1tHZAc5qE9kI+tqk7rQKyymFpiA7+bAHlzyZXxxQ==","requires": {- "cross-fetch": "^3.1.5"+ "cross-fetch": "^3.1.0"}},"@supabase/supabase-js": {- "version": "1.36.0-next.14",- "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-1.36.0-next.14.tgz",- "integrity": "sha512-e14M4JyRrbFx7MdBFvSO4umJm1nzBUaLhPRwwFWMZfSPPlYmjYdrCQOgHITkE9G+E/QLNFK3x7WthIjLkcODrw==",+ "version": "1.36.0-next.9",+ "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-1.36.0-next.9.tgz",+ "integrity": "sha512-GzaCNe7maoaao6MjX+MZoEd3EZnMCbathvXmh77vLOWD72HuQKVxUM77CR1cO/Ry8tZpbQlHkAiPKM122NSQkQ==","requires": {"@supabase/functions-js": "^1.3.3",- "@supabase/gotrue-js": "^1.23.0-next.12",+ "@supabase/gotrue-js": "^1.23.0-next.3","@supabase/postgrest-js": "^1.0.0-next.2",- "@supabase/realtime-js": "^1.8.0-next.13",- "@supabase/storage-js": "^1.8.0-next.3",+ "@supabase/realtime-js": "^1.7.3",+ "@supabase/storage-js": "^1.7.0","cross-fetch": "^3.1.5"}},@@ -40207,9 +40207,9 @@}},"es5-ext": {- "version": "0.10.62",- "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.62.tgz",- "integrity": "sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA==",+ "version": "0.10.61",+ "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.61.tgz",+ "integrity": "sha512-yFhIqQAzu2Ca2I4SE2Au3rxVfmohU9Y7wqGR+s7+H7krk26NXhIRAZDgqd6xqjCEFUomDEA3/Bo/7fKmIkW1kA==","requires": {"es6-iterator": "^2.0.3","es6-symbol": "^3.1.3",@@ -40603,9 +40603,9 @@},"dependencies": {"type": {- "version": "2.7.2",- "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz",- "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw=="+ "version": "2.6.0",+ "resolved": "https://registry.npmjs.org/type/-/type-2.6.0.tgz",+ "integrity": "sha512-eiDBDOmkih5pMbo9OqsqPRGMljLodLcwd5XD5JbtNB0o89xZAwynY9EdCDsJU7LtcVCClu9DvM7/0Ep1hYX3EQ=="}}},diff --git a/studio/package.json b/studio/package.jsonindex 90f953dba49..d999b79baad 100644--- a/studio/package.json+++ b/studio/package.json@@ -27,7 +27,7 @@"@supabase/postgres-meta": "^0.26.1","@supabase/react-data-grid": "^7.1.0-beta.7","@supabase/shared-types": "^0.1.25",- "@supabase/supabase-js": "^1.36.0-next.14",+ "@supabase/supabase-js": "^1.36.0-next.9","@supabase/ui": "0.37.0-alpha.80","ajv": "^8.6.3","analytics-node": "^3.5.0",diff --git a/studio/pages/index.tsx b/studio/pages/index.tsxindex c85615379e9..c7660240b37 100644--- a/studio/pages/index.tsx+++ b/studio/pages/index.tsx@@ -58,12 +58,12 @@ const UnauthorizedLanding = () => {const queryParams = (router.query as any) || {}const params = new URLSearchParams(queryParams)// trigger github signIn- auth.signInWithOAuth({- provider: 'github',- options: {+ auth.signIn(+ { provider: 'github' },+ {redirectTo: `${process.env.NEXT_PUBLIC_SITE_URL}?${params.toString()}`,- },- })+ }+ )}}, [])