The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: downgrade swift version to v0
[email protected]87f6faab358b
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.tsindex feda6da0a93..123ca65454c 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts@@ -1053,7 +1053,7 @@ export const reference_python_v2 = {parent: '/reference',}-export const reference_swift_v1 = {+export const reference_swift_v0 = {icon: 'reference-swift',title: 'swift',url: 'guides/reference/swift',diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsxindex 85f1b9493ba..503187761d6 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.tsx@@ -16,7 +16,7 @@ import spec_csharp_v0 from '~/../../spec/supabase_csharp_v0.yml' assert { type:// @ts-expect-errorimport spec_python_v2 from '~/../../spec/supabase_py_v2.yml' assert { type: 'yml' }// @ts-expect-error-import spec_swift_v1 from '~/../../spec/supabase_swift_v1.yml' assert { type: 'yml' }+import spec_swift_v0 from '~/../../spec/supabase_swift_v0.yml' assert { type: 'yml' }// import { gen_v3 } from '~/lib/refGenerator/helpers'import apiCommonSections from '~/../../spec/common-api-sections.json'@@ -58,7 +58,7 @@ export type RefIdOptions =| 'reference_dart_v1'| 'reference_csharp_v0'| 'reference_python_v2'- | 'reference_swift_v1'+ | 'reference_swift_v0'| 'reference_cli'| 'reference_api'| 'reference_self_hosting_auth'@@ -151,7 +151,7 @@ const NavigationMenu = () => {break// swift v1 (latest)case url.includes(`/docs/reference/swift`) && url:- menuState.setMenuLevelId('reference_swift_v1')+ menuState.setMenuLevelId('reference_swift_v0')breakcase url.includes(`/docs/reference/cli/config`) && url:menuState.setMenuLevelId('supabase_cli')@@ -215,7 +215,7 @@ const NavigationMenu = () => {const isReference_Dart_V1 = 'reference_dart_v1' === levelconst isReference_Csharp_V0 = 'reference_csharp_v0' === levelconst isReference_Python_V2 = 'reference_python_v2' === level- const isReference_Swift_V1 = 'reference_swift_v1' === level+ const isReference_Swift_V0 = 'reference_swift_v0' === levelconst isReference_Cli = 'reference_cli' === levelconst isReference_Api = 'reference_api' === levelconst isReference_Self_Hosting_Auth = 'reference_self_hosting_auth' === level@@ -288,8 +288,8 @@ const NavigationMenu = () => {/><NavigationMenuRefListkey={'reference-swift-menu-v1'}- id={'reference_swift_v1'}- active={isReference_Swift_V1}+ id={'reference_swift_v0'}+ active={isReference_Swift_V0}commonSections={libCommonSections}lib="swift"spec={spec_swift_v1}diff --git a/apps/docs/layouts/SiteLayout.tsx b/apps/docs/layouts/SiteLayout.tsxindex 08cb34e0835..051a4186177 100644--- a/apps/docs/layouts/SiteLayout.tsx+++ b/apps/docs/layouts/SiteLayout.tsx@@ -91,7 +91,7 @@ const levelsData = {icon: '/docs/img/icons/menu/reference-python',name: 'Python Reference v2.0',},- reference_swift_v1: {+ reference_swift_v0: {icon: '/docs/img/icons/menu/reference-swift',name: 'Swift Reference v1.0',},diff --git a/apps/docs/pages/reference/swift/[...slug].tsx b/apps/docs/pages/reference/swift/[...slug].tsxindex d0991316c1f..d0e994ed1d6 100644--- a/apps/docs/pages/reference/swift/[...slug].tsx+++ b/apps/docs/pages/reference/swift/[...slug].tsx@@ -1,6 +1,6 @@import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'// @ts-expect-error-import spec from '~/../../spec/supabase_swift_v1.yml' assert { type: 'yml' }+import spec from '~/../../spec/supabase_swift_v0.yml' assert { type: 'yml' }import RefSectionHandler from '~/components/reference/RefSectionHandler'import { flattenSections } from '~/lib/helpers'import handleRefGetStaticPaths from '~/lib/mdx/handleRefStaticPaths'diff --git a/apps/docs/pages/reference/swift/crawlers/[...slug].tsx b/apps/docs/pages/reference/swift/crawlers/[...slug].tsxindex 00d29a772db..308eda7006f 100644--- a/apps/docs/pages/reference/swift/crawlers/[...slug].tsx+++ b/apps/docs/pages/reference/swift/crawlers/[...slug].tsx@@ -1,7 +1,7 @@import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'import typeSpec from '~/../../spec/enrichments/tsdoc_v2/combined.json'// @ts-expect-error-import spec from '~/../../spec/supabase_swift_v1.yml' assert { type: 'yml' }+import spec from '~/../../spec/supabase_swift_v0.yml' assert { type: 'yml' }import RefSectionHandler from '~/components/reference/RefSectionHandler'import { flattenSections } from '~/lib/helpers'import handleRefGetStaticPaths from '~/lib/mdx/handleRefStaticPaths'diff --git a/apps/docs/pages/reference/swift/v1/[...slug].tsx b/apps/docs/pages/reference/swift/v0/[...slug].tsxsimilarity index 85%rename from apps/docs/pages/reference/swift/v1/[...slug].tsxrename to apps/docs/pages/reference/swift/v0/[...slug].tsxindex 1ffdebde8c3..c27937c271f 100644--- a/apps/docs/pages/reference/swift/v1/[...slug].tsx+++ b/apps/docs/pages/reference/swift/v0/[...slug].tsx@@ -1,6 +1,6 @@import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'// @ts-expect-error-import spec from '~/../../spec/supabase_swift_v1.yml' assert { type: 'yml' }+import spec from '~/../../spec/supabase_swift_v0.yml' assert { type: 'yml' }import RefSectionHandler from '~/components/reference/RefSectionHandler'import { flattenSections } from '~/lib/helpers'import handleRefGetStaticPaths from '~/lib/mdx/handleRefStaticPaths'@@ -13,7 +13,7 @@ export default function JSReference(props) {}export async function getStaticProps() {- return handleRefStaticProps(sections, '/swift/v1')+ return handleRefStaticProps(sections, '/swift/v0')}export function getStaticPaths() {diff --git a/apps/docs/pages/reference/swift/v1/crawlers/[...slug].tsx b/apps/docs/pages/reference/swift/v0/crawlers/[...slug].tsxsimilarity index 91%rename from apps/docs/pages/reference/swift/v1/crawlers/[...slug].tsxrename to apps/docs/pages/reference/swift/v0/crawlers/[...slug].tsxindex 13ae4435ddd..d89222f1f22 100644--- a/apps/docs/pages/reference/swift/v1/crawlers/[...slug].tsx+++ b/apps/docs/pages/reference/swift/v0/crawlers/[...slug].tsx@@ -1,7 +1,7 @@import clientLibsCommonSections from '~/../../spec/common-client-libs-sections.json'import typeSpec from '~/../../spec/enrichments/tsdoc_v2/combined.json'// @ts-expect-error-import spec from '~/../../spec/supabase_swift_v1.yml' assert { type: 'yml' }+import spec from '~/../../spec/supabase_swift_v0.yml' assert { type: 'yml' }import RefSectionHandler from '~/components/reference/RefSectionHandler'import { flattenSections } from '~/lib/helpers'import handleRefGetStaticPaths from '~/lib/mdx/handleRefStaticPaths'@@ -35,7 +35,7 @@ export default function JSReference(props) {}export async function getStaticProps() {- return handleRefStaticProps(sections, '/swift/v1')+ return handleRefStaticProps(sections, '/swift/v0')}export function getStaticPaths() {diff --git a/spec/common-client-libs-sections.json b/spec/common-client-libs-sections.jsonindex d5721f6bfae..06bacd153c6 100644--- a/spec/common-client-libs-sections.json+++ b/spec/common-client-libs-sections.json@@ -14,7 +14,7 @@"reference_javascript_v1","reference_dart_v0","reference_python_v2",- "reference_swift_v1"+ "reference_swift_v0"]},{@@ -34,7 +34,7 @@"reference_dart_v1","reference_python_v2","reference_csharp_v0",- "reference_swift_v1"+ "reference_swift_v0"]},{@@ -47,7 +47,7 @@"reference_dart_v1","reference_python_v2","reference_csharp_v0",- "reference_swift_v1"+ "reference_swift_v0"]},{@@ -898,7 +898,7 @@"reference_dart_v0","reference_python_v2","reference_csharp_v0",- "reference_swift_v1"+ "reference_swift_v0"],"items": [{diff --git a/spec/supabase_swift_v1.yml b/spec/supabase_swift_v0.ymlsimilarity index 99%rename from spec/supabase_swift_v1.ymlrename to spec/supabase_swift_v0.ymlindex bb6db9ac8f8..7928bcc95bd 100644--- a/spec/supabase_swift_v1.yml+++ b/spec/supabase_swift_v0.yml@@ -7,7 +7,7 @@ info:Supabase Swift.- specUrl: https://github.com/supabase/supabase/edit/master/spec/supabase_swift_v1.yml+ specUrl: https://github.com/supabase/supabase/edit/master/spec/supabase_swift_v0.ymlslugPrefix: '/'libraries:- id: 'Swift'