From 7e59fd0e0285f90cd96760cbfc24f73e83e6320b Mon Sep 17 00:00:00 2001 From: undefined Date: Tue, 17 Oct 2023 13:44:24 +0800 Subject: [PATCH] upgrade deps --- package.json | 18 +++++------ packages/elastic/package.json | 2 +- packages/eslint-config/package.json | 4 +-- packages/geoip/package.json | 2 +- packages/hydrojudge/package.json | 4 +-- packages/hydrooj/package.json | 30 +++++++++--------- packages/hydrooj/src/handler/home.ts | 2 +- packages/migrate/package.json | 2 +- packages/migrate/scripts/vijos.ts | 2 +- packages/prom-client/package.json | 2 +- packages/ui-default/package.json | 46 ++++++++++++++-------------- packages/utils/package.json | 4 +-- 12 files changed, 59 insertions(+), 59 deletions(-) diff --git a/package.json b/package.json index 6f5f6899..1a91a098 100644 --- a/package.json +++ b/package.json @@ -34,9 +34,9 @@ "@simplewebauthn/typescript-types": "^8.0.0", "@types/autocannon": "^7.12.1", "@types/cross-spawn": "^6.0.3", - "@types/node": "^20.6.1", + "@types/node": "^20.8.6", "@types/semver": "^7.5.3", - "@types/supertest": "^2.0.13", + "@types/supertest": "^2.0.14", "autocannon": "^7.12.0", "cac": "^6.7.14", "chokidar": "^3.5.3", @@ -47,7 +47,7 @@ "css-loader": "^6.8.1", "esbuild": "0.17.10", "esbuild-loader": "^2.21.0", - "eslint": "^8.50.0", + "eslint": "^8.51.0", "eslint-import-resolver-typescript": "^3.6.1", "eslint-import-resolver-webpack": "^0.13.7", "fs-extra": "^11.1.1", @@ -57,9 +57,9 @@ "mini-css-extract-plugin": "^2.7.6", "monaco-editor-webpack-plugin": "^7.1.0", "mongodb": "^5.9.0", - "mongodb-memory-server": "^8.15.1", + "mongodb-memory-server": "^9.0.1", "nyc": "^15.1.0", - "ora": "^6.3.1", + "ora": "^7.0.1", "postcss-loader": "7.3.2", "semver": "^7.5.4", "simple-git": "^3.20.0", @@ -67,9 +67,9 @@ "stylus": "^0.60.0", "stylus-loader": "7.1.2", "supertest": "^6.3.3", - "ts-loader": "^9.4.4", - "typescript": "5.0.2", - "webpack": "^5.88.2", + "ts-loader": "^9.5.0", + "typescript": "^5.2.2", + "webpack": "^5.89.0", "webpack-bundle-analyzer": "^4.9.1", "webpack-dev-server": "^4.15.1", "webpack-manifest-plugin": "^5.0.0", @@ -78,7 +78,7 @@ }, "resolutions": { "@types/node": "18.17.1", - "@types/react": "18.2.22", + "@types/react": "18.2.28", "schemastery": "3.13.0", "prettier": "npm:not-installable-package@1.0.0" } diff --git a/packages/elastic/package.json b/packages/elastic/package.json index 63563116..e1bcea5c 100644 --- a/packages/elastic/package.json +++ b/packages/elastic/package.json @@ -6,6 +6,6 @@ "author": "undefined ", "license": "AGPL-3.0-or-later", "dependencies": { - "@elastic/elasticsearch": "^8.9.0" + "@elastic/elasticsearch": "^8.10.0" } } diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index 4a7e5709..3b508d3b 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -4,8 +4,8 @@ "license": "MIT", "main": "react.yaml", "dependencies": { - "@typescript-eslint/eslint-plugin": "^6.7.3", - "@typescript-eslint/parser": "^6.7.3", + "@typescript-eslint/eslint-plugin": "^6.8.0", + "@typescript-eslint/parser": "^6.8.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-airbnb-typescript": "^17.1.0", "eslint-plugin-import": "2.28.1", diff --git a/packages/geoip/package.json b/packages/geoip/package.json index 99afe931..c81e85f2 100644 --- a/packages/geoip/package.json +++ b/packages/geoip/package.json @@ -6,7 +6,7 @@ "author": "undefined ", "license": "AGPL-3.0-or-later", "dependencies": { - "maxmind": "^4.3.13" + "maxmind": "^4.3.16" }, "preferUnplugged": true, "scripts": { diff --git a/packages/hydrojudge/package.json b/packages/hydrojudge/package.json index 3d2e1e97..d4ce30a0 100644 --- a/packages/hydrojudge/package.json +++ b/packages/hydrojudge/package.json @@ -10,7 +10,7 @@ "cac": "^6.7.14", "mongodb": "^5.9.0", "p-queue": "^7.4.1", - "schemastery": "^3.13.0", + "schemastery": "^3.13.1", "shell-quote": "^1.8.1", "superagent": "^8.1.2", "ws": "^8.14.2" @@ -19,6 +19,6 @@ "license": "AGPL-3.0-or-later", "devDependencies": { "@types/shell-quote": "^1.7.2", - "@types/ws": "^8.5.6" + "@types/ws": "^8.5.7" } } diff --git a/packages/hydrooj/package.json b/packages/hydrooj/package.json index 9daf3d02..6203d954 100644 --- a/packages/hydrooj/package.json +++ b/packages/hydrooj/package.json @@ -12,43 +12,43 @@ }, "preferUnplugged": true, "dependencies": { - "@aws-sdk/client-s3": "3.418.0", - "@aws-sdk/lib-storage": "3.418.0", + "@aws-sdk/client-s3": "3.429.0", + "@aws-sdk/lib-storage": "3.429.0", "@aws-sdk/middleware-endpoint": "3.374.0", - "@aws-sdk/s3-presigned-post": "3.418.0", - "@aws-sdk/s3-request-presigner": "3.418.0", + "@aws-sdk/s3-presigned-post": "3.429.0", + "@aws-sdk/s3-request-presigner": "3.429.0", "@graphql-tools/schema": "^10.0.0", "@hydrooj/utils": "workspace:*", - "@simplewebauthn/server": "^8.1.1", + "@simplewebauthn/server": "^8.3.2", "adm-zip": "0.5.5", "cac": "^6.7.14", - "cordis": "^2.8.8", + "cordis": "2.8.8", "detect-browser": "^5.3.0", "emoji-regex": "^10.2.1", "emojis-list": "2.1.0", "fs-extra": "^11.1.1", "graphql": "^16.8.1", - "graphql-scalars": "^1.22.2", + "graphql-scalars": "^1.22.4", "js-yaml": "^4.1.0", "koa": "^2.14.2", "koa-body": "^6.0.1", "koa-compress": "^5.1.1", "koa-proxies": "^0.12.3", - "koa-router": "^12.0.0", + "koa-router": "^12.0.1", "koa-static-cache": "^5.1.4", "lodash": "^4.17.21", - "lru-cache": "^9.1.2", + "lru-cache": "^10.0.1", "mime-types": "^2.1.35", "moment-timezone": "^0.5.43", "mongodb": "^5.9.0", - "nanoid": "^5.0.1", - "nodemailer": "^6.9.5", + "nanoid": "^5.0.2", + "nodemailer": "^6.9.6", "notp": "^2.0.3", "p-queue": "^7.4.1", "path-to-regexp": "^6.2.1", "require-resolve-hook": "^1.1.0", "saslprep": "^1.0.3", - "schemastery": "^3.13.0", + "schemastery": "^3.13.1", "semver": "^7.5.4", "serialize-javascript": "^6.0.1", "superagent": "^8.1.2", @@ -59,13 +59,13 @@ "devDependencies": { "@types/adm-zip": "^0.4.34", "@types/fs-extra": "^11.0.2", - "@types/js-yaml": "^4.0.6", + "@types/js-yaml": "^4.0.7", "@types/koa": "^2.13.9", "@types/koa-compress": "^4.0.4", "@types/koa-router": "^7.4.5", "@types/koa-static-cache": "^5.1.2", - "@types/lodash": "^4.14.198", - "@types/mime-types": "^2.1.1", + "@types/lodash": "^4.14.199", + "@types/mime-types": "^2.1.2", "@types/nodemailer": "^6.4.11", "@types/notp": "^2.0.3", "@types/saslprep": "^1.0.1", diff --git a/packages/hydrooj/src/handler/home.ts b/packages/hydrooj/src/handler/home.ts index 10b5d5ad..eb8e193b 100644 --- a/packages/hydrooj/src/handler/home.ts +++ b/packages/hydrooj/src/handler/home.ts @@ -504,7 +504,7 @@ class HomeDomainCreateHandler extends Handler { async post(_: string, id: string, name: string, bulletin: string, avatar: string) { const doc = await domain.get(id); if (doc) throw new DomainAlreadyExistsError(id); - avatar = avatar || this.user.avatar || `gravatar:${this.user.mail}`; + avatar ||= this.user.avatar || `gravatar:${this.user.mail}`; const domainId = await domain.add(id, this.user._id, name, bulletin); await Promise.all([ domain.edit(domainId, { avatar }), diff --git a/packages/migrate/package.json b/packages/migrate/package.json index ba657491..b0c570c9 100644 --- a/packages/migrate/package.json +++ b/packages/migrate/package.json @@ -6,7 +6,7 @@ "author": "undefined ", "license": "AGPL-3.0-or-later", "dependencies": { - "mariadb": "^3.2.1", + "mariadb": "^3.2.2", "mongodb": "^5.9.0", "turndown": "^7.1.2", "xml2js": "^0.6.2" diff --git a/packages/migrate/scripts/vijos.ts b/packages/migrate/scripts/vijos.ts index 866316b1..2385422b 100644 --- a/packages/migrate/scripts/vijos.ts +++ b/packages/migrate/scripts/vijos.ts @@ -187,7 +187,7 @@ const tasks = { num_problems: 'nProblem', num_submit: 'nSubmit', num_accept: 'nAccept', - num_liked: 'nLike', + num_liked: 'nLiked', level: 'level', role: 'role', join_at: 'joinAt', diff --git a/packages/prom-client/package.json b/packages/prom-client/package.json index 91243fc9..df7bfff2 100644 --- a/packages/prom-client/package.json +++ b/packages/prom-client/package.json @@ -3,6 +3,6 @@ "version": "0.1.6", "main": "index.ts", "dependencies": { - "prom-client": "^14.2.0" + "prom-client": "^15.0.0" } } diff --git a/packages/ui-default/package.json b/packages/ui-default/package.json index e04a21f2..731f6c67 100644 --- a/packages/ui-default/package.json +++ b/packages/ui-default/package.json @@ -14,30 +14,30 @@ "cli": false }, "devDependencies": { - "@blueprintjs/core": "^5.3.2", - "@fontsource/dm-mono": "^5.0.12", - "@fontsource/fira-code": "^5.0.8", - "@fontsource/inconsolata": "^5.0.8", - "@fontsource/jetbrains-mono": "^5.0.12", + "@blueprintjs/core": "^5.5.1", + "@fontsource/dm-mono": "^5.0.15", + "@fontsource/fira-code": "^5.0.13", + "@fontsource/inconsolata": "^5.0.13", + "@fontsource/jetbrains-mono": "^5.0.15", "@fontsource/pt-mono": "^5.0.8", - "@fontsource/roboto-mono": "^5.0.8", - "@fontsource/source-code-pro": "^5.0.8", - "@fontsource/ubuntu-mono": "^5.0.12", + "@fontsource/roboto-mono": "^5.0.13", + "@fontsource/source-code-pro": "^5.0.13", + "@fontsource/ubuntu-mono": "^5.0.15", "@hydrooj/utils": "workspace:*", - "@simplewebauthn/browser": "^8.0.2", + "@simplewebauthn/browser": "^8.3.1", "@svgr/webpack": "^8.1.0", "@types/gulp-if": "^0.0.34", - "@types/jquery": "^3.5.19", + "@types/jquery": "^3.5.22", "@types/json-schema": "^7.0.13", "@types/katex": "^0.16.3", - "@types/markdown-it": "^13.0.1", + "@types/markdown-it": "^13.0.2", "@types/pickadate": "^3.5.33", "@types/qrcode": "^1.5.2", - "@types/react": "^18.2.22", - "@types/react-dom": "^18.2.7", - "@types/redux-logger": "^3.0.9", - "@types/serviceworker": "^0.0.74", - "@types/sharedworker": "^0.0.103", + "@types/react": "^18.2.28", + "@types/react-dom": "^18.2.13", + "@types/redux-logger": "^3.0.10", + "@types/serviceworker": "^0.0.75", + "@types/sharedworker": "^0.0.104", "@types/webpack-env": "^1.18.2", "@vscode/codicons": "^0.0.33", "ajv": "^8.12.0", @@ -47,7 +47,7 @@ "chalk": "^5.3.0", "classnames": "^2.3.2", "clipboard": "^2.0.11", - "cordis": "^2.8.8", + "cordis": "2.8.8", "diff": "^5.1.0", "diff-dom": "^5.0.7", "echarts": "^5.4.3", @@ -68,10 +68,10 @@ "matchmedia-polyfill": "^0.3.2", "moment": "^2.29.4", "monaco-editor": "0.38.0", - "monaco-editor-nls": "^3.0.0", + "monaco-editor-nls": "^3.1.0", "monaco-themes": "^0.4.4", "monaco-yaml": "^4.0.4", - "nanoid": "^5.0.1", + "nanoid": "^5.0.2", "normalize.css": "^8.0.1", "nprogress": "^0.2.0", "p-queue": "^7.4.1", @@ -88,14 +88,14 @@ "react-dnd-html5-backend": "^16.0.1", "react-dom": "^18.2.0", "react-query": "^3.39.3", - "react-redux": "^8.1.2", + "react-redux": "^8.1.3", "reconnecting-websocket": "^4.4.0", "redux": "^4.2.1", "redux-logger": "^3.0.6", "redux-promise-middleware": "^6.1.3", "redux-thunk": "^2.4.2", "rupture": "^0.7.1", - "schemastery": "^3.13.0", + "schemastery": "^3.13.1", "slideout": "^1.0.1", "sticky-kit": "^1.1.3", "tether": "1.4.7", @@ -113,9 +113,9 @@ "fs-extra": "^11.1.1", "js-yaml": "^4.1.0", "jsesc": "^3.0.2", - "katex": "^0.16.8", + "katex": "^0.16.9", "lodash": "^4.17.21", - "markdown-it": "^13.0.1", + "markdown-it": "^13.0.2", "markdown-it-anchor": "^8.6.7", "markdown-it-attrs": "^4.1.6", "markdown-it-footnote": "^3.0.3", diff --git a/packages/utils/package.json b/packages/utils/package.json index bf453c4f..07d10240 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -14,10 +14,10 @@ "js-yaml": "^4.1.0", "moment-timezone": "^0.5.43", "mongodb": "^5.9.0", - "reggol": "^1.5.1", + "reggol": "^1.5.2", "search-query-parser": "^1.6.0", "source-map-support": "^0.5.21", - "systeminformation": "^5.21.9" + "systeminformation": "^5.21.11" }, "devDependencies": { "@types/fs-extra": "^11.0.2",