From 900fb7eb198c17a5260c6e2c7d16ce8fa86bc290 Mon Sep 17 00:00:00 2001 From: undefined Date: Wed, 14 Oct 2026 03:29:01 +0800 Subject: [PATCH] upgrade deps --- build/prepare.js | 3 +-- framework/eslint-config/package.json | 8 +++---- framework/framework/package.json | 4 ++-- framework/utils/package.json | 4 ++-- package.json | 4 ++-- packages/components/package.json | 6 ++--- packages/hydrojudge/package.json | 8 +++---- packages/hydrooj/package.json | 16 ++++++------- packages/ui-default/build/config/webpack.ts | 1 + .../components/UserSelectAutoComplete.tsx | 8 +++---- .../ui-default/components/editor/index.tsx | 2 +- packages/ui-default/package.json | 24 +++++++++---------- packages/ui-next/package.json | 4 ++-- 13 files changed, 46 insertions(+), 46 deletions(-) diff --git a/build/prepare.js b/build/prepare.js index 5c5ca56a8..0d26b7b15 100644 --- a/build/prepare.js +++ b/build/prepare.js @@ -70,8 +70,7 @@ for (const name of ['plugins', 'modules']) { if (!fs.existsSync(path.resolve(process.cwd(), name))) { fs.mkdirSync(path.resolve(process.cwd(), name)); } - // Write an empty file to make eslint happy - fs.writeFileSync(path.resolve(process.cwd(), name, 'nop.ts'), 'export default {};\n'); + fs.writeFileSync(path.resolve(process.cwd(), name, 'nop.ts'), 'export default {};\n// For prettier\nexport const format = (a: any) => a;\n'); fs.writeFileSync( path.resolve(process.cwd(), name, 'vue-types.d.ts'), 'declare module "*.vue" {\n const content: any;\n export default content;\n}\n', diff --git a/framework/eslint-config/package.json b/framework/eslint-config/package.json index 822b4d519..1bea6d9da 100644 --- a/framework/eslint-config/package.json +++ b/framework/eslint-config/package.json @@ -6,10 +6,10 @@ "repository": "https://github.com/hydro-dev/Hydro", "dependencies": { "@antfu/eslint-config": "^9.5.1", - "@eslint-react/eslint-plugin": "^5.24.0", - "@typescript-eslint/eslint-plugin": "^8.71.0", - "@typescript-eslint/parser": "^8.71.0", - "eslint-plugin-de-morgan": "^2.2.0", + "@eslint-react/eslint-plugin": "^5.26.5", + "@typescript-eslint/eslint-plugin": "^8.71.2", + "@typescript-eslint/parser": "^8.71.2", + "eslint-plugin-de-morgan": "^2.2.1", "eslint-plugin-github": "^6.1.2", "eslint-plugin-react-hooks": "^7.1.1", "eslint-plugin-react-refresh": "^0.5.7", diff --git a/framework/framework/package.json b/framework/framework/package.json index 081db692e..f63d6dc81 100644 --- a/framework/framework/package.json +++ b/framework/framework/package.json @@ -10,7 +10,7 @@ "dependencies": { "@hydrooj/utils": "workspace:^", "@koa/router": "^15.7.0", - "@mongodb-js/saslprep": "^1.5.5", + "@mongodb-js/saslprep": "^1.6.0", "emoji-regex": "^11.0.0", "fs-extra": "^11.4.1", "koa": "^3.2.1", @@ -26,7 +26,7 @@ "@types/fs-extra": "^11.0.4", "@types/koa": "^3.0.3", "@types/koa-compress": "^4.0.7", - "@types/koa__router": "^12.0.5", + "@types/koa__router": "^15.0.0", "@types/ws": "^8.18.2" } } diff --git a/framework/utils/package.json b/framework/utils/package.json index f3ee9cc61..ec3df27f8 100644 --- a/framework/utils/package.json +++ b/framework/utils/package.json @@ -14,9 +14,9 @@ }, "dependencies": { "@hydrooj/register": "workspace:^", - "cac": "^7.0.0", + "cac": "^7.1.0", "fs-extra": "^11.4.1", - "js-yaml": "^5.4.2", + "js-yaml": "^5.4.3", "reggol": "^2.1.0", "search-query-parser": "^1.6.0", "systeminformation": "^5.33.15" diff --git a/package.json b/package.json index 6885599a3..dcd5b0996 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "@types/node": "24.13.3", "@types/semver": "^7.8.0", "autocannon": "^8.0.0", - "cac": "^7.0.0", + "cac": "^7.1.0", "chai": "^6.3.0", "cross-env": "^10.1.0", "cross-spawn": "^7.0.6", @@ -55,7 +55,7 @@ "mongodb-memory-server": "11.0.1", "nyc": "^18.0.0", "ora": "^9.4.1", - "oxlint": "^1.86.0", + "oxlint": "^1.88.0", "package-json": "^10.0.1", "semver": "^7.8.5", "simple-git": "^4.0.2", diff --git a/packages/components/package.json b/packages/components/package.json index 2394743d5..9d8e730f7 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -8,9 +8,9 @@ "*.css" ], "dependencies": { - "allotment": "^1.20.5", + "allotment": "^1.20.6", "diff": "^9.0.0", - "js-yaml": "^5.4.2", + "js-yaml": "^5.4.3", "lodash": "^4.18.1", "react-dnd": "^16.0.1", "react-dnd-html5-backend": "^16.0.1", @@ -20,7 +20,7 @@ "devDependencies": { "@types/diff": "^8.0.0", "@types/js-yaml": "^4.0.9", - "@types/lodash": "^4.17.25", + "@types/lodash": "^4.17.26", "sass": "^1.105.1" }, "peerDependencies": { diff --git a/packages/hydrojudge/package.json b/packages/hydrojudge/package.json index 7ff8df85e..a91f858e5 100644 --- a/packages/hydrojudge/package.json +++ b/packages/hydrojudge/package.json @@ -9,11 +9,11 @@ "@hydrooj/common": "workspace:^", "@hydrooj/utils": "workspace:^", "@opentelemetry/api": "^1.9.1", - "@opentelemetry/exporter-trace-otlp-http": "^0.222.0", - "@opentelemetry/sdk-node": "^0.222.0", + "@opentelemetry/exporter-trace-otlp-http": "^0.223.0", + "@opentelemetry/sdk-node": "^0.223.0", "@zip.js/zip.js": "^2.23.0", - "cac": "^7.0.0", - "p-queue": "^9.3.3", + "cac": "^7.1.0", + "p-queue": "^9.3.5", "schemastery": "^3.18.0", "semver": "^7.8.5", "shell-quote": "^1.12.0", diff --git a/packages/hydrooj/package.json b/packages/hydrooj/package.json index e2c00d35e..740264e46 100644 --- a/packages/hydrooj/package.json +++ b/packages/hydrooj/package.json @@ -21,19 +21,19 @@ "@hydrooj/common": "workspace:^", "@hydrooj/framework": "workspace:^", "@hydrooj/utils": "workspace:^", - "@mongodb-js/saslprep": "^1.5.5", + "@mongodb-js/saslprep": "^1.6.0", "@simplewebauthn/server": "13.2.2", "@undefined-moe/require-resolve-hook": "^1.1.0", "@zip.js/zip.js": "^2.23.0", "adm-zip": "0.5.16", - "cac": "^7.0.0", + "cac": "^7.1.0", "cordis": "4.0.0-rc.10", "csv-stringify": "^6.9.0", "emoji-regex": "^11.0.0", "emojis-list": "2.1.0", "fs-extra": "^11.4.1", - "js-yaml": "^5.4.2", - "koa-proxies": "^0.12.4", + "js-yaml": "^5.4.3", + "koa-proxies": "^0.12.6", "koa-static-cache": "^5.1.4", "lodash": "^4.18.1", "lru-cache": "^11.5.3", @@ -41,10 +41,10 @@ "moment-timezone": "^0.6.5", "mongodb": "^7.7.0", "mongodb-uri": "^0.9.7", - "nanoid": "^6.0.1", - "nodemailer": "^10.0.14", + "nanoid": "^6.0.2", + "nodemailer": "^10.1.0", "otpauth": "^9.5.2", - "p-queue": "^9.3.3", + "p-queue": "^9.3.5", "sanitize-filename": "^1.6.4", "schemastery": "^3.18.0", "semver": "^7.8.5", @@ -61,7 +61,7 @@ "@types/fs-extra": "^11.0.4", "@types/js-yaml": "^4.0.9", "@types/koa-static-cache": "^5.1.4", - "@types/lodash": "^4.17.25", + "@types/lodash": "^4.17.26", "@types/mime-types": "^3.0.1", "@types/mongodb-uri": "^0.9.4", "@types/nodemailer": "^8.0.2", diff --git a/packages/ui-default/build/config/webpack.ts b/packages/ui-default/build/config/webpack.ts index 62dfc361c..11b729118 100644 --- a/packages/ui-default/build/config/webpack.ts +++ b/packages/ui-default/build/config/webpack.ts @@ -291,6 +291,7 @@ export default async function (env: { watch?: boolean, production?: boolean, mea }), new ExtractCssPlugin({ filename: `[name]-${version}.css?[fullhash:6]`, + ignoreOrder: true, }), new WebpackManifestPlugin({}), new webpack.IgnorePlugin({ resourceRegExp: /(^\.\/locale$)/ }), diff --git a/packages/ui-default/components/autocomplete/components/UserSelectAutoComplete.tsx b/packages/ui-default/components/autocomplete/components/UserSelectAutoComplete.tsx index 4330e45b1..597f6cbce 100644 --- a/packages/ui-default/components/autocomplete/components/UserSelectAutoComplete.tsx +++ b/packages/ui-default/components/autocomplete/components/UserSelectAutoComplete.tsx @@ -6,18 +6,18 @@ import { forwardRef } from 'react'; import { api } from 'vj/utils'; const cache = {}; -let pending = []; +const pending = new Set(); let callbacks = []; const dispatch = _.debounce(async () => { - const targets = pending; - pending = []; + const targets = Array.from(pending); + pending.clear(); const users = await api('users', { auto: targets }, ['_id', 'uname', 'displayName']); for (const user of users) cache[user._id] = user; for (const callback of callbacks) callback(); callbacks = []; }, 300); const loadUsers = async (ids: string[]) => { - pending.push(...ids); + for (const id of ids) pending.add(id); dispatch(); await new Promise((resolve) => callbacks.push(resolve)); return ids.map((id) => cache[id]); diff --git a/packages/ui-default/components/editor/index.tsx b/packages/ui-default/components/editor/index.tsx index 3d6d873ee..ead598bcf 100644 --- a/packages/ui-default/components/editor/index.tsx +++ b/packages/ui-default/components/editor/index.tsx @@ -42,7 +42,7 @@ export default class Editor extends DOMAttachedObject { const { onChange, language = 'markdown', theme = `vs-${getTheme()}`, - model = `file://model-${Math.random().toString(16)}`, + model = `file://model-${Math.random().toString(16).slice(2)}.${language}`, autoResize = true, autoLayout = true, hide = [], lineNumbers = 'on', } = this.options; diff --git a/packages/ui-default/package.json b/packages/ui-default/package.json index 7472a12c2..25f311233 100644 --- a/packages/ui-default/package.json +++ b/packages/ui-default/package.json @@ -17,14 +17,14 @@ "@fontsource/jetbrains-mono": "^5.3.0", "@fontsource/pt-mono": "^5.3.0", "@fontsource/roboto-mono": "^5.3.0", - "@fontsource/source-code-pro": "^5.3.0", + "@fontsource/source-code-pro": "^5.3.1", "@fontsource/ubuntu-mono": "^5.3.0", "@hydrooj/utils": "workspace:^", - "@mantine/core": "^9.6.3", - "@mantine/hooks": "^9.6.3", - "@mantine/notifications": "^9.6.3", - "@sentry/browser": "^10.76.0", - "@sentry/webpack-plugin": "^5.4.0", + "@mantine/core": "^9.7.2", + "@mantine/hooks": "^9.7.2", + "@mantine/notifications": "^9.7.2", + "@sentry/browser": "^11.7.0", + "@sentry/webpack-plugin": "^5.4.1", "@simplewebauthn/browser": "13.2.2", "@svgr/webpack": "^8.1.0", "@types/html-to-text": "^9.0.4", @@ -43,7 +43,7 @@ "@vavt/cm-extension": "^2.0.0", "@vscode/codicons": "^0.0.45", "ajv": "^8.20.0", - "allotment": "^1.20.5", + "allotment": "^1.20.6", "autoprefixer": "^10.6.1", "browser-update": "^3.3.63", "chalk": "^6.0.1", @@ -62,7 +62,7 @@ "emojis-list": "2.1.0", "esbuild-loader": "^4.5.0", "flatpickr": "^4.6.13", - "idb": "^8.0.3", + "idb": "^8.0.4", "jquery": "^3.7.1", "jquery.easing": "^1.4.1", "jquery.transit": "^0.9.12", @@ -75,10 +75,10 @@ "monaco-editor-nls": "^3.1.0", "monaco-themes": "0.4.7", "monaco-yaml": "5.4.1", - "nanoid": "^6.0.1", + "nanoid": "^6.0.2", "normalize.css": "^8.0.1", "nprogress": "^0.2.0", - "p-queue": "^9.3.3", + "p-queue": "^9.3.5", "postcss-loader": "7.3.4", "postcss-preset-mantine": "^1.18.0", "prism-themes": "^1.9.0", @@ -126,7 +126,7 @@ "esbuild": "0.25.2", "fs-extra": "^11.4.1", "html-to-text": "^10.0.1", - "js-yaml": "^5.4.2", + "js-yaml": "^5.4.3", "jsesc": "^3.1.0", "katex": "^0.19.0", "lodash": "^4.18.1", @@ -141,7 +141,7 @@ "nunjucks": "^3.2.4", "schemastery-jsonschema": "^1.1.1", "streamsaver": "^2.0.6", - "uuid": "^14.0.2", + "uuid": "^14.0.3", "xss": "^1.0.15" } } diff --git a/packages/ui-next/package.json b/packages/ui-next/package.json index 03e2d1578..ac27defc6 100644 --- a/packages/ui-next/package.json +++ b/packages/ui-next/package.json @@ -36,8 +36,8 @@ "devDependencies": { "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", - "@vitejs/plugin-react": "^6.1.1", + "@vitejs/plugin-react": "^6.1.2", "koa2-connect": "^1.0.2", - "vite": "^8.3.2" + "vite": "^8.3.4" } }