Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat: update @supabase/*-js libraries to v2.87.0 (#41160)

github-actions[bot]d30f85b4959d
diff --git a/apps/studio/components/interfaces/Realtime/Inspector/useRealtimeMessages.ts b/apps/studio/components/interfaces/Realtime/Inspector/useRealtimeMessages.ts
index eeb3b60f7b2..88ac870e16e 100644
--- a/apps/studio/components/interfaces/Realtime/Inspector/useRealtimeMessages.ts
+++ b/apps/studio/components/interfaces/Realtime/Inspector/useRealtimeMessages.ts
@@ -1,9 +1,5 @@
import { RealtimeChannel, RealtimeClient } from '@supabase/realtime-js'
-import {
- DEFAULT_GLOBAL_OPTIONS,
- DEFAULT_REALTIME_OPTIONS,
-} from '@supabase/supabase-js/dist/main/lib/constants'
-import { merge, sortBy, take } from 'lodash'
+import { sortBy, take } from 'lodash'
import { Dispatch, SetStateAction, useCallback, useEffect, useReducer, useState } from 'react'
import { toast } from 'sonner'
@@ -13,6 +9,8 @@ import { EMPTY_ARR } from 'lib/void'
import { useRoleImpersonationStateSnapshot } from 'state/role-impersonation-state'
import type { LogData } from './Messages.types'
+const DEFAULT_HEADERS = { 'X-Client-Info': 'supabase-js-web/studio' }
+
function reducer(
state: LogData[],
action: { type: 'add'; payload: { messageType: string; metadata: any } } | { type: 'clear' }
@@ -101,13 +99,10 @@ export const useRealtimeMessages = (
return
}
- const realtimeOptions = merge(DEFAULT_REALTIME_OPTIONS, { params: { log_level: logLevel } })
-
const options = {
vsn: '2.0.0',
- headers: DEFAULT_GLOBAL_OPTIONS.headers,
- ...realtimeOptions,
- params: { apikey: token, ...realtimeOptions.params },
+ headers: DEFAULT_HEADERS,
+ params: { apikey: token, log_level: logLevel },
}
const realtimeClient = new RealtimeClient(realtimeUrl, options)
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 089b8af8a5a..dbf235f9b9d 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -10,17 +10,17 @@ catalogs:
specifier: ^10.26.0
version: 10.27.0
'@supabase/auth-js':
- specifier: 2.86.0
- version: 2.86.0
+ specifier: 2.87.0
+ version: 2.87.0
'@supabase/postgrest-js':
- specifier: 2.86.0
- version: 2.86.0
+ specifier: 2.87.0
+ version: 2.87.0
'@supabase/realtime-js':
- specifier: 2.86.0
- version: 2.86.0
+ specifier: 2.87.0
+ version: 2.87.0
'@supabase/supabase-js':
- specifier: 2.86.0
- version: 2.86.0
+ specifier: 2.87.0
+ version: 2.87.0
'@types/node':
specifier: ^22.0.0
version: 22.13.14
@@ -71,11 +71,11 @@ overrides:
'@redocly/respect-core>js-yaml': ^4.1.1
'@tanstack/directive-functions-plugin>vite': ^7.1.11
'@tanstack/react-start-plugin>vite': ^7.1.11
- vinxi>vite: ^7.1.11
- refractor>prismjs: ^1.30.0
esbuild: ^0.25.2
+ refractor>prismjs: ^1.30.0
tar: ^7.0.0
tmp: ^0.2.4
+ vinxi>vite: ^7.1.11
importers:
@@ -423,7 +423,7 @@ importers:
'@supabase/supabase-js':
specifier: 'catalog:'
- version: 2.86.0
+ version: 2.87.0
'@tailwindcss/container-queries':
specifier: ^0.1.1
@@ -850,7 +850,7 @@ importers:
version: 7.5.0
'@supabase/auth-js':
specifier: 'catalog:'
- version: 2.86.0
+ version: 2.87.0
'@supabase/mcp-server-supabase':
specifier: ^0.5.8
version: 0.5.8([email protected])
@@ -862,7 +862,7 @@ importers:
version: link:../../packages/pg-meta
'@supabase/realtime-js':
specifier: 'catalog:'
- version: 2.86.0
+ version: 2.87.0
'@supabase/shared-types':
specifier: 0.1.83
version: 0.1.83
@@ -871,7 +871,7 @@ importers:
'@supabase/supabase-js':
specifier: 'catalog:'
- version: 2.86.0
+ version: 2.87.0
'@tanstack/react-query':
specifier: ^4.42.0
@@ -1370,7 +1370,7 @@ importers:
'@supabase/postgrest-js':
specifier: 'catalog:'
- version: 2.86.0
+ version: 2.87.0
'@supabase/supa-mdx-lint':
specifier: 0.2.6-alpha
version: 0.2.6-alpha
@@ -1494,10 +1494,10 @@ importers:
version: 1.6.0
'@supabase/ssr':
specifier: ^0.7.0
- version: 0.7.0(@supabase/[email protected])
+ version: 0.7.0(@supabase/[email protected])
'@supabase/supabase-js':
specifier: 'catalog:'
- version: 2.86.0
+ version: 2.87.0
'@tanstack/react-router':
specifier: ^1.114.27
@@ -1608,7 +1608,7 @@ importers:
'@supabase/supabase-js':
specifier: 'catalog:'
- version: 2.86.0
+ version: 2.87.0
'@vercel/og':
specifier: ^0.6.2
version: 0.6.2
@@ -1840,10 +1840,10 @@ importers:
dependencies:
'@supabase/ssr':
specifier: ^0.7.0
- version: 0.7.0(@supabase/[email protected])
+ version: 0.7.0(@supabase/[email protected])
'@supabase/supabase-js':
specifier: 'catalog:'
- version: 2.86.0
+ version: 2.87.0
class-variance-authority:
specifier: ^0.7.1
version: 0.7.1
@@ -1883,7 +1883,7 @@ importers:
version: 1.56.1
'@supabase/supabase-js':
specifier: 'catalog:'
- version: 2.86.0
+ version: 2.87.0
cross-fetch:
specifier: ^4.1.0
version: 4.1.0([email protected])
@@ -1908,7 +1908,7 @@ importers:
version: 0.18.5
'@supabase/supabase-js':
specifier: 'catalog:'
- version: 2.86.0
+ version: 2.87.0
ai:
specifier: 5.0.52
version: 5.0.52([email protected])
@@ -2002,10 +2002,10 @@ importers:
dependencies:
'@supabase/auth-js':
specifier: 'catalog:'
- version: 2.86.0
+ version: 2.87.0
'@supabase/supabase-js':
specifier: 'catalog:'
- version: 2.86.0
+ version: 2.87.0
'@types/dat.gui':
specifier: ^0.7.12
version: 0.7.12
@@ -2482,7 +2482,7 @@ importers:
'@supabase/supabase-js':
specifier: 'catalog:'
- version: 2.86.0
+ version: 2.87.0
'@vitest/coverage-v8':
specifier: ^3.2.0
@@ -8579,12 +8579,12 @@ packages:
resolution: {integrity: sha512-Cq3KKe+G1o7PSBMbmrgpT2JgBeyH2THHr3RdIX2MqF7AnBuspIMgtZ3ktcCgP7kZsTMvnmWymr7zZCT1zeWbMw==}
engines: {node: '>=12.16'}
- '@supabase/[email protected]':
- resolution: {integrity: sha512-3xPqMvBWC6Haqpr6hEWmSUqDq+6SA1BAEdbiaHdAZM9QjZ5uiQJ+6iD9pZOzOa6MVXZh4GmwjhC9ObIG0K1NcA==}
+ '@supabase/[email protected]':
+ resolution: {integrity: sha512-Otv/fjkyev9cH55VoZHwbzDd5N8y1SNREqDpzE8cqI2KnlHAkr0g6ZWv7d8elVKhS3le09xvAeRaoONGaRc8sA==}
engines: {node: '>=20.0.0'}
- '@supabase/[email protected]':
- resolution: {integrity: sha512-AlOoVfeaq9XGlBFIyXTmb+y+CZzxNO4wWbfgRM6iPpNU5WCXKawtQYSnhivi3UVxS7GA0rWovY4d6cIAxZAojA==}
+ '@supabase/[email protected]':
+ resolution: {integrity: sha512-L4Y6PD8gyeWMZeHXiwywICIJvEWnnwn8E3Z7V3Wn60/N+jDKMaRJlaCncPf8rhHzFuJlabqRiVEy5nCKjmAnXA==}
engines: {node: '>=20.0.0'}
'@supabase/[email protected]':
@@ -8601,12 +8601,12 @@ packages:
resolution: {integrity: sha512-vz5gc6RKNfDVnIfRUmH2ssTMYFI0U3MYOVyQ9R4YkzOS2dKSanjC4rTEDGjlMFwGTCUPW3N3pbY7HJIW81wMyg==}
engines: {node: '>=16', npm: '>=8'}
- '@supabase/[email protected]':
- resolution: {integrity: sha512-QVf+wIXILcZJ7IhWhWn+ozdf8B+oO0Ulizh2AAPxD/6nQL+x3r9lJ47a+fpc/jvAOGXMbkeW534Kw6jz7e8iIA==}
+ '@supabase/[email protected]':
+ resolution: {integrity: sha512-2+86Iyq9INVQE++L/kCWSoWApeoU4CVO6VKJrzaxGQGESylTVam5mqVqC0LQnjZ39kIKQgYmZ3yylXMmPNFHJQ==}
engines: {node: '>=20.0.0'}
- '@supabase/[email protected]':
- resolution: {integrity: sha512-dyS8bFoP29R/sj5zLi0AP3JfgG8ar1nuImcz5jxSx7UIW7fbFsXhUCVrSY2Ofo0+Ev6wiATiSdBOzBfWaiFyPA==}
+ '@supabase/[email protected]':
+ resolution: {integrity: sha512-38l2jg9yb9cMos3cVWuX9X+nMFZFzW8sD/MJiVvbpRes9gPZ210AMGExYU8/kix5uq/ymSoSsKLnV8DhXYWqOg==}
engines: {node: '>=20.0.0'}
'@supabase/[email protected]':
@@ -8620,8 +8620,8 @@ packages:
peerDependencies:
'@supabase/supabase-js': ^2.43.4
- '@supabase/[email protected]':
- resolution: {integrity: sha512-PM47jX/Mfobdtx7NNpoj9EvlrkapAVTQBZgGGslEXD6NS70EcGjhgRPBItwHdxZPM5GwqQ0cGMN06uhjeY2mHQ==}
+ '@supabase/[email protected]':
+ resolution: {integrity: sha512-luTghajY3IrrKglP5bjf2/51ASg5xaZUALsZuzR23RmuMg4lc4pzq4TxEgnkLoUGDT7Ppr9+uSgvIhf1snXbAw==}
engines: {node: '>=20.0.0'}
'@supabase/[email protected]':
@@ -8714,8 +8714,8 @@ packages:
resolution: {integrity: sha512-TNbBLSofM6jQg3JwzO4lttd59dScTTzW4p504/OWcgRWghQLRNfxXRJJtdui83gBMLWpgeUZqvgtfYIwS1Flzw==}
hasBin: true
- '@supabase/[email protected]':
- resolution: {integrity: sha512-BaC9sv5+HGNy1ulZwY8/Ev7EjfYYmWD4fOMw9bDBqTawEj6JHAiOHeTwXLRzVaeSay4p17xYLN2NSCoGgXMQnw==}
+ '@supabase/[email protected]':
+ resolution: {integrity: sha512-4u8JtF8qPW1V1FEcfqeRFU/9LK6CNjuLpDcJOjL1npobMPFCQhCQsWCYBnRlyf3QN7o7LG5zSKFRsmk8wJK/+Q==}
engines: {node: '>=20.0.0'}
@@ -13149,8 +13149,8 @@ packages:
resolution: {integrity: sha512-ygGZLjmXfPHj+ZWh6LwbC37l43MhfztxetbFCoYTM2VjkIUpeHgSNn7QIyVFj7YQ1Wl9Cbw5sholVJPzWvC2MQ==}
- resolution: {integrity: sha512-kmgmea2nguZEvRqW79gDqNXyxA3OS5WIgMVffrHpqXV4F/J4UmNIw2vstixioLTNSkd5rFB8G0s3Lwzogm6OFw==}
+ resolution: {integrity: sha512-1dhVQZXhcHje7798IVM+xoo/1ZdVfzOMIc8/rgVSijRK38EDqOJoGula9N/8ZI5RD8QTxNQtK/Gozpr+qUqRRA==}
engines: {node: '>=20.0.0'}
@@ -27364,11 +27364,11 @@ snapshots:
'@stripe/[email protected]': {}
- '@supabase/[email protected]':
+ '@supabase/[email protected]':
dependencies:
tslib: 2.8.1
- '@supabase/[email protected]':
+ '@supabase/[email protected]':
dependencies:
tslib: 2.8.1
@@ -27415,11 +27415,11 @@ snapshots:
- pg-native
- supports-color
- '@supabase/[email protected]':
+ '@supabase/[email protected]':
dependencies:
tslib: 2.8.1
- '@supabase/[email protected]':
+ '@supabase/[email protected]':
dependencies:
'@types/phoenix': 1.6.6
'@types/ws': 8.18.1
@@ -27440,14 +27440,14 @@ snapshots:
- encoding
- supports-color
- '@supabase/[email protected](@supabase/[email protected])':
+ '@supabase/[email protected](@supabase/[email protected])':
dependencies:
- '@supabase/supabase-js': 2.86.0
+ '@supabase/supabase-js': 2.87.0
cookie: 1.0.2
- '@supabase/[email protected]':
+ '@supabase/[email protected]':
dependencies:
- iceberg-js: 0.8.0
+ iceberg-js: 0.8.1
tslib: 2.8.1
'@supabase/[email protected]':
@@ -27514,13 +27514,13 @@ snapshots:
'@supabase/supa-mdx-lint-win32-x64': 0.3.1
node-pty: 1.0.0
- '@supabase/[email protected]':
+ '@supabase/[email protected]':
dependencies:
- '@supabase/auth-js': 2.86.0
- '@supabase/functions-js': 2.86.0
- '@supabase/postgrest-js': 2.86.0
- '@supabase/realtime-js': 2.86.0
- '@supabase/storage-js': 2.86.0
+ '@supabase/auth-js': 2.87.0
+ '@supabase/functions-js': 2.87.0
+ '@supabase/postgrest-js': 2.87.0
+ '@supabase/realtime-js': 2.87.0
+ '@supabase/storage-js': 2.87.0
transitivePeerDependencies:
- bufferutil
- utf-8-validate
@@ -33110,7 +33110,7 @@ snapshots:
dependencies:
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index d20b86819b0..57a5989b287 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -6,10 +6,10 @@ packages:
catalog:
'@sentry/nextjs': ^10.26.0
- '@supabase/auth-js': 2.86.0
- '@supabase/postgrest-js': 2.86.0
- '@supabase/realtime-js': 2.86.0
- '@supabase/supabase-js': 2.86.0
+ '@supabase/auth-js': 2.87.0
+ '@supabase/postgrest-js': 2.87.0
+ '@supabase/realtime-js': 2.87.0
+ '@supabase/supabase-js': 2.87.0
'@types/node': ^22.0.0
'@types/react': ^18.3.0
'@types/react-dom': ^18.3.0