Skip to content

Commit a20c420

Browse files
authored
Merge pull request #249 from ut-code/audit-fix
audit fix
2 parents 6bb6d00 + 48d2fb4 commit a20c420

13 files changed

Lines changed: 3590 additions & 3598 deletions

File tree

app/lib/auth.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ export async function getAuthServer(
5858
cloudflareEnv.GOOGLE_CLIENT_SECRET,
5959
},
6060
},
61-
experimental: {
62-
joins: true,
61+
advanced: {
62+
database: {
63+
joins: true,
64+
},
6365
},
6466
onAPIError: {
6567
customizeDefaultErrorPage: {

eslint.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
22
import nextTypescript from "eslint-config-next/typescript";
3-
import reactHooks from "eslint-plugin-react-hooks";
43

54
const eslintConfig = [
65
{
@@ -16,7 +15,6 @@ const eslintConfig = [
1615
...nextCoreWebVitals,
1716
...nextTypescript,
1817
{
19-
plugins: { "react-hooks": reactHooks },
2018
rules: {
2119
// Next.jsのデフォルト設定を上書き
2220
"@typescript-eslint/no-unused-vars": [
@@ -27,6 +25,8 @@ const eslintConfig = [
2725
ignoreRestSiblings: true,
2826
},
2927
],
28+
"react-hooks/refs": "warn",
29+
"react-hooks/set-state-in-effect": "warn",
3030
},
3131
},
3232
];

package.json

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -28,76 +28,76 @@
2828
"test": "node --import tsx/esm --test tests/**/*.test.ts"
2929
},
3030
"dependencies": {
31-
"@better-auth/drizzle-adapter": "^1.6.23",
31+
"@better-auth/drizzle-adapter": "^1.7.5",
3232
"@floating-ui/react": "^0.27.20",
33-
"@fontsource-variable/inconsolata": "^5.2.7",
34-
"@fontsource/m-plus-rounded-1c": "^5.2.9",
35-
"@google/genai": "^1.21.0",
36-
"@opennextjs/cloudflare": "^1.19.9",
37-
"@sentry/nextjs": "^10.47.0",
38-
"@sentry/vercel-edge": "^10.47.0",
33+
"@fontsource-variable/inconsolata": "^5.3.0",
34+
"@fontsource/m-plus-rounded-1c": "^5.3.0",
35+
"@google/genai": "^1.52.0",
36+
"@opennextjs/cloudflare": "^1.20.6",
37+
"@sentry/nextjs": "^10.74.0",
38+
"@sentry/vercel-edge": "^10.74.0",
3939
"@xterm/addon-fit": "^0.11.0",
40-
"@xterm/xterm": "^6.1.0-beta.168",
41-
"ace-builds": "^1.43.2",
42-
"better-auth": "^1.6.23",
43-
"chalk": "^5.5.0",
40+
"@xterm/xterm": "6.1.0-beta.168",
41+
"ace-builds": "^1.44.0",
42+
"better-auth": "^1.7.5",
43+
"chalk": "^5.6.2",
4444
"clsx": "^2.1.1",
45-
"dotenv": "^17.2.3",
45+
"dotenv": "^17.4.2",
4646
"drizzle-orm": "^0.45.2",
47-
"js-yaml": "^4.1.1",
48-
"mocha": "^11.7.4",
49-
"next": "^16.2.11",
50-
"next-license-list": "^1.0.0",
51-
"pg": "^8.16.3",
47+
"js-yaml": "^4.3.2",
48+
"mocha": "^11.8.0",
49+
"next": "^16.3.5",
50+
"next-license-list": "^1.0.1",
51+
"pg": "^8.23.0",
5252
"prismjs": "^1.30.0",
53-
"react": "^19",
54-
"react-ace": "^14.0.1",
53+
"react": "^19.3.0",
54+
"react-ace": "^14.1.0",
5555
"react-children-utilities": "^2.10.0",
56-
"react-dom": "^19",
56+
"react-dom": "^19.3.0",
5757
"react-markdown": "^10.1.0",
58-
"react-syntax-highlighter": "^16.1.0",
58+
"react-syntax-highlighter": "^16.1.1",
5959
"remark-cjk-friendly": "^1.2.3",
6060
"remark-gfm": "^4.0.1",
6161
"remark-remove-comments": "^1.1.1",
62-
"swr": "^2.3.6",
62+
"swr": "^2.5.1",
6363
"unist-util-remove": "^4.0.0",
6464
"unist-util-visit": "^5.1.0",
65-
"zod": "^4.0.17"
65+
"zod": "^4.6.5"
6666
},
6767
"devDependencies": {
6868
"@my-code/runtime": "workspace:*",
6969
"@pyodide/webpack-plugin": "^1.4.0",
70-
"@tailwindcss/postcss": "^4",
70+
"@tailwindcss/postcss": "^4.3.3",
7171
"@types/js-yaml": "^4.0.9",
7272
"@types/mdast": "^4.0.4",
7373
"@types/mocha": "^10.0.10",
74-
"@types/node": "^20",
74+
"@types/node": "^20.19.43",
7575
"@types/pako": "^2.0.4",
76-
"@types/pg": "^8.15.5",
77-
"@types/prismjs": "^1.26.5",
78-
"@types/react": "^19",
79-
"@types/react-dom": "^19",
76+
"@types/pg": "^8.23.1",
77+
"@types/prismjs": "^1.26.6",
78+
"@types/react": "^19.3.0",
79+
"@types/react-dom": "^19.3.0",
8080
"@types/react-syntax-highlighter": "^15.5.13",
81-
"@typescript/vfs": "^1.6.2",
82-
"daisyui": "^5.7.13",
83-
"drizzle-kit": "^0.31.5",
84-
"eslint": "^9",
85-
"eslint-config-next": "^16.2.6",
86-
"eslint-plugin-react-hooks": "^7.0.1",
81+
"@typescript/vfs": "^1.6.4",
82+
"daisyui": "^5.7.38",
83+
"drizzle-kit": "^0.31.10",
84+
"eslint": "^9.39.5",
85+
"eslint-config-next": "^16.2.11",
86+
"eslint-plugin-react-hooks": "7.0.1",
8787
"fonteditor-core": "^2.6.3",
8888
"mdast-util-phrasing": "^4.1.0",
89-
"pako": "^2.1.0",
90-
"prettier": "^3.6.2",
91-
"prisma": "^6.18.0",
92-
"pyodide": "^0.29.0",
89+
"pako": "^2.2.0",
90+
"prettier": "^3.9.6",
91+
"prisma": "^6.19.3",
92+
"pyodide": "^0.29.4",
9393
"remark-parse": "^11.0.0",
9494
"remark-stringify": "^11.0.0",
95-
"tailwindcss": "^4",
96-
"tsx": "^4.20.6",
95+
"tailwindcss": "^4.3.3",
96+
"tsx": "^4.23.13",
9797
"typescript": "5.9.3",
9898
"unified": "^11.0.5",
9999
"unsandbox": "^1.0.0",
100100
"webpack-license-plugin": "^4.5.1",
101-
"wrangler": "^4.27.0"
101+
"wrangler": "^4.132.0"
102102
}
103103
}

packages/jsEval/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"devDependencies": {
1616
"@types/object-inspect": "^1.13.0",
17-
"tsx": "^4",
18-
"typescript": "^5"
17+
"tsx": "^4.23.13",
18+
"typescript": "^5.9.3"
1919
}
2020
}

packages/jsEval/src/console.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import inspect from "object-inspect";
22

33
export type ConsoleOutput =
4-
| { type: "stdout"; message: string }
5-
| { type: "stderr"; message: string };
4+
{ type: "stdout"; message: string } | { type: "stderr"; message: string };
65

76
export type ConsoleEmitter = (output: ConsoleOutput) => void;
87

packages/jsEval/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "ES2022",
4-
"module": "NodeNext",
4+
"module": "ESNext",
55
"moduleResolution": "bundler",
66
"strict": true,
77
"esModuleInterop": true,

packages/runtime/package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,30 @@
1111
},
1212
"dependencies": {
1313
"@my-code/js-eval": "workspace:*",
14-
"@ruby/wasm-wasi": "^2.7.2",
15-
"@typescript/vfs": "^1.6.2",
14+
"@ruby/wasm-wasi": "^2.10.1",
15+
"@typescript/vfs": "^1.6.4",
1616
"async-mutex": "^0.5.0",
17-
"chai": "^6.2.0",
17+
"chai": "^6.2.2",
1818
"comlink": "^4.4.2",
1919
"object-inspect": "^1.13.4",
20-
"pyodide": "^0.29.0",
21-
"react": "^19",
22-
"react-dom": "^19",
23-
"swr": "^2",
24-
"typescript": "^5",
25-
"zod": "^4.0.17"
20+
"pyodide": "^0.29.4",
21+
"react": "^19.3.0",
22+
"react-dom": "^19.3.0",
23+
"swr": "^2.5.1",
24+
"typescript": "^5.9.3",
25+
"zod": "^4.6.5"
2626
},
2727
"devDependencies": {
28-
"@testing-library/dom": "^10.0.0",
29-
"@testing-library/react": "^16.3.2",
28+
"@testing-library/dom": "^10.4.2",
29+
"@testing-library/react": "^16.3.3",
3030
"@types/chai": "^5.2.3",
3131
"@types/object-inspect": "^1.13.0",
32-
"@types/react": "^19",
33-
"@types/react-dom": "^19",
34-
"@vitejs/plugin-react": "^5.1.4",
35-
"@vitest/browser-webdriverio": "^4.1.10",
32+
"@types/react": "^19.3.0",
33+
"@types/react-dom": "^19.3.0",
34+
"@vitejs/plugin-react": "^5.2.0",
35+
"@vitest/browser-webdriverio": "^4.1.11",
3636
"dotenv": "^17.4.2",
37-
"vitest": "^4.1.10",
38-
"webdriverio": "^9.29.1"
37+
"vitest": "^4.1.11",
38+
"webdriverio": "^9.31.9"
3939
}
4040
}

