The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: blog supabase-js v2 released
thorwebdev24fbeca1b09a
diff --git a/apps/reference/_supabase_js/release-notes.md b/apps/reference/_supabase_js/release-notes.mdindex 57af05f0980..d77cf283abc 100644--- a/apps/reference/_supabase_js/release-notes.md+++ b/apps/reference/_supabase_js/release-notes.md@@ -20,6 +20,7 @@ const supabase = createClient(apiURL, apiKey, {schema: 'public',},auth: {+ storage: AsyncStorage,autoRefreshToken: true,persistSession: true,detectSessionInUrl: true,diff --git a/apps/www/_blog/2022-08-16-supabase-js-v2.mdx b/apps/www/_blog/2022-08-16-supabase-js-v2-rc.mdxsimilarity index 100%rename from apps/www/_blog/2022-08-16-supabase-js-v2.mdxrename to apps/www/_blog/2022-08-16-supabase-js-v2-rc.mdxdiff --git a/apps/www/_blog/2022-10-19-supabase-js-v2.mdx b/apps/www/_blog/2022-10-19-supabase-js-v2.mdxnew file mode 100644index 00000000000..71d8ecca1e1--- /dev/null+++ b/apps/www/_blog/2022-10-19-supabase-js-v2.mdx@@ -0,0 +1,38 @@+---+title: 'supabase-js v2 Released'+description: We've released supabase-js v2. Updated examples, quickstarts, and an improved experience.+author: alaister,andrew_smith,inian,joel,jonmeyers_io,kangmingtay,soedirgo,thor_schaeff,tyler_shukert+image: lw5-supabase-js/thumb.jpg+thumb: lw5-supabase-js/thumb.jpg+tags:+ - launch-week+date: '2022-10-19'+toc_depth: 3+---++During our [last Launch Week](/launch-week) we presented the [release candidate for supabase-js v2](/blog/supabase-js-v2). Since then we've been busy incorporating your feedback, [updating the docs](/docs/reference/javascript/), [examples](https://github.com/supabase/supabase/tree/master/examples), [quickstart guides](/docs/guides/with-nextjs), and putting a [migration guide]() together.++It truly takes a village, well, in this case an entire community, and we want to thank you all for your feedback, and contributions!++Version 2.0 is the result of the combined work of over 100 contributors to our libraries, and over 450 contributors to our docs and websites.+If you're one of those contributors, thank you!++- [`functions-js`](https://github.com/supabase/functions-js/graphs/contributors) (4)+- [`gotrue-js`](https://github.com/supabase/gotrue-js/graphs/contributors) (47)+- [`postgrest-js`](https://github.com/supabase/postgrest-js/graphs/contributors) (30)+- [`realtime-js`](https://github.com/supabase/realtime-js/graphs/contributors) (16)+- [`storage-js`](https://github.com/supabase/storage-js/graphs/contributors) (17)+- [`supabase-js`](https://github.com/supabase/supabase-js/graphs/contributors) (39)++Special shout outs to: [@vejja](https://github.com/vejja), [@pixtron](https://github.com/pixtron), [@bnjmnt4n](https://github.com/pixtron), and [@karlseguin](https://github.com/karlseguin).++## Links++- [Documentation](/docs/reference/javascript)+- [Migration Guide]()+- [Quickstart Guides](/docs/guides/with-nextjs)+- [Examples (GitHub)](https://github.com/supabase/supabase/tree/master/examples)+- [Release Notes](/docs/reference/javascript/release-notes)+- [Release Candidate Blogpost](/blog/supabase-js-v2-rc)+- [Auth Helpers](/docs/guides/auth/auth-helpers/)+- [Auth UI](https://supabase.com/docs/guides/auth/auth-helpers/auth-ui)diff --git a/apps/www/package.json b/apps/www/package.jsonindex 058d02f2861..28b9b9c5036 100644--- a/apps/www/package.json+++ b/apps/www/package.json@@ -52,7 +52,7 @@"uuid": "^8.3.2"},"devDependencies": {- "@tailwindcss/typography": "^0.5.2",+ "@tailwindcss/typography": "^0.5.7","@types/classnames": "^2.3.1","@types/jest": "^25.2.2","@types/marked": "^4.0.3",@@ -64,9 +64,9 @@"@types/react-copy-to-clipboard": "^4.3.0","@types/react-dom": "^17.0.11","@types/react-syntax-highlighter": "^13.5.2",- "autoprefixer": "^10.4.2",+ "autoprefixer": "^10.4.12","file-loader": "^6.2.0",- "postcss": "^8.4.16",+ "postcss": "^8.4.18","postcss-preset-env": "^6.7.0","prettier": "^2.2.1","tailwindcss": "^3.1.8"diff --git a/package-lock.json b/package-lock.jsonindex df6410ad1d2..02732947f2d 100644--- a/package-lock.json+++ b/package-lock.json@@ -16,7 +16,6 @@],"dependencies": {"@mdx-js/react": "^2.1.1",- "html-to-image": "^1.10.1","mini-svg-data-uri": "^1.4.4"},"devDependencies": {@@ -157,7 +156,7 @@"uuid": "^8.3.2"},"devDependencies": {- "@tailwindcss/typography": "^0.5.2",+ "@tailwindcss/typography": "^0.5.7","@types/classnames": "^2.3.1","@types/jest": "^25.2.2","@types/marked": "^4.0.3",@@ -169,9 +168,9 @@"@types/react-copy-to-clipboard": "^4.3.0","@types/react-dom": "^17.0.11","@types/react-syntax-highlighter": "^13.5.2",- "autoprefixer": "^10.4.2",+ "autoprefixer": "^10.4.12","file-loader": "^6.2.0",- "postcss": "^8.4.16",+ "postcss": "^8.4.18","postcss-preset-env": "^6.7.0","prettier": "^2.2.1","tailwindcss": "^3.1.8"@@ -248,20 +247,6 @@"react-dom": "^16.13.1 || ^17.0.1"}},- "apps/www/node_modules/@tailwindcss/typography": {- "version": "0.5.7",- "resolved": "https://registry.npmjs.org/@tailwindcss/typography/-/typography-0.5.7.tgz",- "integrity": "sha512-JTTSTrgZfp6Ki4svhPA4mkd9nmQ/j9EfE7SbHJ1cLtthKkpW2OxsFXzSmxbhYbEkfNIyAyhle5p4SYyKRbz/jg==",- "dependencies": {- "lodash.castarray": "^4.4.0",- "lodash.isplainobject": "^4.0.6",- "lodash.merge": "^4.6.2",- "postcss-selector-parser": "6.0.10"- },- "peerDependencies": {- "tailwindcss": ">=3.0.0 || insiders"- }- },"apps/www/node_modules/@types/istanbul-reports": {"version": "1.1.2","resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz",@@ -8903,7 +8888,18 @@"react-dom": "^16.13.1 || ^17.0.1"}},- "node_modules/@supabase/ui/node_modules/@tailwindcss/typography": {+ "node_modules/@tailwindcss/forms": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.4.1.tgz",+ "integrity": "sha512-gS9xjCmJjUBz/eP12QlENPLnf0tCx68oYE3mri0GMP5jdtVwLbGUNSRpjsp6NzLAZzZy3ueOwrcqB78Ax6Z84A==",+ "dependencies": {+ "mini-svg-data-uri": "^1.2.3"+ },+ "peerDependencies": {+ "tailwindcss": ">=3.0.0 || >= 3.0.0-alpha.1"+ }+ },+ "node_modules/@tailwindcss/typography": {"version": "0.5.7","resolved": "https://registry.npmjs.org/@tailwindcss/typography/-/typography-0.5.7.tgz","integrity": "sha512-JTTSTrgZfp6Ki4svhPA4mkd9nmQ/j9EfE7SbHJ1cLtthKkpW2OxsFXzSmxbhYbEkfNIyAyhle5p4SYyKRbz/jg==",@@ -8917,17 +8913,6 @@"tailwindcss": ">=3.0.0 || insiders"}},- "node_modules/@tailwindcss/forms": {- "version": "0.4.1",- "resolved": "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.4.1.tgz",- "integrity": "sha512-gS9xjCmJjUBz/eP12QlENPLnf0tCx68oYE3mri0GMP5jdtVwLbGUNSRpjsp6NzLAZzZy3ueOwrcqB78Ax6Z84A==",- "dependencies": {- "mini-svg-data-uri": "^1.2.3"- },- "peerDependencies": {- "tailwindcss": ">=3.0.0 || >= 3.0.0-alpha.1"- }- },"node_modules/@testdeck/core": {"version": "0.2.1","resolved": "https://registry.npmjs.org/@testdeck/core/-/core-0.2.1.tgz",@@ -26304,9 +26289,9 @@}},"node_modules/postcss": {- "version": "8.4.17",- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.17.tgz",- "integrity": "sha512-UNxNOLQydcOFi41yHNMcKRZ39NeXlr8AxGuZJsdub8vIb12fHzcq37DTU/QtbI6WLxNg2gF9Z+8qtRwTj1UI1Q==",+ "version": "8.4.18",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.18.tgz",+ "integrity": "sha512-Wi8mWhncLJm11GATDaQKobXSNEYGUHeQLiQqDFG1qQ5UTDPTEvKw0Xt5NsTpktGTwLps3ByrWsBrG0rB8YQ9oA==","funding": [{"type": "opencollective",@@ -35998,19 +35983,6 @@"tailwindcss": ">=3.0.0 || >= 3.0.0-alpha.1"}},- "packages/config/node_modules/@tailwindcss/typography": {- "version": "0.5.7",- "license": "MIT",- "dependencies": {- "lodash.castarray": "^4.4.0",- "lodash.isplainobject": "^4.0.6",- "lodash.merge": "^4.6.2",- "postcss-selector-parser": "6.0.10"- },- "peerDependencies": {- "tailwindcss": ">=3.0.0 || insiders"- }- },"packages/config/node_modules/tailwindcss-radix": {"version": "2.6.0","license": "MIT"@@ -36051,19 +36023,6 @@"typescript": "4.3.4"}},- "packages/ui/node_modules/@tailwindcss/typography": {- "version": "0.5.7",- "license": "MIT",- "dependencies": {- "lodash.castarray": "^4.4.0",- "lodash.isplainobject": "^4.0.6",- "lodash.merge": "^4.6.2",- "postcss-selector-parser": "6.0.10"- },- "peerDependencies": {- "tailwindcss": ">=3.0.0 || insiders"- }- },"packages/ui/node_modules/typescript": {"version": "4.3.4","dev": true,@@ -36364,20 +36323,6 @@"node": ">= 10"}},- "studio/node_modules/@tailwindcss/typography": {- "version": "0.5.7",- "dev": true,- "license": "MIT",- "dependencies": {- "lodash.castarray": "^4.4.0",- "lodash.isplainobject": "^4.0.6",- "lodash.merge": "^4.6.2",- "postcss-selector-parser": "6.0.10"- },- "peerDependencies": {- "tailwindcss": ">=3.0.0 || insiders"- }- },"studio/node_modules/@types/react": {"version": "17.0.11","dev": true,@@ -42891,19 +42836,6 @@"prop-types": "^15.7.2","tailwindcss": "^3.0.15","tailwindcss-radix": "^1.6.0"- },- "dependencies": {- "@tailwindcss/typography": {- "version": "0.5.7",- "resolved": "https://registry.npmjs.org/@tailwindcss/typography/-/typography-0.5.7.tgz",- "integrity": "sha512-JTTSTrgZfp6Ki4svhPA4mkd9nmQ/j9EfE7SbHJ1cLtthKkpW2OxsFXzSmxbhYbEkfNIyAyhle5p4SYyKRbz/jg==",- "requires": {- "lodash.castarray": "^4.4.0",- "lodash.isplainobject": "^4.0.6",- "lodash.merge": "^4.6.2",- "postcss-selector-parser": "6.0.10"- }- }}},"@tailwindcss/forms": {@@ -42914,6 +42846,17 @@"mini-svg-data-uri": "^1.2.3"}},+ "@tailwindcss/typography": {+ "version": "0.5.7",+ "resolved": "https://registry.npmjs.org/@tailwindcss/typography/-/typography-0.5.7.tgz",+ "integrity": "sha512-JTTSTrgZfp6Ki4svhPA4mkd9nmQ/j9EfE7SbHJ1cLtthKkpW2OxsFXzSmxbhYbEkfNIyAyhle5p4SYyKRbz/jg==",+ "requires": {+ "lodash.castarray": "^4.4.0",+ "lodash.isplainobject": "^4.0.6",+ "lodash.merge": "^4.6.2",+ "postcss-selector-parser": "6.0.10"+ }+ },"@testdeck/core": {"version": "0.2.1","resolved": "https://registry.npmjs.org/@testdeck/core/-/core-0.2.1.tgz",@@ -46118,15 +46061,6 @@"mini-svg-data-uri": "^1.2.3"}},- "@tailwindcss/typography": {- "version": "0.5.7",- "requires": {- "lodash.castarray": "^4.4.0",- "lodash.isplainobject": "^4.0.6",- "lodash.merge": "^4.6.2",- "postcss-selector-parser": "6.0.10"- }- },"tailwindcss-radix": {"version": "2.6.0"}@@ -56298,9 +56232,9 @@"devOptional": true},"postcss": {- "version": "8.4.17",- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.17.tgz",- "integrity": "sha512-UNxNOLQydcOFi41yHNMcKRZ39NeXlr8AxGuZJsdub8vIb12fHzcq37DTU/QtbI6WLxNg2gF9Z+8qtRwTj1UI1Q==",+ "version": "8.4.18",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.18.tgz",+ "integrity": "sha512-Wi8mWhncLJm11GATDaQKobXSNEYGUHeQLiQqDFG1qQ5UTDPTEvKw0Xt5NsTpktGTwLps3ByrWsBrG0rB8YQ9oA==","requires": {"nanoid": "^3.3.4","picocolors": "^1.0.0",@@ -60756,16 +60690,6 @@"integrity": "sha512-1c/sxp/4Qz4F6rCxiYqAnrmghCOFt5hHZ9Kd+rXFW5Mqev4C4XDOUMHdBH55HgnJZqngYhOE0r/XNkCtsIojig==","optional": true},- "@tailwindcss/typography": {- "version": "0.5.7",- "dev": true,- "requires": {- "lodash.castarray": "^4.4.0",- "lodash.isplainobject": "^4.0.6",- "lodash.merge": "^4.6.2",- "postcss-selector-parser": "6.0.10"- }- },"@types/react": {"version": "17.0.11","dev": true,@@ -62170,15 +62094,6 @@"typescript": "4.3.4"},"dependencies": {- "@tailwindcss/typography": {- "version": "0.5.7",- "requires": {- "lodash.castarray": "^4.4.0",- "lodash.isplainobject": "^4.0.6",- "lodash.merge": "^4.6.2",- "postcss-selector-parser": "6.0.10"- }- },"typescript": {"version": "4.3.4","dev": true@@ -63849,7 +63764,7 @@"@supabase/auth-ui-react": "^0.1.6","@supabase/supabase-js": "^2.0.0","@supabase/ui": "v0.37.0-alpha.80",- "@tailwindcss/typography": "^0.5.2",+ "@tailwindcss/typography": "0.5.7","@types/classnames": "^2.3.1","@types/jest": "^25.2.2","@types/marked": "^4.0.3",@@ -63861,7 +63776,7 @@"@types/react-copy-to-clipboard": "^4.3.0","@types/react-dom": "^17.0.11","@types/react-syntax-highlighter": "^13.5.2",- "autoprefixer": "^10.4.2",+ "autoprefixer": "^10.4.12","classnames": "^2.3.1","date-fns": "2.10.0","dayjs": "^1.11.4",@@ -63875,7 +63790,7 @@"next-seo": "^4.20.0","nodemailer": "^6.7.3","parse-numeric-range": "^1.3.0",- "postcss": "^8.4.16",+ "postcss": "^8.4.18","postcss-preset-env": "^6.7.0","prettier": "^2.2.1","react": "^17.0.2",@@ -63952,17 +63867,6 @@"tailwindcss-radix": "^1.6.0"}},- "@tailwindcss/typography": {- "version": "0.5.7",- "resolved": "https://registry.npmjs.org/@tailwindcss/typography/-/typography-0.5.7.tgz",- "integrity": "sha512-JTTSTrgZfp6Ki4svhPA4mkd9nmQ/j9EfE7SbHJ1cLtthKkpW2OxsFXzSmxbhYbEkfNIyAyhle5p4SYyKRbz/jg==",- "requires": {- "lodash.castarray": "^4.4.0",- "lodash.isplainobject": "^4.0.6",- "lodash.merge": "^4.6.2",- "postcss-selector-parser": "6.0.10"- }- },"@types/istanbul-reports": {"version": "1.1.2","resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz",diff --git a/spec/supabase_js_v2.yml b/spec/supabase_js_v2.ymlindex 35a485d7ca9..5010da72008 100644--- a/spec/supabase_js_v2.yml+++ b/spec/supabase_js_v2.yml@@ -81,6 +81,23 @@ pages:`supabase-js` uses the [`cross-fetch`](https://www.npmjs.com/package/cross-fetch) library to make HTTP requests,but an alternative `fetch` implementation can be provided as an option.This is most useful in environments where `cross-fetch` is not compatible (for instance Cloudflare Workers).+ - name: React Native options+ js: |+ ```js+ import { createClient } from '@supabase/supabase-js'+ import AsyncStorage from "@react-native-async-storage/async-storage";++ const supabase = createClient("https://xyzcompany.supabase.co", "public-anon-key" {+ auth: {+ storage: AsyncStorage,+ autoRefreshToken: true,+ persistSession: true,+ detectSessionInUrl: false,+ },+ });+ ```++ For React Native we recommend using `AsyncStorage` as the storage implementation for Supabase Auth.auth.signUp():title: 'signUp()'$ref: '@supabase/gotrue-js.GoTrueClient.signUp'