Skip to content

Commit fc01d5f

Browse files
authored
Merge pull request #9 from HirotoShioi/bump-versions
Bump versions
2 parents efb5189 + 222c949 commit fc01d5f

File tree

13 files changed

+580
-834
lines changed

13 files changed

+580
-834
lines changed

apps/frontend/.eslintrc.cjs

-17
This file was deleted.

apps/frontend/eslint.config.js

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import js from "@eslint/js";
2+
import globals from "globals";
3+
import reactHooks from "eslint-plugin-react-hooks";
4+
import reactRefresh from "eslint-plugin-react-refresh";
5+
import tseslint from "typescript-eslint";
6+
export default tseslint.config(
7+
{ ignores: ["dist"] },
8+
{
9+
extends: [js.configs.recommended, ...tseslint.configs.recommended],
10+
files: ["**/*.{ts,tsx}"],
11+
languageOptions: {
12+
ecmaVersion: 2020,
13+
globals: globals.browser,
14+
},
15+
plugins: {
16+
"react-hooks": reactHooks,
17+
"react-refresh": reactRefresh,
18+
},
19+
rules: {
20+
...reactHooks.configs.recommended.rules,
21+
"react-refresh/only-export-components": "off",
22+
},
23+
}
24+
);

apps/frontend/package.json

+38-36
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@
77
"dev": "vite",
88
"build": "tsc && vite build",
99
"test": "vitest",
10-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
10+
"lint": "eslint .",
1111
"storybook": "storybook dev -p 6006",
1212
"build-storybook": "storybook build",
1313
"preview": "pnpm run build && wrangler pages dev ./dist",
1414
"deploy": "pnpm run build && wrangler pages deploy ./dist"
1515
},
1616
"dependencies": {
17-
"@ai-sdk/openai": "^1.0.0",
18-
"@ai-sdk/react": "^1.0.0",
19-
"@aws-amplify/ui-react": "^6.7.2",
20-
"@cloudflare/workers-types": "^4.20241218.0",
17+
"@ai-sdk/openai": "^1.0.11",
18+
"@ai-sdk/react": "^1.0.7",
19+
"@aws-amplify/ui-react": "^6.8.0",
20+
"@cloudflare/workers-types": "^4.20241224.0",
2121
"@electric-sql/pglite": "^0.2.15",
2222
"@electric-sql/pglite-react": "^0.2.15",
2323
"@hookform/resolvers": "^3.9.1",
24-
"@langchain/community": "^0.3.19",
24+
"@langchain/community": "^0.3.20",
2525
"@langchain/core": "^0.3.26",
26-
"@langchain/langgraph": "^0.2.34",
26+
"@langchain/langgraph": "^0.2.36",
2727
"@langchain/openai": "^0.3.16",
2828
"@radix-ui/react-alert-dialog": "^1.1.4",
2929
"@radix-ui/react-avatar": "^1.1.2",
@@ -37,39 +37,39 @@
3737
"@radix-ui/react-slot": "^1.1.1",
3838
"@radix-ui/react-toast": "^1.2.4",
3939
"@radix-ui/react-tooltip": "^1.1.6",
40-
"@tanstack/react-query": "^5.62.8",
41-
"@tanstack/react-query-devtools": "^5.62.8",
42-
"@types/react-router": "^5.1.0",
43-
"ai": "^4.0.0",
40+
"@tanstack/react-query": "^5.62.11",
41+
"@tanstack/react-query-devtools": "^5.62.11",
42+
"@types/react-router": "^5.1.20",
43+
"ai": "^4.0.22",
4444
"aws-amplify": "^6.11.0",
4545
"class-variance-authority": "^0.7.1",
4646
"clsx": "^2.1.1",
4747
"common-tags": "^1.8.2",
48-
"date-fns": "^3.6.0",
49-
"drizzle-orm": "^0.38.2",
50-
"drizzle-zod": "^0.6.0",
51-
"i18next": "^23.16.8",
48+
"date-fns": "^4.1.0",
49+
"drizzle-orm": "^0.38.3",
50+
"drizzle-zod": "^0.6.1",
51+
"i18next": "^24.2.0",
5252
"i18next-browser-languagedetector": "^8.0.2",
53-
"i18next-http-backend": "^2.7.1",
54-
"langchain": "^0.3.7",
55-
"lucide-react": "^0.417.0",
53+
"i18next-http-backend": "^3.0.1",
54+
"langchain": "^0.3.8",
55+
"lucide-react": "^0.469.0",
5656
"nanoid": "^5.0.9",
57-
"react": "^18.3.1",
58-
"react-day-picker": "8.10.1",
59-
"react-dom": "^18.3.1",
57+
"react": "^19.0.0",
58+
"react-day-picker": "9.5.0",
59+
"react-dom": "^19.0.0",
6060
"react-dropzone": "^14.3.5",
6161
"react-hook-form": "^7.54.2",
62-
"react-i18next": "^15.2.0",
62+
"react-i18next": "^15.3.0",
6363
"react-markdown": "^9.0.1",
64-
"react-router": "^7.1.0",
64+
"react-router": "^7.1.1",
6565
"rehype-raw": "^7.0.0",
6666
"remark-gfm": "^4.0.0",
67-
"tailwind-merge": "^2.5.5",
67+
"tailwind-merge": "^2.6.0",
6868
"tailwindcss-animate": "^1.0.7",
6969
"tesseract.js": "^5.1.1",
70-
"unpdf": "^0.11.0",
70+
"unpdf": "^0.12.1",
7171
"zod": "^3.24.1",
72-
"zustand": "^4.5.5"
72+
"zustand": "^5.0.2"
7373
},
7474
"devDependencies": {
7575
"@chromatic-com/storybook": "^3.2.3",
@@ -81,23 +81,25 @@
8181
"@storybook/react": "^8.4.7",
8282
"@storybook/react-vite": "^8.4.7",
8383
"@storybook/test": "^8.4.7",
84-
"@tanstack/eslint-plugin-query": "^5.62.1",
84+
"@tanstack/eslint-plugin-query": "^5.62.9",
8585
"@types/common-tags": "^1.8.4",
86-
"@types/react": "^18.3.18",
87-
"@types/react-dom": "^18.3.5",
88-
"@typescript-eslint/eslint-plugin": "^7.18.0",
89-
"@typescript-eslint/parser": "^7.18.0",
86+
"@types/react": "^19.0.2",
87+
"@types/react-dom": "^19.0.2",
88+
"@typescript-eslint/eslint-plugin": "^8.18.2",
89+
"@typescript-eslint/parser": "^8.18.2",
9090
"@vitejs/plugin-react": "^4.3.4",
9191
"autoprefixer": "^10.4.20",
92-
"drizzle-kit": "^0.24.2",
93-
"eslint": "^8.57.1",
94-
"eslint-plugin-react-hooks": "^4.6.2",
92+
"drizzle-kit": "^0.30.1",
93+
"typescript-eslint": "^8.18.2",
94+
"eslint": "^9.17.0",
95+
"eslint-plugin-react-hooks": "^5.1.0",
9596
"eslint-plugin-react-refresh": "^0.4.16",
96-
"eslint-plugin-storybook": "^0.8.0",
97+
"eslint-plugin-storybook": "^0.11.1",
9798
"postcss": "^8.4.49",
9899
"storybook": "^8.4.7",
99100
"tailwindcss": "^3.4.17",
100-
"vite": "^6.0.5",
101+
"globals": "^15.14.0",
102+
"vite": "^6.0.6",
101103
"vitest": "^2.1.8",
102104
"wrangler": "^3.99.0"
103105
}

