Merge remote-tracking branch 'origin/master' into feat/auth-overview-feature-flag

This commit is contained in:
kemal committed 2025-10-01 14:51:15 +01:00
commit 583f602674
4 files changed
+84 -8

No files matched your search

+76
View File
@@ -0,0 +1,76 @@
name: Update JS Libraries
on:
workflow_dispatch:
inputs:
version:
description: 'Version to update to'
required: true
type: string
source:
description: 'Source of the update'
required: false
type: string
default: 'manual'
permissions:
pull-requests: write
contents: write
jobs:
update-js-libs:
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- uses: actions/checkout@v4
with:
ref: master
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- name: Update @supabase/*-js packages in pnpm-workspace.yaml
run: |
# Update @supabase/supabase-js
sed -i "s/'@supabase\/supabase-js': .*/'@supabase\/supabase-js': ^${{ github.event.inputs.version }}/" pnpm-workspace.yaml
# Update @supabase/auth-js
sed -i "s/'@supabase\/auth-js': .*/'@supabase\/auth-js': ^${{ github.event.inputs.version }}/" pnpm-workspace.yaml
# Update @supabase/realtime-js
sed -i "s/'@supabase\/realtime-js': .*/'@supabase\/realtime-js': ^${{ github.event.inputs.version }}/" pnpm-workspace.yaml
echo "Updated pnpm-workspace.yaml:"
cat pnpm-workspace.yaml
- name: Install dependencies
run: pnpm i
- name: Create pull request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'feat: update @supabase/*-js libraries to v${{ github.event.inputs.version }}'
title: 'feat: update @supabase/*-js libraries to v${{ github.event.inputs.version }}'
body: |
This PR updates @supabase/*-js libraries to version ${{ github.event.inputs.version }}.
**Source**: ${{ github.event.inputs.source }}
**Changes**:
- 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 }}
- Refreshed pnpm-lock.yaml
This PR was created automatically.
branch: 'gha/auto-update-js-libs-v${{ github.event.inputs.version }}'
base: 'master'
@@ -4,7 +4,7 @@ import { Tabs_Shadcn_, TabsContent_Shadcn_, TabsList_Shadcn_, TabsTrigger_Shadcn
import { isFeatureEnabled } from 'common'
import ApiSchema from '~/components/ApiSchema'
import { REFERENCES } from '~/content/navigation.references'
import { clientSdkIds, REFERENCES } from '~/content/navigation.references'
import { MDXRemoteRefs, getRefMarkdown } from '~/features/docs/Reference.mdx'
import type { MethodTypes } from '~/features/docs/Reference.typeSpec'
import {
@@ -43,7 +43,7 @@ async function RefSections({ libraryId, version }: RefSectionsProps) {
flattenedSections = trimIntro(flattenedSections)
}
if (!isFeatureEnabled('sdk:auth')) {
if (!isFeatureEnabled('sdk:auth') && clientSdkIds.includes(libraryId)) {
flattenedSections = flattenedSections?.filter(
(section) =>
'product' in section && section.product !== 'auth' && section.product !== 'auth-admin'
@@ -214,12 +214,9 @@ const CustomTooltip = ({
>
<p className="font-medium">{dayjs(timestamp).format(DateTimeFormats.FULL_SECONDS)}</p>
<div className="grid gap-0">
{payload
.reverse()
.filter((entry: any) => entry.value !== 0)
.map((entry: any, index: number) => (
<LabelItem key={`${entry.name}-${index}`} entry={entry} />
))}
{payload.reverse().map((entry: any, index: number) => (
<LabelItem key={`${entry.name}-${index}`} entry={entry} />
))}
{active && showTotal && (
<div className="flex md:flex-col gap-1 md:gap-0 text-foreground mt-1">
<span className="flex-grow text-foreground-lighter">Total</span>
+3
View File
@@ -26,3 +26,6 @@ minimumReleaseAgeExclude:
- '@ai-sdk/*'
- '@supabase/mcp-server-supabase'
- '@supabase/mcp-utils'
- '@supabase/auth-js'
- '@supabase/supabase-js'
- '@supabase/realtime-js'