diff --git a/.github/workflows/update-js-libs.yml b/.github/workflows/update-js-libs.yml new file mode 100644 index 00000000000..4715581686c --- /dev/null +++ b/.github/workflows/update-js-libs.yml @@ -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' diff --git a/apps/docs/features/docs/Reference.sections.tsx b/apps/docs/features/docs/Reference.sections.tsx index 2da5829adc0..ca9197dab14 100644 --- a/apps/docs/features/docs/Reference.sections.tsx +++ b/apps/docs/features/docs/Reference.sections.tsx @@ -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' diff --git a/apps/studio/components/ui/Charts/ComposedChart.utils.tsx b/apps/studio/components/ui/Charts/ComposedChart.utils.tsx index abddab6bd64..b5c8134bf45 100644 --- a/apps/studio/components/ui/Charts/ComposedChart.utils.tsx +++ b/apps/studio/components/ui/Charts/ComposedChart.utils.tsx @@ -214,12 +214,9 @@ const CustomTooltip = ({ >

{dayjs(timestamp).format(DateTimeFormats.FULL_SECONDS)}

- {payload - .reverse() - .filter((entry: any) => entry.value !== 0) - .map((entry: any, index: number) => ( - - ))} + {payload.reverse().map((entry: any, index: number) => ( + + ))} {active && showTotal && (
Total diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 78798e906ac..397ad1df060 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -26,3 +26,6 @@ minimumReleaseAgeExclude: - '@ai-sdk/*' - '@supabase/mcp-server-supabase' - '@supabase/mcp-utils' + - '@supabase/auth-js' + - '@supabase/supabase-js' + - '@supabase/realtime-js'