packages/runtime/src/languages.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,7 @@ export type MarkdownLang =
3535
| "txt";
3636

3737
export type RuntimeLang =
38-
| "python"
39-
| "ruby"
40-
| "cpp"
41-
| "rust"
42-
| "javascript"
43-
| "typescript";
38+
"python" | "ruby" | "cpp" | "rust" | "javascript" | "typescript";
4439

4540
export type LangConstants = {
4641
originalLang: MarkdownLang | undefined;

packages/runtime/src/worker/jsEval.worker.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ self.console = {
2626
}),
2727
};
2828

29-
async function init(/*_interruptBuffer?: Uint8Array*/): Promise<{
29+
async function init(
30+
/*_interruptBuffer?: Uint8Array*/
31+
): Promise<{
3032
capabilities: WorkerCapabilities;
3133
}> {
3234
// Initialize the worker and report capabilities

packages/runtime/src/worker/pyodide.worker.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ const HOME = `/home/pyodide`;
1818
let pyodide: PyodideInterface;
1919
let pendingOutputPromise: Promise<void>[] = [];
2020
let currentOutputCallback:
21-
| ((output: ReplOutput | UpdatedFile) => Promise<void>)
22-
| null = null;
21+
((output: ReplOutput | UpdatedFile) => Promise<void>) | null = null;
2322

2423
// Helper function to read all files from the Pyodide file system
2524
function readAllFiles(): Record<string, string> {

0 commit comments

Comments
 (0)