From 4d94fbc268e8fbbd1986ddf40d1c40fbf358859f Mon Sep 17 00:00:00 2001 From: Katerina Skroumpelou Date: Tue, 7 Oct 2025 14:53:35 +0300 Subject: [PATCH 1/5] chore: minimumReleaseAgeExclude for all supabase js libs (#39325) --- pnpm-workspace.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 0924bcc260aab..9173bde0c62c9 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -40,9 +40,7 @@ minimumReleaseAgeExclude: - '@ai-sdk/*' - '@supabase/mcp-server-supabase' - '@supabase/mcp-utils' - - '@supabase/auth-js' - - '@supabase/supabase-js' - - '@supabase/realtime-js' + - '@supabase/*' onlyBuiltDependencies: - supabase From 6a2bb5cb7662b5b3d2c703a18a11671e59573417 Mon Sep 17 00:00:00 2001 From: Terry Sutton Date: Tue, 7 Oct 2025 10:17:31 -0230 Subject: [PATCH 2/5] Suggest with-supabase as the next starting point (#39184) --- apps/ui-library/components/mdx-components.tsx | 12 +++++++++++- .../content/docs/getting-started/quickstart.mdx | 12 +++++++++--- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/apps/ui-library/components/mdx-components.tsx b/apps/ui-library/components/mdx-components.tsx index ff192643d0b97..40bd29ad7168e 100644 --- a/apps/ui-library/components/mdx-components.tsx +++ b/apps/ui-library/components/mdx-components.tsx @@ -158,11 +158,21 @@ const components = { ), Callout, ComponentPreview, + CopyButton, TanStackBeta, + Card: ({ className, ...props }: React.HTMLAttributes) => ( +
+ ), LinkedCard: ({ className, ...props }: React.ComponentProps) => ( - + Next.js -

Next.js

-
+

Next.js

+
+

+ `$``npx create-next-app -e with-supabase` +

+ +
+ Date: Tue, 7 Oct 2025 15:07:23 +0100 Subject: [PATCH 3/5] fix: Protocol documentation for Realtime with bad heartbeat message (#39299) --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Chris Chinchilla --- apps/docs/content/guides/realtime/protocol.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/docs/content/guides/realtime/protocol.mdx b/apps/docs/content/guides/realtime/protocol.mdx index 9708c58683ad7..59aa688ce6d31 100644 --- a/apps/docs/content/guides/realtime/protocol.mdx +++ b/apps/docs/content/guides/realtime/protocol.mdx @@ -193,6 +193,12 @@ System messages are sent by the server to inform the client about the status of The heartbeat message should be sent at least every 25 seconds to avoid a connection timeout. Payload should be empty object. +For heartbeat, use the topic `phoenix` as it needs to be sent to the WebSocket server itself and not to a channel: + +```json +{ "topic": "phoenix", "event": "heartbeat", "payload": {}, "ref": "8" } +``` + #### Payload of access_token Used to setup a new token to be used by Realtime for authentication and to refresh the token to prevent the channel from closing. From 3d10ea31ab44d0a089cde37afc577f23984bc3e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filipe=20Caba=C3=A7o?= Date: Tue, 7 Oct 2025 15:07:52 +0100 Subject: [PATCH 4/5] realtime: clarify number of connections used by realtime (#38980) --------- Co-authored-by: Chris Chinchilla --- .../docs/content/guides/realtime/concepts.mdx | 32 ++++++++++++++++--- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/apps/docs/content/guides/realtime/concepts.mdx b/apps/docs/content/guides/realtime/concepts.mdx index 13595d4691c92..2f4537308081f 100644 --- a/apps/docs/content/guides/realtime/concepts.mdx +++ b/apps/docs/content/guides/realtime/concepts.mdx @@ -35,18 +35,40 @@ Realtime uses several database connections to perform several operations. As a u ### Database connections -Realtime uses several database connections to do several operations. Some of them, as a user, you are able to tune them. +Realtime uses several database connections to perform various operations. You can configure some of these connections through [Realtime Settings](/docs/guides/realtime/settings). -The connections are: +The connections include: - **Migrations**: Two temporary connections to run database migrations when needed -- **Authorization**: Configurable connection pool to check authorization policies on join -- **Postgres Changes**: 3 connection pools required +- **Authorization**: Configurable connection pool to check authorization policies on join that are always started. +- **Broadcast from database**: One connection to receive data from replication slot used to broadcast the changes to the clients that is always started. +- **Postgres Changes**: Multiple connection pools required. These pools are only started if you use Postgres Changes. - **Subscription management**: To manage the subscribers to Postgres Changes - **Subscription cleanup**: To cleanup the subscribers to Postgres Changes - **WAL pull**: To pull the changes from the database -The number of connections varies based on the instance size and your configuration in [Realtime Settings](/docs/guides/realtime/settings). +The number of connections varies based on your compute add-on size and configuration. The following table shows the default connection pool sizes for different compute add-on variants: + +| Compute Add-on | Broadcast from database | Authorization Pool Size | Subscription management | Subscription cleanup | WAL pull | +| -------------- | ----------------------- | ----------------------- | ----------------------- | -------------------- | -------- | +| Nano | 1 | 2 | 2 | 2 | 2 | +| Micro | 1 | 2 | 2 | 2 | 2 | +| Small | 1 | 5 | 4 | 4 | 4 | +| Medium | 1 | 5 | 4 | 4 | 4 | +| Large | 1 | 5 | 4 | 4 | 4 | +| XL | 1 | 10 | 7 | 7 | 7 | +| 2XL | 1 | 10 | 7 | 7 | 7 | +| 4XL | 1 | 10 | 7 | 7 | 7 | +| 8XL | 1 | 15 | 9 | 9 | 9 | +| 12XL | 1 | 15 | 9 | 9 | 9 | +| 16XL | 1 | 15 | 9 | 9 | 9 | +| >16XL | 1 | 15 | 9 | 9 | 9 | + + + +You can customize `Authorization Pool Size` through the `Database connection pool size` parameter in your Realtime configuration. If not specified, the default values shown in the table will be used. + + ### Replication slots From cc6645a43bdb553c87422276ee6a126ae920476f Mon Sep 17 00:00:00 2001 From: issuedat <165281975+issuedat@users.noreply.github.com> Date: Tue, 7 Oct 2025 17:34:12 +0200 Subject: [PATCH 5/5] fix: providers sheet should have a minimum width (#39229) --- .../interfaces/Auth/AuthProvidersForm/ProviderForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx b/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx index f667edc0cf0fa..f0b56014cf343 100644 --- a/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx +++ b/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx @@ -166,7 +166,7 @@ export const ProviderForm = ({ config, provider, isActive }: ProviderFormProps) - +