The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: respect catalog version for postgrest-js (#39837)
Katerina Skroumpelou416df4afa48e
diff --git a/.github/workflows/update-js-libs.yml b/.github/workflows/update-js-libs.ymlindex aa41efd4db6..fb5e6f67059 100644--- a/.github/workflows/update-js-libs.yml+++ b/.github/workflows/update-js-libs.yml@@ -48,6 +48,9 @@ jobs:# Update @supabase/realtime-jssed -i "s/'@supabase\/realtime-js': .*/'@supabase\/realtime-js': ${{ github.event.inputs.version }}/" pnpm-workspace.yaml+ # Update @supabase/postgrest-js+ sed -i "s/'@supabase\/postgrest-js': .*/'@supabase\/postgrest-js': ${{ github.event.inputs.version }}/" pnpm-workspace.yaml+echo "Updated pnpm-workspace.yaml:"cat pnpm-workspace.yaml@@ -69,6 +72,7 @@ jobs:- Updated @supabase/supabase-js to ${{ github.event.inputs.version }}- Updated @supabase/auth-js to ${{ github.event.inputs.version }}- Updated @supabase/realtime-js to ${{ github.event.inputs.version }}+ - Updated @supabase/postgest-js to ${{ github.event.inputs.version }}- Refreshed pnpm-lock.yamlThis PR was created automatically.diff --git a/apps/ui-library/package.json b/apps/ui-library/package.jsonindex 05c09a053f4..50d4e479fb5 100644--- a/apps/ui-library/package.json+++ b/apps/ui-library/package.json@@ -47,7 +47,7 @@"@radix-ui/react-toggle-group": "*","@radix-ui/react-tooltip": "*","@react-router/fs-routes": "^7.4.0",- "@supabase/postgrest-js": "*",+ "@supabase/postgrest-js": "catalog:","@supabase/supa-mdx-lint": "0.2.6-alpha","@tanstack/react-query": "^5.83.0","@supabase/vue-blocks": "workspace:*",diff --git a/apps/ui-library/registry/default/blocks/infinite-query-hook/hooks/use-infinite-query.ts b/apps/ui-library/registry/default/blocks/infinite-query-hook/hooks/use-infinite-query.tsindex 93a8fe00f8b..8ca64107484 100644--- a/apps/ui-library/registry/default/blocks/infinite-query-hook/hooks/use-infinite-query.ts+++ b/apps/ui-library/registry/default/blocks/infinite-query-hook/hooks/use-infinite-query.ts@@ -1,7 +1,7 @@'use client'import { createClient } from '@/registry/default/fixtures/lib/supabase/client'-import { PostgrestQueryBuilder } from '@supabase/postgrest-js'+import { PostgrestQueryBuilder, type PostgrestClientOptions } from '@supabase/postgrest-js'import { type SupabaseClient } from '@supabase/supabase-js'import { useEffect, useRef, useSyncExternalStore } from 'react'@@ -44,8 +44,16 @@ type SupabaseTableName = keyof DatabaseSchema['Tables']// Extracts the table definition from the database typetype SupabaseTableData<T extends SupabaseTableName> = DatabaseSchema['Tables'][T]['Row']+// Default client options for PostgrestQueryBuilder+type DefaultClientOptions = PostgrestClientOptions+type SupabaseSelectBuilder<T extends SupabaseTableName> = ReturnType<- PostgrestQueryBuilder<DatabaseSchema, DatabaseSchema['Tables'][T], T>['select']+ PostgrestQueryBuilder<+ DefaultClientOptions,+ DatabaseSchema,+ DatabaseSchema['Tables'][T],+ T+ >['select']>// A function that modifies the query. Can be used to sort, filter, etc. If .range is used, it will be overwritten.diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex d54dc608eec..0201d52bb40 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -9,6 +9,9 @@ catalogs:'@supabase/auth-js':specifier: 2.75.1version: 2.75.1+ '@supabase/postgrest-js':+ specifier: 2.75.1+ version: 2.75.1'@supabase/realtime-js':specifier: 2.75.1version: 2.75.1@@ -1343,8 +1346,8 @@ importers:specifier: ^7.4.0version: 7.4.0(@react-router/[email protected](@types/[email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])'@supabase/postgrest-js':- specifier: '*'- version: 1.19.2+ specifier: 'catalog:'+ version: 2.75.1'@supabase/supa-mdx-lint':specifier: 0.2.6-alphaversion: 0.2.6-alpha@@ -8850,9 +8853,6 @@ packages:resolution: {integrity: sha512-vz5gc6RKNfDVnIfRUmH2ssTMYFI0U3MYOVyQ9R4YkzOS2dKSanjC4rTEDGjlMFwGTCUPW3N3pbY7HJIW81wMyg==}engines: {node: '>=16', npm: '>=8'}- '@supabase/[email protected]':- resolution: {integrity: sha512-MXRbk4wpwhWl9IN6rIY1mR8uZCCG4MZAEji942ve6nMwIqnBgBnZhZlON6zTTs6fgveMnoCILpZv1+K91jN+ow==}-'@supabase/[email protected]':resolution: {integrity: sha512-FiYBD0MaKqGW8eo4Xqu7/100Xm3ddgh+3qHtqS18yQRoglJTFRQCJzY1xkrGS0JFHE2YnbjL6XCiOBXiG8DK4Q==}@@ -28636,10 +28636,6 @@ snapshots:- pg-native- supports-color- '@supabase/[email protected]':- dependencies:- '@supabase/node-fetch': 2.6.15-'@supabase/[email protected]':dependencies:'@supabase/node-fetch': 2.6.15diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex ca580b63050..aeebeababa2 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -8,6 +8,7 @@ catalog:'@supabase/auth-js': 2.75.1'@supabase/realtime-js': 2.75.1'@supabase/supabase-js': 2.75.1+ '@supabase/postgrest-js': 2.75.1'@types/node': ^22.0.0'@types/react': ^18.3.0'@types/react-dom': ^18.3.0