From a606233c05ba6131bf5048fc3e7ac2d2e19401a3 Mon Sep 17 00:00:00 2001 From: undefined Date: Wed, 5 Feb 2025 08:01:01 +0800 Subject: [PATCH] ui: webpack: upgrade build target --- framework/eslint-config/package.json | 8 +++---- framework/framework/package.json | 6 +++--- package.json | 4 ++-- packages/center/package.json | 2 +- packages/geoip/package.json | 2 +- packages/hydrojudge/package.json | 2 +- packages/hydrooj/package.json | 24 ++++++++++----------- packages/onlyoffice/package.json | 2 +- packages/ui-default/build/config/webpack.ts | 4 ++-- packages/ui-default/package.json | 14 ++++++------ packages/utils/package.json | 2 +- packages/vjudge/package.json | 2 +- 12 files changed, 36 insertions(+), 36 deletions(-) diff --git a/framework/eslint-config/package.json b/framework/eslint-config/package.json index 43ffb4b38..c1df4364b 100644 --- a/framework/eslint-config/package.json +++ b/framework/eslint-config/package.json @@ -4,11 +4,11 @@ "license": "MIT", "main": "react.yaml", "dependencies": { - "@stylistic/eslint-plugin": "^2.13.0", - "@typescript-eslint/eslint-plugin": "^8.21.0", - "@typescript-eslint/parser": "^8.21.0", + "@stylistic/eslint-plugin": "^3.0.1", + "@typescript-eslint/eslint-plugin": "^8.23.0", + "@typescript-eslint/parser": "^8.23.0", "eslint-config-airbnb": "^19.0.4", - "eslint-plugin-github": "^5.1.5", + "eslint-plugin-github": "^5.1.8", "eslint-plugin-import": "2.31.0", "eslint-plugin-jsx-a11y": "^6.10.2", "eslint-plugin-react": "^7.37.4", diff --git a/framework/framework/package.json b/framework/framework/package.json index db65bcb75..955bfe371 100644 --- a/framework/framework/package.json +++ b/framework/framework/package.json @@ -15,7 +15,7 @@ "koa-compress": "^5.1.1", "koa-router": "^13.0.1", "lodash": "^4.17.21", - "moment-timezone": "^0.5.46", + "moment-timezone": "^0.5.47", "path-to-regexp": "^8.2.0", "sanitize-filename": "^1.6.3", "saslprep": "^1.0.3", @@ -27,8 +27,8 @@ "@types/koa": "^2.15.0", "@types/koa-compress": "^4.0.6", "@types/koa-router": "^7.4.8", - "@types/lodash": "^4.17.14", + "@types/lodash": "^4.17.15", "@types/saslprep": "^1.0.3", - "@types/ws": "^8.5.13" + "@types/ws": "^8.5.14" } } diff --git a/package.json b/package.json index ed259eda6..2800bb6fc 100644 --- a/package.json +++ b/package.json @@ -53,9 +53,9 @@ "inspectpack": "^4.7.1", "mongodb-memory-server": "9.4.1", "nyc": "^17.1.0", - "ora": "^8.1.1", + "ora": "^8.2.0", "package-json": "^10.0.1", - "semver": "^7.6.3", + "semver": "^7.7.1", "simple-git": "^3.27.0", "supertest": "^7.0.0", "typescript": "5.7.2", diff --git a/packages/center/package.json b/packages/center/package.json index 730a3c6e3..b3b50dd78 100644 --- a/packages/center/package.json +++ b/packages/center/package.json @@ -11,6 +11,6 @@ }, "dependencies": { "crypto-js": "^4.2.0", - "semver": "^7.6.3" + "semver": "^7.7.1" } } diff --git a/packages/geoip/package.json b/packages/geoip/package.json index 1da6a6f81..dd2a3a22d 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.23" + "maxmind": "^4.3.24" }, "preferUnplugged": true } diff --git a/packages/hydrojudge/package.json b/packages/hydrojudge/package.json index a20688d53..646c277f7 100644 --- a/packages/hydrojudge/package.json +++ b/packages/hydrojudge/package.json @@ -11,7 +11,7 @@ "cac": "^6.7.14", "p-queue": "^8.1.0", "schemastery": "^3.15.0", - "semver": "^7.7.0", + "semver": "^7.7.1", "shell-quote": "^1.8.2", "superagent": "^10.1.1", "ws": "^8.18.0" diff --git a/packages/hydrooj/package.json b/packages/hydrooj/package.json index 530884583..bd570a875 100644 --- a/packages/hydrooj/package.json +++ b/packages/hydrooj/package.json @@ -12,10 +12,10 @@ }, "preferUnplugged": true, "dependencies": { - "@aws-sdk/client-s3": "3.726.1", - "@aws-sdk/lib-storage": "3.726.1", - "@aws-sdk/s3-presigned-post": "3.726.1", - "@aws-sdk/s3-request-presigner": "3.726.1", + "@aws-sdk/client-s3": "3.741.0", + "@aws-sdk/lib-storage": "3.741.0", + "@aws-sdk/s3-presigned-post": "3.741.0", + "@aws-sdk/s3-request-presigner": "3.741.0", "@graphql-tools/schema": "^10.0.16", "@hydrooj/framework": "workspace:^", "@hydrooj/utils": "workspace:^", @@ -30,36 +30,36 @@ "emojis-list": "2.1.0", "fs-extra": "^11.3.0", "graphql": "^16.10.0", - "graphql-scalars": "^1.24.0", + "graphql-scalars": "^1.24.1", "js-yaml": "^4.1.0", "koa-proxies": "^0.12.4", "koa-static-cache": "^5.1.4", "lodash": "^4.17.21", "lru-cache": "^10.4.3", "mime-types": "^2.1.35", - "moment-timezone": "^0.5.46", + "moment-timezone": "^0.5.47", "mongodb": "^5.9.2", "mongodb-uri": "^0.9.7", "nanoid": "^5.0.9", - "nodemailer": "^6.9.16", + "nodemailer": "^6.10.0", "notp": "^2.0.3", - "p-queue": "^8.0.1", + "p-queue": "^8.1.0", "sanitize-filename": "^1.6.3", "saslprep": "^1.0.3", - "schemastery": "^3.14.7", - "semver": "^7.6.3", + "schemastery": "^3.15.0", + "semver": "^7.7.1", "shorty.js": "^1.0.1", "superagent": "^10.1.1", "tar": "6.2.1", "thirty-two": "^1.0.2", - "ua-parser-js": "^2.0.0" + "ua-parser-js": "^2.0.1" }, "devDependencies": { "@types/adm-zip": "^0.4.34", "@types/fs-extra": "^11.0.4", "@types/js-yaml": "^4.0.9", "@types/koa-static-cache": "^5.1.4", - "@types/lodash": "^4.17.14", + "@types/lodash": "^4.17.15", "@types/mime-types": "^2.1.4", "@types/mongodb-uri": "^0.9.4", "@types/nodemailer": "^6.4.17", diff --git a/packages/onlyoffice/package.json b/packages/onlyoffice/package.json index 7b1f0b6b1..468710902 100644 --- a/packages/onlyoffice/package.json +++ b/packages/onlyoffice/package.json @@ -10,6 +10,6 @@ "jsonwebtoken": "^9.0.2" }, "devDependencies": { - "@types/jsonwebtoken": "^9.0.7" + "@types/jsonwebtoken": "^9.0.8" } } diff --git a/packages/ui-default/build/config/webpack.ts b/packages/ui-default/build/config/webpack.ts index 77fde7ed9..3bfb91bf8 100644 --- a/packages/ui-default/build/config/webpack.ts +++ b/packages/ui-default/build/config/webpack.ts @@ -46,7 +46,7 @@ export default async function (env: { watch?: boolean, production?: boolean, mea loader: 'esbuild-loader', options: { loader: 'tsx', - target: 'es6', + target: ['es2020', 'chrome70', 'firefox90', 'safari16'], sourcemap: true, }, }; @@ -252,7 +252,7 @@ export default async function (env: { watch?: boolean, production?: boolean, mea minifyIdentifiers: true, treeShaking: true, target: [ - 'chrome65', + 'chrome70', ], exclude: [/mathmaps/, /\.min\.js$/], })], diff --git a/packages/ui-default/package.json b/packages/ui-default/package.json index 4cfcd3e3f..2e084bd63 100644 --- a/packages/ui-default/package.json +++ b/packages/ui-default/package.json @@ -25,8 +25,8 @@ "@fontsource/source-code-pro": "^5.1.1", "@fontsource/ubuntu-mono": "^5.1.1", "@hydrooj/utils": "workspace:^", - "@sentry/browser": "^8.50.0", - "@sentry/webpack-plugin": "^3.0.0", + "@sentry/browser": "^8.54.0", + "@sentry/webpack-plugin": "^3.1.2", "@simplewebauthn/browser": "9.0.1", "@svgr/webpack": "^8.1.0", "@types/jquery": "^3.5.32", @@ -41,7 +41,7 @@ "@types/react-dom": "^18.3.5", "@types/redux-logger": "^3.0.13", "@types/uuid": "^10.0.0", - "@types/webpack-env": "^1.18.5", + "@types/webpack-env": "^1.18.8", "@vscode/codicons": "^0.0.36", "ajv": "^8.17.1", "allotment": "^1.20.2", @@ -63,7 +63,7 @@ "esbuild-loader": "^4.2.2", "flatpickr": "^4.6.13", "graphiql": "^3.8.3", - "idb": "^8.0.1", + "idb": "^8.0.2", "jquery": "^3.7.1", "jquery-scroll-lock": "^3.1.3", "jquery.easing": "^1.4.1", @@ -80,7 +80,7 @@ "nanoid": "^5.0.9", "normalize.css": "^8.0.1", "nprogress": "^0.2.0", - "p-queue": "^8.0.1", + "p-queue": "^8.1.0", "pickadate": "^3.6.4", "postcss-loader": "7.3.4", "prism-themes": "^1.9.0", @@ -101,7 +101,7 @@ "redux-promise-middleware": "^6.2.0", "redux-thunk": "^3.1.0", "rupture": "^0.7.1", - "schemastery": "^3.14.7", + "schemastery": "^3.15.0", "shorty.js": "^1.0.1", "slideout": "^1.0.1", "sticky-kit": "^1.1.3", @@ -137,7 +137,7 @@ "markdown-it-imsize": "^2.0.1", "markdown-it-mark": "^4.0.0", "markdown-it-merge-cells": "^2.0.0", - "markdown-it-table-of-contents": "^0.8.0", + "markdown-it-table-of-contents": "^0.9.0", "nunjucks": "^3.2.4", "schemastery-jsonschema": "^1.1.0", "streamsaver": "^2.0.6", diff --git a/packages/utils/package.json b/packages/utils/package.json index b0ca98498..f2801cc19 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -12,7 +12,7 @@ "cac": "^6.7.14", "fs-extra": "^11.3.0", "js-yaml": "^4.1.0", - "moment-timezone": "^0.5.46", + "moment-timezone": "^0.5.47", "mongodb": "^5.9.2", "reggol": "^1.7.1", "search-query-parser": "^1.6.0", diff --git a/packages/vjudge/package.json b/packages/vjudge/package.json index 3bd2ae3fa..6373ef704 100644 --- a/packages/vjudge/package.json +++ b/packages/vjudge/package.json @@ -9,7 +9,7 @@ "preferUnplugged": true, "dependencies": { "@hydrooj/utils": "workspace:^", - "jsdom": "^25.0.1", + "jsdom": "^26.0.0", "superagent-charset": "^1.2.0", "superagent-proxy": "^3.0.0" },