mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
chore: upgrade to node 20 (#22240)
This commit is contained in:
1 parent
67e1c3380d
commit
27f9f96ff7
55 files changed
+3245
-1452
No files matched your search
@@ -24,10 +24,6 @@ jobs:
|
||||
env:
|
||||
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [18.x]
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./packages/ai-commands
|
||||
@@ -37,10 +33,10 @@ jobs:
|
||||
with:
|
||||
sparse-checkout: |
|
||||
packages
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'npm'
|
||||
- name: Install deps
|
||||
run: npm ci
|
||||
|
||||
@@ -15,10 +15,6 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [18.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -26,10 +22,10 @@ jobs:
|
||||
apps/docs
|
||||
packages
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install deps
|
||||
|
||||
@@ -21,16 +21,12 @@ jobs:
|
||||
timeout-minutes: 60
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [18.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'npm'
|
||||
- uses: supabase/setup-cli@v1
|
||||
- name: Install dependencies
|
||||
|
||||
@@ -19,9 +19,9 @@ jobs:
|
||||
with:
|
||||
sparse-checkout: apps
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@v3
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
node-version-file: '.nvmrc'
|
||||
# Installing all dependencies takes up to three minutes, hacking around to only installing prettier+deps
|
||||
- name: Download dependencies
|
||||
run: |
|
||||
@@ -42,9 +42,9 @@ jobs:
|
||||
sparse-checkout: |
|
||||
i18n
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@v3
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
node-version-file: '.nvmrc'
|
||||
# Installing all dependencies takes up to three minutes, hacking around to only installing prettier+deps
|
||||
- name: Download dependencies
|
||||
run: |
|
||||
|
||||
@@ -42,9 +42,9 @@ jobs:
|
||||
supabase
|
||||
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@v3
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
node-version-file: '.nvmrc'
|
||||
|
||||
- name: Download dependencies
|
||||
run: npm ci
|
||||
|
||||
@@ -25,29 +25,23 @@ jobs:
|
||||
# Uses larger hosted runner as it significantly decreases build times
|
||||
runs-on: [larger-runner-4cpu]
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [18.x]
|
||||
cmd:
|
||||
- npm run test:studio
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
apps/studio
|
||||
packages
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'npm'
|
||||
- name: Install deps
|
||||
run: npm ci
|
||||
working-directory: ./
|
||||
- name: Run ${{ matrix.cmd }}
|
||||
- name: Run Tests
|
||||
env:
|
||||
# Default is 2 GB, increase to have less frequent OOM errors
|
||||
NODE_OPTIONS: '--max_old_space_size=3072'
|
||||
run: ${{ matrix.cmd }}
|
||||
run: npm run test:studio
|
||||
working-directory: ./
|
||||
@@ -15,18 +15,14 @@ jobs:
|
||||
# Uses larger hosted runner as it significantly decreases build times
|
||||
runs-on: [larger-runner-4cpu]
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [18.x]
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install deps
|
||||
|
||||
@@ -15,20 +15,16 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [18.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
packages
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install deps
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
'use client'
|
||||
|
||||
import { Message as MessageItem } from 'ai/react'
|
||||
import type { Message as MessageItem } from 'ai/react'
|
||||
import Link from 'next/link'
|
||||
import { useParams, usePathname } from 'next/navigation'
|
||||
import { cn } from 'ui'
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"@gregnr/libpg-query": "13.4.0-dev.12",
|
||||
"@monaco-editor/react": "^4.6.0",
|
||||
"@supabase/ssr": "^0.1.0",
|
||||
"@tanstack/react-query": "^5.7.2",
|
||||
"@tanstack/react-query": "^5.13.4",
|
||||
"ai": "^2.2.31",
|
||||
"common": "*",
|
||||
"config": "*",
|
||||
@@ -23,7 +23,7 @@
|
||||
"lodash": "^4.17.21",
|
||||
"lucide-react": "^0.338.0",
|
||||
"next": "^14.0.3",
|
||||
"openai": "^4.17.0",
|
||||
"openai": "^4.20.1",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-flow": "^1.0.3",
|
||||
@@ -34,12 +34,12 @@
|
||||
"zod": "^3.22.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^18.11.9",
|
||||
"@types/node": "^20.11.16",
|
||||
"@types/react": "^18.2.24",
|
||||
"@types/react-dom": "^18.2.8",
|
||||
"autoprefixer": "10.4.14",
|
||||
"autoprefixer": "^10.4.14",
|
||||
"nextjs-node-loader": "^1.1.5-alpha.0",
|
||||
"postcss": "8.4.31",
|
||||
"typescript": "^5.2.2"
|
||||
"postcss": "^8.4.31",
|
||||
"typescript": "^5.4.3"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es2017",
|
||||
"target": "ES2021",
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
|
||||
@@ -46,7 +46,7 @@ jobs:
|
||||
Here is the sample pipeline configuration to deploy via GitLab CI.
|
||||
|
||||
```yaml
|
||||
image: node:18
|
||||
image: node:20
|
||||
|
||||
# List of stages for jobs, and their order of execution
|
||||
stages:
|
||||
@@ -82,7 +82,7 @@ deploy-function:
|
||||
Here is the sample pipeline configuration to deploy via Bitbucket.
|
||||
|
||||
```yaml
|
||||
image: node:18
|
||||
image: node:20
|
||||
|
||||
pipelines:
|
||||
default:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ResponseError } from '~/types/fetch'
|
||||
import type { ResponseError } from '~/types/fetch'
|
||||
import { get } from './fetchWrappers'
|
||||
import { UseQueryOptions, useQuery } from '@tanstack/react-query'
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
|
||||
import { get } from './fetchWrappers'
|
||||
import { components } from '~/types/api'
|
||||
import { ResponseError } from '~/types/fetch'
|
||||
import type { components } from '~/types/api'
|
||||
import type { ResponseError } from '~/types/fetch'
|
||||
|
||||
const organizationKeys = {
|
||||
list: () => ['organizations'] as const,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ResponseError } from '~/types/fetch'
|
||||
import type { ResponseError } from '~/types/fetch'
|
||||
import { get } from './fetchWrappers'
|
||||
import { UseQueryOptions, useQuery } from '@tanstack/react-query'
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useQuery, UseQueryOptions } from '@tanstack/react-query'
|
||||
import { ResponseError } from '~/types/fetch'
|
||||
import type { ResponseError } from '~/types/fetch'
|
||||
import { get } from './fetchWrappers'
|
||||
|
||||
const projectKeys = {
|
||||
|
||||
@@ -59,12 +59,12 @@
|
||||
"next-plugin-yaml": "^1.0.1",
|
||||
"next-seo": "^5.14.1",
|
||||
"next-themes": "^0.2.1",
|
||||
"openai": "^4.17.0",
|
||||
"openai": "^4.20.1",
|
||||
"openapi-fetch": "^0.8.2",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-error-boundary": "^4.0.12",
|
||||
"react-intersection-observer": "^9.5.2",
|
||||
"react-intersection-observer": "^9.5.3",
|
||||
"react-markdown": "^8.0.3",
|
||||
"rehype-katex": "^7.0.0",
|
||||
"rehype-slug": "^5.1.0",
|
||||
@@ -79,13 +79,13 @@
|
||||
"unist-util-filter": "^4.0.1",
|
||||
"unist-util-visit": "^4.1.2",
|
||||
"uuid": "^9.0.1",
|
||||
"valtio": "^1.11.2"
|
||||
"valtio": "^1.12.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@aws-sdk/client-secrets-manager": "^3.410.0",
|
||||
"@types/hast": "^2.3.4",
|
||||
"@types/jsrsasign": "^10.5.12",
|
||||
"@types/node": "^18.11.9",
|
||||
"@types/node": "^20.11.16",
|
||||
"@types/react": "^18.2.24",
|
||||
"@types/unist": "^2.0.6",
|
||||
"acorn": "^8.11.3",
|
||||
@@ -95,10 +95,10 @@
|
||||
"globby": "^13.2.2",
|
||||
"jest-environment-jsdom": "^29.7.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"openapi-types": "^12.0.2",
|
||||
"openapi-types": "^12.1.3",
|
||||
"openapi-typescript": "^6.7.4",
|
||||
"tsconfig": "*",
|
||||
"tsx": "^4.6.2",
|
||||
"typescript": "^5.2.2"
|
||||
"typescript": "^5.4.3"
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@
|
||||
"~/*": ["./*"],
|
||||
"@ui/*": ["./../../packages/ui/src/*"] // handle ui package paths
|
||||
},
|
||||
"target": "es2015",
|
||||
"target": "ES2021",
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"@storybook/test": "^8.0.0-rc.1",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"storybook": "^8.0.0-rc.1"
|
||||
"storybook": "^8.0.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/node-logger": "^8.0.0-rc.1"
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
18
|
||||
@@ -8,7 +8,7 @@
|
||||
# docker builder prune
|
||||
# docker build . -f studio/Dockerfile --target production -t studio:latest --no-cache
|
||||
|
||||
FROM node:18-slim as base
|
||||
FROM node:20-slim as base
|
||||
|
||||
# Fixes issues with Sentry CLI and SSL certificates during build
|
||||
# TODO: Git is added because it's needed to build libpg, remove it once they publish a binary on the S3 bucket
|
||||
@@ -27,7 +27,7 @@ WORKDIR /app
|
||||
FROM base as turbo
|
||||
COPY . .
|
||||
|
||||
RUN npx turbo@1.12.3 prune --scope=studio --docker
|
||||
RUN npx turbo@1.30.0 prune --scope=studio --docker
|
||||
|
||||
# Install dev dependencies (only if needed)
|
||||
FROM base as deps
|
||||
@@ -56,5 +56,5 @@ COPY --from=builder /app/apps/studio/.next/standalone ./
|
||||
COPY --from=builder /app/apps/studio/.next/static ./apps/studio/.next/static
|
||||
EXPOSE 3000
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
HEALTHCHECK --interval=5s --timeout=5s --retries=3 CMD node -e "require('http').get('http://localhost:3000/api/profile', (r) => {if (r.statusCode !== 200) throw new Error(r.statusCode)})"
|
||||
HEALTHCHECK --interval=5s --timeout=5s --retries=3 CMD node -e "fetch('http://localhost:3000/api/profile').then((r) => {if (r.status !== 200) throw new Error(r.status)})"
|
||||
CMD ["node", "apps/studio/server.js"]
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import type { PostgresPolicy } from '@supabase/postgres-meta'
|
||||
import { Message } from 'ai/react'
|
||||
import type { Message } from 'ai/react'
|
||||
import { uuidv4 } from 'lib/helpers'
|
||||
import { isEqual } from 'lodash'
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import { useDatabaseExtensionsQuery } from 'data/database-extensions/database-ex
|
||||
import { useDatabaseFunctionCreateMutation } from 'data/database-functions/database-functions-create-mutation'
|
||||
import { useDatabaseFunctionUpdateMutation } from 'data/database-functions/database-functions-update-mutation'
|
||||
import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas'
|
||||
import { FormSchema } from 'types'
|
||||
import type { FormSchema } from 'types'
|
||||
import {
|
||||
Button,
|
||||
FormControl_Shadcn_,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { ComponentMeta } from '@storybook/react'
|
||||
import { StoryObj } from '@storybook/react'
|
||||
import dayjs from 'dayjs'
|
||||
import React from 'react'
|
||||
import Chart, { AreaChartProps } from './AreaChart'
|
||||
|
||||
export default {
|
||||
title: 'Charts',
|
||||
} as ComponentMeta<typeof Chart>
|
||||
} as StoryObj<typeof Chart>
|
||||
|
||||
const DATA = [290, 430, 649, 422, 321, 893, 111].map((value, index) => ({
|
||||
ram_usage: value,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { ComponentMeta } from '@storybook/react'
|
||||
import { StoryObj } from '@storybook/react'
|
||||
import dayjs from 'dayjs'
|
||||
import React from 'react'
|
||||
import Chart, { BarChartProps } from './BarChart'
|
||||
|
||||
export default {
|
||||
title: 'Charts',
|
||||
} as ComponentMeta<typeof Chart>
|
||||
} as StoryObj<typeof Chart>
|
||||
|
||||
const DATA = [290, 430, 649, 422, 321, 893, 111].map((value, index) => ({
|
||||
ram_usage: value,
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import React from 'react'
|
||||
import { ComponentMeta } from '@storybook/react'
|
||||
import { StoryObj } from '@storybook/react'
|
||||
import dayjs from 'dayjs'
|
||||
import Chart from './StackedBarChart'
|
||||
import { DEFAULT_STACK_COLORS, genStackColorScales } from './Charts.constants'
|
||||
|
||||
export default {
|
||||
title: 'Charts/StackedBarChart',
|
||||
} as ComponentMeta<typeof Chart>
|
||||
} as StoryObj<typeof Chart>
|
||||
|
||||
const DATA = [290, 430, 649, 422, 321].flatMap((value, index) => [
|
||||
{
|
||||
|
||||
Vendored
+74
-58
@@ -100,6 +100,10 @@ export interface paths {
|
||||
/** Gets project backups */
|
||||
get: operations['BackupsController_getBackups']
|
||||
}
|
||||
'/platform/database/{ref}/backups/enable-physical-backups': {
|
||||
/** Enable usage of physical backups */
|
||||
post: operations['BackupsController_enablePhysicalBackup']
|
||||
}
|
||||
'/platform/database/{ref}/backups/download': {
|
||||
/** Download project backup */
|
||||
post: operations['BackupsController_downloadBackup']
|
||||
@@ -822,14 +826,6 @@ export interface paths {
|
||||
/** Get GitHub connection branch */
|
||||
get: operations['GitHubBranchesController_getConnectionBranch']
|
||||
}
|
||||
'/platform/integrations/github/pull-requests/{connectionId}': {
|
||||
/** List GitHub connection pull requests */
|
||||
get: operations['GitHubPullRequestsController_getConnectionPullRequests']
|
||||
}
|
||||
'/platform/integrations/github/pull-requests/{connectionId}/{branchName}': {
|
||||
/** List GitHub pull requests for a specific branch */
|
||||
get: operations['GitHubPullRequestsController_validateConnectionBranch']
|
||||
}
|
||||
'/platform/integrations/github/repositories': {
|
||||
/** Gets GitHub repositories for user */
|
||||
get: operations['GitHubRepositoriesController_listRepositories']
|
||||
@@ -1020,6 +1016,10 @@ export interface paths {
|
||||
/** Gets project backups */
|
||||
get: operations['BackupsController_getBackups']
|
||||
}
|
||||
'/v0/database/{ref}/backups/enable-physical-backups': {
|
||||
/** Enable usage of physical backups */
|
||||
post: operations['BackupsController_enablePhysicalBackup']
|
||||
}
|
||||
'/v0/database/{ref}/backups/download': {
|
||||
/** Download project backup */
|
||||
post: operations['BackupsController_downloadBackup']
|
||||
@@ -1468,6 +1468,13 @@ export interface paths {
|
||||
*/
|
||||
patch: operations['BranchController_updateBranch']
|
||||
}
|
||||
'/v1/branches/{branch_id}/reset': {
|
||||
/**
|
||||
* Resets a database branch
|
||||
* @description Resets the specified database branch
|
||||
*/
|
||||
post: operations['BranchController_resetBranch']
|
||||
}
|
||||
'/v1/projects': {
|
||||
/**
|
||||
* List all projects
|
||||
@@ -2207,6 +2214,7 @@ export interface components {
|
||||
updated_at?: string
|
||||
is_sso_user?: boolean
|
||||
deleted_at?: string
|
||||
is_anonymous?: boolean
|
||||
}
|
||||
UsersResponse: {
|
||||
total: number
|
||||
@@ -2263,14 +2271,17 @@ export interface components {
|
||||
migrated_at: string | null
|
||||
}
|
||||
OrganizationResponse: {
|
||||
/** @enum {string|null} */
|
||||
restriction_status: 'grace_period' | 'grace_period_over' | 'restricted' | null
|
||||
id: number
|
||||
slug: string
|
||||
name: string
|
||||
billing_email: string
|
||||
billing_email: string | null
|
||||
is_owner: boolean
|
||||
stripe_customer_id: string
|
||||
subscription_id?: string
|
||||
stripe_customer_id: string | null
|
||||
subscription_id: string | null
|
||||
opt_in_tags: string[]
|
||||
restriction_data: Record<string, never>
|
||||
}
|
||||
GetOrganizationByFlyOrganizationIdResponse: {
|
||||
slug: string
|
||||
@@ -4565,6 +4576,7 @@ export interface components {
|
||||
branch_name?: string
|
||||
git_branch?: string
|
||||
reset_on_push?: boolean
|
||||
persistent?: boolean
|
||||
}
|
||||
BranchResponse: {
|
||||
id: string
|
||||
@@ -4575,11 +4587,18 @@ export interface components {
|
||||
git_branch?: string
|
||||
pr_number?: number
|
||||
reset_on_push: boolean
|
||||
persistent: boolean
|
||||
/** @enum {string} */
|
||||
status: 'CREATING_PROJECT' | 'RUNNING_MIGRATIONS' | 'MIGRATIONS_PASSED' | 'MIGRATIONS_FAILED'
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
BranchDeleteResponse: {
|
||||
message: string
|
||||
}
|
||||
BranchResetResponse: {
|
||||
message: string
|
||||
}
|
||||
V1DatabaseResponse: {
|
||||
/** @description Database host */
|
||||
host: string
|
||||
@@ -5986,6 +6005,24 @@ export interface operations {
|
||||
}
|
||||
}
|
||||
}
|
||||
/** Enable usage of physical backups */
|
||||
BackupsController_enablePhysicalBackup: {
|
||||
parameters: {
|
||||
path: {
|
||||
/** @description Project ref */
|
||||
ref: string
|
||||
}
|
||||
}
|
||||
responses: {
|
||||
201: {
|
||||
content: never
|
||||
}
|
||||
/** @description Failed to enable usage of physical backups */
|
||||
500: {
|
||||
content: never
|
||||
}
|
||||
}
|
||||
}
|
||||
/** Download project backup */
|
||||
BackupsController_downloadBackup: {
|
||||
parameters: {
|
||||
@@ -11079,52 +11116,6 @@ export interface operations {
|
||||
}
|
||||
}
|
||||
}
|
||||
/** List GitHub connection pull requests */
|
||||
GitHubPullRequestsController_getConnectionPullRequests: {
|
||||
parameters: {
|
||||
query: {
|
||||
pr_number: number[]
|
||||
}
|
||||
path: {
|
||||
connectionId: number
|
||||
}
|
||||
}
|
||||
responses: {
|
||||
200: {
|
||||
content: {
|
||||
'application/json': Record<string, never>[]
|
||||
}
|
||||
}
|
||||
/** @description Failed to list GitHub connection pull requests */
|
||||
500: {
|
||||
content: never
|
||||
}
|
||||
}
|
||||
}
|
||||
/** List GitHub pull requests for a specific branch */
|
||||
GitHubPullRequestsController_validateConnectionBranch: {
|
||||
parameters: {
|
||||
query?: {
|
||||
per_page?: number
|
||||
page?: number
|
||||
}
|
||||
path: {
|
||||
connectionId: number
|
||||
branchName: string
|
||||
}
|
||||
}
|
||||
responses: {
|
||||
200: {
|
||||
content: {
|
||||
'application/json': Record<string, never>[]
|
||||
}
|
||||
}
|
||||
/** @description Failed to validate GitHub connection branch */
|
||||
500: {
|
||||
content: never
|
||||
}
|
||||
}
|
||||
}
|
||||
/** Gets GitHub repositories for user */
|
||||
GitHubRepositoriesController_listRepositories: {
|
||||
responses: {
|
||||
@@ -11845,7 +11836,9 @@ export interface operations {
|
||||
}
|
||||
responses: {
|
||||
200: {
|
||||
content: never
|
||||
content: {
|
||||
'application/json': components['schemas']['BranchDeleteResponse']
|
||||
}
|
||||
}
|
||||
/** @description Failed to delete database branch */
|
||||
500: {
|
||||
@@ -11881,6 +11874,29 @@ export interface operations {
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Resets a database branch
|
||||
* @description Resets the specified database branch
|
||||
*/
|
||||
BranchController_resetBranch: {
|
||||
parameters: {
|
||||
path: {
|
||||
/** @description Branch ID */
|
||||
branch_id: string
|
||||
}
|
||||
}
|
||||
responses: {
|
||||
201: {
|
||||
content: {
|
||||
'application/json': components['schemas']['BranchResetResponse']
|
||||
}
|
||||
}
|
||||
/** @description Failed to reset database branch */
|
||||
500: {
|
||||
content: never
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* List all projects
|
||||
* @description Returns a list of all projects you've previously created.
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"@graphiql/toolkit": "^0.9.1",
|
||||
"@hcaptcha/react-hcaptcha": "^1.8.1",
|
||||
"@headlessui/react": "^1.7.17",
|
||||
"@monaco-editor/react": "^4.5.2",
|
||||
"@monaco-editor/react": "^4.6.0",
|
||||
"@next/bundle-analyzer": "^13.5.6",
|
||||
"@radix-ui/react-popover": "^1.0.7",
|
||||
"@radix-ui/react-tooltip": "^1.0.7",
|
||||
@@ -34,11 +34,11 @@
|
||||
"@supabase/auth-helpers-react": "^0.4.2",
|
||||
"@supabase/shared-types": "0.1.55",
|
||||
"@supabase/supabase-js": "^2.39.3",
|
||||
"@tanstack/react-query": "^4.35.7",
|
||||
"@tanstack/react-query-devtools": "^4.35.7",
|
||||
"@tanstack/react-query": "4.35.7",
|
||||
"@tanstack/react-query-devtools": "4.35.7",
|
||||
"@uidotdev/usehooks": "^2.4.1",
|
||||
"@zip.js/zip.js": "^2.7.29",
|
||||
"ai": "^2.2.26",
|
||||
"ai": "^2.2.31",
|
||||
"ai-commands": "*",
|
||||
"ajv": "^8.6.3",
|
||||
"awesome-debounce-promise": "^2.1.0",
|
||||
@@ -66,7 +66,7 @@
|
||||
"next": "^13.5.6",
|
||||
"next-themes": "^0.2.1",
|
||||
"openai": "^4.20.1",
|
||||
"openapi-fetch": "^0.6.1",
|
||||
"openapi-fetch": "^0.6.2",
|
||||
"p-queue": "^6.6.2",
|
||||
"papaparse": "^5.3.1",
|
||||
"path-to-regexp": "^6.2.0",
|
||||
@@ -95,12 +95,12 @@
|
||||
"recharts": "^2.8.0",
|
||||
"semver": "^6.3.1",
|
||||
"shared-data": "*",
|
||||
"sql-formatter": "^12.2.0",
|
||||
"sql-formatter": "^13.1.0",
|
||||
"sqlstring": "^2.3.2",
|
||||
"ui": "*",
|
||||
"ui-patterns": "*",
|
||||
"uuid": "^9.0.1",
|
||||
"valtio": "^1.11.2",
|
||||
"valtio": "^1.12.0",
|
||||
"yup": "^0.32.11",
|
||||
"yup-password": "^0.2.2",
|
||||
"zxcvbn": "^4.4.2"
|
||||
@@ -149,6 +149,6 @@
|
||||
"prettier": "^4.0.0-alpha.8",
|
||||
"storybook-dark-mode": "^3.0.1",
|
||||
"tailwindcss": "^3.4.1",
|
||||
"typescript": "^5.2.2"
|
||||
"typescript": "^5.4.3"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"target": "ES2021",
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": false,
|
||||
"skipLibCheck": true,
|
||||
|
||||
@@ -5,7 +5,7 @@ import { AnimatePresence, motion } from 'framer-motion'
|
||||
import { startCase } from 'lodash'
|
||||
import { useKey } from 'react-use'
|
||||
import { LOCAL_STORAGE_KEYS, useBreakpoint } from 'common'
|
||||
import PostTypes from '~/types/post'
|
||||
import type PostTypes from '~/types/post'
|
||||
import type { BlogView } from '~/pages/blog'
|
||||
|
||||
import {
|
||||
|
||||
@@ -2,8 +2,8 @@ import authors from 'lib/authors.json'
|
||||
import Image from 'next/image'
|
||||
import Link from 'next/link'
|
||||
import React from 'react'
|
||||
import Author from '~/types/author'
|
||||
import PostTypes from '~/types/post'
|
||||
import type Author from '~/types/author'
|
||||
import type PostTypes from '~/types/post'
|
||||
import dayjs from 'dayjs'
|
||||
|
||||
interface Props {
|
||||
|
||||
@@ -2,8 +2,8 @@ import authors from 'lib/authors.json'
|
||||
import Image from 'next/image'
|
||||
import Link from 'next/link'
|
||||
import React from 'react'
|
||||
import Author from '~/types/author'
|
||||
import PostTypes from '~/types/post'
|
||||
import type Author from '~/types/author'
|
||||
import type PostTypes from '~/types/post'
|
||||
import dayjs from 'dayjs'
|
||||
|
||||
interface Props {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import Image from 'next/image'
|
||||
import Link from 'next/link'
|
||||
import { Partner } from '~/types/partners'
|
||||
import type { Partner } from '~/types/partners'
|
||||
|
||||
export default function TileGrid({
|
||||
partners,
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
"swiper": "^6.5.0",
|
||||
"three": "^0.136.0",
|
||||
"typed.js": "^2.0.16",
|
||||
"typescript": "^5.2.2",
|
||||
"typescript": "^5.4.3",
|
||||
"ui": "*",
|
||||
"ui-patterns": "*",
|
||||
"icons": "*",
|
||||
@@ -73,7 +73,7 @@
|
||||
"@types/classnames": "^2.3.1",
|
||||
"@types/dat.gui": "^0.7.10",
|
||||
"@types/mdx-js__react": "^1.5.6",
|
||||
"@types/node": "^17.0.24",
|
||||
"@types/node": "^20.11.16",
|
||||
"@types/parse-numeric-range": "^0.0.1",
|
||||
"@types/react": "^18.2.24",
|
||||
"@types/react-copy-to-clipboard": "^5.0.4",
|
||||
|
||||
@@ -5,7 +5,7 @@ import { NextSeo } from 'next-seo'
|
||||
import { generateRss } from '~/lib/rss'
|
||||
import { getSortedPosts } from '~/lib/posts'
|
||||
|
||||
import PostTypes from '~/types/post'
|
||||
import type PostTypes from '~/types/post'
|
||||
import DefaultLayout from '~/components/Layouts/Default'
|
||||
import BlogGridItem from '~/components/Blog/BlogGridItem'
|
||||
import BlogListItem from '~/components/Blog/BlogListItem'
|
||||
|
||||
@@ -5,7 +5,7 @@ import { startCase } from 'lodash'
|
||||
|
||||
import DefaultLayout from '~/components/Layouts/Default'
|
||||
import BlogGridItem from '~/components/Blog/BlogGridItem'
|
||||
import PostTypes from '~/types/post'
|
||||
import type PostTypes from '~/types/post'
|
||||
|
||||
export async function getStaticProps({ params }: any) {
|
||||
const posts = getSortedPosts({ directory: '_blog', limit: 0, categories: [params.category] })
|
||||
|
||||
@@ -8,7 +8,7 @@ import { generateRss } from '~/lib/rss'
|
||||
import { getSortedPosts } from '~/lib/posts'
|
||||
|
||||
import DefaultLayout from '~/components/Layouts/Default'
|
||||
import PostTypes from '~/types/post'
|
||||
import type PostTypes from '~/types/post'
|
||||
import { motion } from 'framer-motion'
|
||||
import styles from './customers.module.css'
|
||||
import Link from 'next/link'
|
||||
|
||||
@@ -10,7 +10,7 @@ import { IconChevronLeft, IconExternalLink } from 'ui'
|
||||
import DefaultLayout from '~/components/Layouts/Default'
|
||||
import SectionContainer from '~/components/Layouts/SectionContainer'
|
||||
import supabase from '~/lib/supabaseMisc'
|
||||
import { Partner } from '~/types/partners'
|
||||
import type { Partner } from '~/types/partners'
|
||||
import Error404 from '../../404'
|
||||
|
||||
function Partner({
|
||||
|
||||
@@ -4,7 +4,7 @@ import DefaultLayout from '~/components/Layouts/Default'
|
||||
import SectionContainer from '~/components/Layouts/SectionContainer'
|
||||
import PartnerLinkBox from '~/components/Partners/PartnerLinkBox'
|
||||
import supabase from '~/lib/supabaseMisc'
|
||||
import { Partner } from '~/types/partners'
|
||||
import type { Partner } from '~/types/partners'
|
||||
import TileGrid from '../../../components/Partners/TileGrid'
|
||||
|
||||
export async function getStaticProps() {
|
||||
|
||||
@@ -16,7 +16,7 @@ import ImageModal from '~/components/ImageModal'
|
||||
import DefaultLayout from '~/components/Layouts/Default'
|
||||
import SectionContainer from '~/components/Layouts/SectionContainer'
|
||||
import supabase from '~/lib/supabaseMisc'
|
||||
import { Partner } from '~/types/partners'
|
||||
import type { Partner } from '~/types/partners'
|
||||
import Error404 from '../../404'
|
||||
import { ExpandableVideo } from 'ui-patterns/ExpandableVideo'
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import SectionContainer from '~/components/Layouts/SectionContainer'
|
||||
import BecomeAPartner from '~/components/Partners/BecomeAPartner'
|
||||
import PartnerLinkBox from '~/components/Partners/PartnerLinkBox'
|
||||
import supabase from '~/lib/supabaseMisc'
|
||||
import { Partner } from '~/types/partners'
|
||||
import type { Partner } from '~/types/partners'
|
||||
import TileGrid from '../../../components/Partners/TileGrid'
|
||||
|
||||
export async function getStaticProps() {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"@ui/*": ["./../../packages/ui/src/*"] // handle ui package paths
|
||||
},
|
||||
"downlevelIteration": true,
|
||||
"target": "es5",
|
||||
"target": "ES2021",
|
||||
"module": "esnext",
|
||||
"jsx": "preserve",
|
||||
"strict": true,
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import Author from './author'
|
||||
|
||||
type PostTypes = {
|
||||
slug?: string
|
||||
type: 'casestudy' | 'blog'
|
||||
|
||||
Generated
+3068
-1263
File diff suppressed because it is too large.
Load diff
+6
-6
@@ -31,13 +31,13 @@
|
||||
"generate:types": "supabase gen types typescript --local > ./supabase/functions/common/database-types.ts"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^8.56.0",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-config-custom": "*",
|
||||
"prettier": "^4.0.0-alpha.8",
|
||||
"prettier-plugin-sql-cst": "^0.11.0",
|
||||
"sass": "^1.70.0",
|
||||
"supabase": "^1.142.1",
|
||||
"turbo": "^1.12.4"
|
||||
"sass": "^1.72.0",
|
||||
"supabase": "^1.151.1",
|
||||
"turbo": "^1.13.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -45,10 +45,10 @@
|
||||
},
|
||||
"engines": {
|
||||
"npm": ">=9.0.0",
|
||||
"node": ">=18.0.0"
|
||||
"node": ">=20.0.0"
|
||||
},
|
||||
"keywords": ["postgres", "firebase", "storage", "functions", "database", "auth"],
|
||||
"volta": {
|
||||
"node": "18.17.1"
|
||||
"node": "20.11.1"
|
||||
}
|
||||
}
|
||||
@@ -32,6 +32,6 @@
|
||||
"sql-formatter": "^15.0.2",
|
||||
"ts-jest": "^29.1.1",
|
||||
"tsconfig": "*",
|
||||
"typescript": "^5.2.2"
|
||||
"typescript": "^5.4.3"
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@
|
||||
"@types/react": "^18.2.24",
|
||||
"@types/react-dom": "^18.2.8",
|
||||
"tsconfig": "*",
|
||||
"typescript": "^5.2.2"
|
||||
"typescript": "^5.4.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@supabase/supabase-js": "*",
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"build:icons": "build-icons --templateSrc=./scripts/exportTemplate.mjs --renderUniqueKey --iconFileExtension=.ts --exportFileName=index.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"typescript": "^5.2.2",
|
||||
"typescript": "^5.4.3",
|
||||
"@supabase/build-icons": "*"
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
"display": "Next.js",
|
||||
"extends": "./base.json",
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"target": "ES2021",
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"compilerOptions": {
|
||||
"lib": ["ES2015", "dom", "dom.iterable", "esnext"],
|
||||
"module": "ESNext",
|
||||
"target": "ES6",
|
||||
"target": "ES2021",
|
||||
"jsx": "react-jsx"
|
||||
}
|
||||
}
|
||||
@@ -118,8 +118,9 @@
|
||||
"storybook-dark-mode": "^3.0.1",
|
||||
"style-dictionary": "^3.7.1",
|
||||
"ts-jest": "^29.1.1",
|
||||
"tsconfig": "*",
|
||||
"tsconfig-paths-webpack-plugin": "^4.0.1",
|
||||
"typescript": "^5.2.2"
|
||||
"typescript": "^5.4.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"next": "*",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "tsconfig/react-library.json",
|
||||
"extends": "../tsconfig/react-library.json",
|
||||
"compilerOptions": {
|
||||
"resolveJsonModule": true
|
||||
},
|
||||
|
||||
+2
-2
@@ -21,7 +21,7 @@
|
||||
"@supabase/supabase-js": "^2.39.3",
|
||||
"@testdeck/jest": "^0.3.3",
|
||||
"@types/jest": "^29.5.4",
|
||||
"@types/node": "^17.0.24",
|
||||
"@types/node": "^20.11.16",
|
||||
"@typescript-eslint/eslint-plugin": "^6.19.1",
|
||||
"@typescript-eslint/parser": "^6.19.1",
|
||||
"allure-commandline": "^2.17.2",
|
||||
@@ -31,6 +31,6 @@
|
||||
"jest-allure2-adapter": "^0.3.12",
|
||||
"jest-environment-jsdom": "^29.7.0",
|
||||
"postgres": "^3.0.5",
|
||||
"typescript": "^5.2.2"
|
||||
"typescript": "^5.4.3"
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"target": "ES2021",
|
||||
"module": "commonjs",
|
||||
"esModuleInterop": true,
|
||||
"inlineSources": true,
|
||||
|
||||
Reference in new issue
Block a user