From 61dd8d720320a65f2659b4f96f089041161bff70 Mon Sep 17 00:00:00 2001 From: James Clarke Date: Thu, 31 Oct 2024 14:17:21 +0000 Subject: [PATCH] Update deps + fix lint + fix tests --- .github/workflows/ci_build.yml | 4 +- shared/codeEditor/package.json | 17 +- shared/common/newui/select/index.tsx | 2 +- shared/common/package.json | 4 +- shared/inspector/package.json | 11 +- shared/lang-edgeql/package.json | 4 +- shared/schemaGraph/package.json | 5 +- .../studio/components/headerNav/elements.tsx | 2 +- shared/studio/package.json | 8 +- shared/studio/tabs/ai/index.tsx | 1 - shared/studio/tabs/auth/loginUIPreview.tsx | 1 - web/jest.config.js | 9 +- web/package.json | 12 +- web/src/app.tsx | 8 +- web/src/components/databasePage/index.tsx | 6 +- web/src/components/header/index.tsx | 2 +- web/src/components/instancePage/index.tsx | 2 +- web/src/components/main/index.tsx | 8 +- web/src/utils/scram.ts | 4 +- web/tests/_globalSetup.ts | 9 +- web/tests/_globalTeardown.ts | 4 +- web/tests/_testenv.js | 8 +- web/tests/global.d.ts | 17 +- web/tests/simple.test.ts | 2 +- web/tests/tsconfig.json | 4 +- web/vite.config.ts | 13 +- yarn.lock | 1536 +++++++++++------ 27 files changed, 1082 insertions(+), 621 deletions(-) diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml index 7be7984f..52222d0a 100644 --- a/.github/workflows/ci_build.yml +++ b/.github/workflows/ci_build.yml @@ -28,10 +28,10 @@ jobs: run: | yarn - - name: Lint + - name: Lint and typecheck working-directory: web run: | - yarn lint + yarn lint && yarn typecheck - name: Run build working-directory: web diff --git a/shared/codeEditor/package.json b/shared/codeEditor/package.json index cd8b18e7..8c2ffa00 100644 --- a/shared/codeEditor/package.json +++ b/shared/codeEditor/package.json @@ -4,16 +4,15 @@ "version": "0.0.0", "license": "UNLICENSED", "peerDependencies": { - "@types/react": "^17.0.0", - "react": "^17.0.0", - "react-dom": "^17.0.0" + "react": "^18.0.0", + "react-dom": "^18.0.0" }, "devDependencies": { - "@codemirror/autocomplete": "^0.20.0", - "@codemirror/commands": "^0.20.0", - "@codemirror/language": "^0.20.0", - "@codemirror/state": "^0.20.0", - "@codemirror/view": "^0.20.0", - "@replit/codemirror-indentation-markers": "^0.20.0" + "@codemirror/autocomplete": "^6.0.0", + "@codemirror/commands": "^6.0.0", + "@codemirror/language": "^6.0.0", + "@codemirror/state": "^6.0.0", + "@codemirror/view": "^6.0.0", + "@replit/codemirror-indentation-markers": "^6.0.0" } } diff --git a/shared/common/newui/select/index.tsx b/shared/common/newui/select/index.tsx index e48ce906..eb351bbf 100644 --- a/shared/common/newui/select/index.tsx +++ b/shared/common/newui/select/index.tsx @@ -8,7 +8,7 @@ import styles from "./select.module.scss"; export type SelectProps = _SelectProps & {label?: string}; -export function Select({className, label, ...props}: SelectProps) { +export function Select({className, label, ...props}: SelectProps) { if (label != null) { return (