apps/frontend/src/components/ui/calendar.tsx

-64
This file was deleted.

apps/frontend/src/components/ui/input.tsx

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import * as React from "react"
1+
/* eslint-disable @typescript-eslint/no-empty-object-type */
2+
import * as React from "react";
23

3-
import { cn } from "@/lib/utils"
4+
import { cn } from "@/lib/utils";
45

56
export interface InputProps
67
extends React.InputHTMLAttributes<HTMLInputElement> {}
@@ -17,9 +18,9 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
1718
ref={ref}
1819
{...props}
1920
/>
20-
)
21+
);
2122
}
22-
)
23-
Input.displayName = "Input"
23+
);
24+
Input.displayName = "Input";
2425

25-
export { Input }
26+
export { Input };

apps/frontend/src/components/ui/textarea.tsx

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import * as React from "react"
1+
/* eslint-disable @typescript-eslint/no-empty-object-type */
2+
import * as React from "react";
23

3-
import { cn } from "@/lib/utils"
4+
import { cn } from "@/lib/utils";
45

56
export interface TextareaProps
67
extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}
@@ -16,9 +17,9 @@ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
1617
ref={ref}
1718
{...props}
1819
/>
19-
)
20+
);
2021
}
21-
)
22-
Textarea.displayName = "Textarea"
22+
);
23+
Textarea.displayName = "Textarea";
2324

24-
export { Textarea }
25+
export { Textarea };

apps/frontend/src/hooks/use-chat.ts

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ async function handleChat(req: Request) {
6363
getUserPreferences(),
6464
getResourcesByThreadId(threadId),
6565
]);
66+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
6667
const { messages } = body as { messages: any[] };
6768
const model = createOpenAI({
6869
apiKey: session.tokens.idToken.toString(),

apps/frontend/src/hooks/use-toast.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-unused-vars */
12
import * as React from "react"
23

34
import type {

apps/frontend/src/lib/database/client.ts

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export async function getDB() {
2020
}
2121
);
2222
await pgClient.waitReady;
23+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2324
const db = drizzle(pgClient as any, { schema });
2425
await applyMigrations(pgClient);
2526
const endTime = performance.now();

apps/frontend/src/lib/database/migration.ts

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ async function createHash(str: string) {
107107
}
108108

109109
export async function applyMigrations(pglite: PGliteWorker) {
110+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
110111
const db = drizzle(pglite as any);
111112
await db.execute(createDrizzleMigrationsTable);
112113
const [migrationCount] = await db

apps/frontend/src/pages/chat/components/chat-message.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { memo } from "react";
77
type ToolInvocation = {
88
toolCallId: string;
99
toolName: string;
10+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1011
args: Record<string, any>;
1112
};
1213

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"author": "",
1212
"license": "ISC",
1313
"devDependencies": {
14-
"typescript": "^5.6.2",
15-
"@types/node": "^22.5.4"
14+
"@types/node": "^22.10.2",
15+
"typescript": "^5.7.2"
1616
}
1717
}

0 commit comments

Comments
 (0)