diff --git a/package.json b/package.json index f98cfdec..ffe25da2 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "css-loader": "^6.7.3", "esbuild": "0.17.10", "esbuild-loader": "^2.21.0", - "eslint": "^8.37.0", + "eslint": "^8.38.0", "eslint-import-resolver-typescript": "^3.5.5", "eslint-import-resolver-webpack": "^0.13.2", "fs-extra": "^11.1.1", diff --git a/packages/fps-importer/package.json b/packages/fps-importer/package.json index b5fdb9c8..548e4c5e 100644 --- a/packages/fps-importer/package.json +++ b/packages/fps-importer/package.json @@ -9,7 +9,7 @@ "preferUnplugged": true, "dependencies": { "decode-html": "^2.0.0", - "xml2js": "^0.4.23" + "xml2js": "^0.5.0" }, "devDependencies": { "@types/xml2js": "^0.4.11" diff --git a/packages/hydrojudge/package.json b/packages/hydrojudge/package.json index a435e9c8..04893800 100644 --- a/packages/hydrojudge/package.json +++ b/packages/hydrojudge/package.json @@ -11,7 +11,7 @@ "mongodb": "^5.2.0", "p-queue": "^7.3.4", "schemastery": "^3.7.2", - "shell-quote": "^1.8.0", + "shell-quote": "^1.8.1", "superagent": "^8.0.9", "ws": "^8.13.0" }, diff --git a/packages/hydrooj/package.json b/packages/hydrooj/package.json index 3de6adae..a5238dd8 100644 --- a/packages/hydrooj/package.json +++ b/packages/hydrooj/package.json @@ -12,11 +12,11 @@ }, "preferUnplugged": true, "dependencies": { - "@aws-sdk/client-s3": "^3.306.0", - "@aws-sdk/lib-storage": "^3.306.0", + "@aws-sdk/client-s3": "^3.309.0", + "@aws-sdk/lib-storage": "^3.309.0", "@aws-sdk/middleware-endpoint": "^3.306.0", - "@aws-sdk/s3-presigned-post": "^3.306.0", - "@aws-sdk/s3-request-presigner": "^3.306.0", + "@aws-sdk/s3-presigned-post": "^3.309.0", + "@aws-sdk/s3-request-presigner": "^3.309.0", "@graphql-tools/schema": "^9.0.17", "@hydrooj/utils": "workspace:*", "@simplewebauthn/server": "^7.2.0", @@ -28,16 +28,16 @@ "emojis-list": "2.1.0", "fs-extra": "^11.1.1", "graphql": "^16.6.0", - "graphql-scalars": "1.20.4", + "graphql-scalars": "1.21.3", "js-yaml": "^4.1.0", "koa": "^2.14.1", "koa-body": "^6.0.1", - "koa-compress": "^5.1.0", + "koa-compress": "^5.1.1", "koa-proxies": "^0.12.3", "koa-router": "^12.0.0", "koa-static-cache": "^5.1.4", "lodash": "^4.17.21", - "lru-cache": "7.14.1", + "lru-cache": "9.0.0", "mime-types": "^2.1.35", "moment-timezone": "^0.5.43", "mongodb": "^5.2.0", diff --git a/packages/hydrooj/src/model/domain.ts b/packages/hydrooj/src/model/domain.ts index 061bde1b..c5a8f021 100644 --- a/packages/hydrooj/src/model/domain.ts +++ b/packages/hydrooj/src/model/domain.ts @@ -1,5 +1,5 @@ import { Dictionary } from 'lodash'; -import LRU from 'lru-cache'; +import { LRUCache } from 'lru-cache'; import { Filter } from 'mongodb'; import { DomainDoc } from '../interface'; import * as bus from '../service/bus'; @@ -11,7 +11,7 @@ import UserModel, { deleteUserCache } from './user'; const coll = db.collection('domain'); const collUser = db.collection('domain.user'); -const cache = new LRU({ max: 1000, ttl: 300 * 1000 }); +const cache = new LRUCache({ max: 1000, ttl: 300 * 1000 }); interface DomainUserArg { _id: number, diff --git a/packages/hydrooj/src/model/user.ts b/packages/hydrooj/src/model/user.ts index e4778203..f7b0c3ec 100644 --- a/packages/hydrooj/src/model/user.ts +++ b/packages/hydrooj/src/model/user.ts @@ -1,5 +1,5 @@ import { escapeRegExp, pick, uniq } from 'lodash'; -import LRU from 'lru-cache'; +import { LRUCache } from 'lru-cache'; import { Collection, Filter, ObjectId } from 'mongodb'; import { LoginError, UserAlreadyExistError, UserNotFoundError } from '../error'; import { @@ -23,7 +23,7 @@ export const coll: Collection = db.collection('user'); // Virtual user, only for display in contest. export const collV: Collection = db.collection('vuser'); export const collGroup: Collection = db.collection('user.group'); -const cache = new LRU({ max: 10000, ttl: 300 * 1000 }); +const cache = new LRUCache({ max: 10000, ttl: 300 * 1000 }); export function deleteUserCache(udoc: { _id: number, uname: string, mail: string } | string | true | undefined | null, receiver = false) { if (!udoc) return false; diff --git a/packages/ui-default/package.json b/packages/ui-default/package.json index cca61efa..0428899a 100644 --- a/packages/ui-default/package.json +++ b/packages/ui-default/package.json @@ -34,7 +34,7 @@ "@types/markdown-it": "^12.2.3", "@types/pickadate": "^3.5.32", "@types/qrcode": "^1.5.0", - "@types/react": "^18.0.33", + "@types/react": "^18.0.34", "@types/react-dom": "^18.0.11", "@types/redux-logger": "^3.0.9", "@types/serviceworker": "^0.0.67", @@ -56,7 +56,7 @@ "emojis-list": "2.1.0", "fancy-log": "^2.0.0", "flatpickr": "^4.6.13", - "graphiql": "2.2.0", + "graphiql": "2.4.1", "gulp": "^4.0.2", "gulp-iconfont": "^11.0.1", "gulp-if": "^3.0.0", @@ -68,7 +68,7 @@ "jquery.transit": "^0.9.12", "matchmedia-polyfill": "^0.3.2", "moment": "^2.29.4", - "monaco-editor": "0.36.1", + "monaco-editor": "0.37.1", "monaco-editor-nls": "^3.0.0", "monaco-themes": "^0.4.4", "monaco-yaml": "^4.0.4",