ui: webpack: upgrade build target

This commit is contained in:
undefined committed 2025-02-05 08:01:01 +08:00
1 parent e036a0dee1
commit a606233c05
12 files changed
+36 -36

No files matched your search

+4 -4
View File
@@ -4,11 +4,11 @@
"license": "MIT", "license": "MIT",
"main": "react.yaml", "main": "react.yaml",
"dependencies": { "dependencies": {
"@stylistic/eslint-plugin": "^2.13.0", "@stylistic/eslint-plugin": "^3.0.1",
"@typescript-eslint/eslint-plugin": "^8.21.0", "@typescript-eslint/eslint-plugin": "^8.23.0",
"@typescript-eslint/parser": "^8.21.0", "@typescript-eslint/parser": "^8.23.0",
"eslint-config-airbnb": "^19.0.4", "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-import": "2.31.0",
"eslint-plugin-jsx-a11y": "^6.10.2", "eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-react": "^7.37.4", "eslint-plugin-react": "^7.37.4",
+3 -3
View File
@@ -15,7 +15,7 @@
"koa-compress": "^5.1.1", "koa-compress": "^5.1.1",
"koa-router": "^13.0.1", "koa-router": "^13.0.1",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"moment-timezone": "^0.5.46", "moment-timezone": "^0.5.47",
"path-to-regexp": "^8.2.0", "path-to-regexp": "^8.2.0",
"sanitize-filename": "^1.6.3", "sanitize-filename": "^1.6.3",
"saslprep": "^1.0.3", "saslprep": "^1.0.3",
@@ -27,8 +27,8 @@
"@types/koa": "^2.15.0", "@types/koa": "^2.15.0",
"@types/koa-compress": "^4.0.6", "@types/koa-compress": "^4.0.6",
"@types/koa-router": "^7.4.8", "@types/koa-router": "^7.4.8",
"@types/lodash": "^4.17.14", "@types/lodash": "^4.17.15",
"@types/saslprep": "^1.0.3", "@types/saslprep": "^1.0.3",
"@types/ws": "^8.5.13" "@types/ws": "^8.5.14"
} }
} }
+2 -2
View File
@@ -53,9 +53,9 @@
"inspectpack": "^4.7.1", "inspectpack": "^4.7.1",
"mongodb-memory-server": "9.4.1", "mongodb-memory-server": "9.4.1",
"nyc": "^17.1.0", "nyc": "^17.1.0",
"ora": "^8.1.1", "ora": "^8.2.0",
"package-json": "^10.0.1", "package-json": "^10.0.1",
"semver": "^7.6.3", "semver": "^7.7.1",
"simple-git": "^3.27.0", "simple-git": "^3.27.0",
"supertest": "^7.0.0", "supertest": "^7.0.0",
"typescript": "5.7.2", "typescript": "5.7.2",
+1 -1
View File
@@ -11,6 +11,6 @@
}, },
"dependencies": { "dependencies": {
"crypto-js": "^4.2.0", "crypto-js": "^4.2.0",
"semver": "^7.6.3" "semver": "^7.7.1"
} }
} }
+1 -1
View File
@@ -6,7 +6,7 @@
"author": "undefined <i@undefined.moe>", "author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"dependencies": { "dependencies": {
"maxmind": "^4.3.23" "maxmind": "^4.3.24"
}, },
"preferUnplugged": true "preferUnplugged": true
} }
+1 -1
View File
@@ -11,7 +11,7 @@
"cac": "^6.7.14", "cac": "^6.7.14",
"p-queue": "^8.1.0", "p-queue": "^8.1.0",
"schemastery": "^3.15.0", "schemastery": "^3.15.0",
"semver": "^7.7.0", "semver": "^7.7.1",
"shell-quote": "^1.8.2", "shell-quote": "^1.8.2",
"superagent": "^10.1.1", "superagent": "^10.1.1",
"ws": "^8.18.0" "ws": "^8.18.0"
+12 -12
View File
@@ -12,10 +12,10 @@
}, },
"preferUnplugged": true, "preferUnplugged": true,
"dependencies": { "dependencies": {
"@aws-sdk/client-s3": "3.726.1", "@aws-sdk/client-s3": "3.741.0",
"@aws-sdk/lib-storage": "3.726.1", "@aws-sdk/lib-storage": "3.741.0",
"@aws-sdk/s3-presigned-post": "3.726.1", "@aws-sdk/s3-presigned-post": "3.741.0",
"@aws-sdk/s3-request-presigner": "3.726.1", "@aws-sdk/s3-request-presigner": "3.741.0",
"@graphql-tools/schema": "^10.0.16", "@graphql-tools/schema": "^10.0.16",
"@hydrooj/framework": "workspace:^", "@hydrooj/framework": "workspace:^",
"@hydrooj/utils": "workspace:^", "@hydrooj/utils": "workspace:^",
@@ -30,36 +30,36 @@
"emojis-list": "2.1.0", "emojis-list": "2.1.0",
"fs-extra": "^11.3.0", "fs-extra": "^11.3.0",
"graphql": "^16.10.0", "graphql": "^16.10.0",
"graphql-scalars": "^1.24.0", "graphql-scalars": "^1.24.1",
"js-yaml": "^4.1.0", "js-yaml": "^4.1.0",
"koa-proxies": "^0.12.4", "koa-proxies": "^0.12.4",
"koa-static-cache": "^5.1.4", "koa-static-cache": "^5.1.4",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"lru-cache": "^10.4.3", "lru-cache": "^10.4.3",
"mime-types": "^2.1.35", "mime-types": "^2.1.35",
"moment-timezone": "^0.5.46", "moment-timezone": "^0.5.47",
"mongodb": "^5.9.2", "mongodb": "^5.9.2",
"mongodb-uri": "^0.9.7", "mongodb-uri": "^0.9.7",
"nanoid": "^5.0.9", "nanoid": "^5.0.9",
"nodemailer": "^6.9.16", "nodemailer": "^6.10.0",
"notp": "^2.0.3", "notp": "^2.0.3",
"p-queue": "^8.0.1", "p-queue": "^8.1.0",
"sanitize-filename": "^1.6.3", "sanitize-filename": "^1.6.3",
"saslprep": "^1.0.3", "saslprep": "^1.0.3",
"schemastery": "^3.14.7", "schemastery": "^3.15.0",
"semver": "^7.6.3", "semver": "^7.7.1",
"shorty.js": "^1.0.1", "shorty.js": "^1.0.1",
"superagent": "^10.1.1", "superagent": "^10.1.1",
"tar": "6.2.1", "tar": "6.2.1",
"thirty-two": "^1.0.2", "thirty-two": "^1.0.2",
"ua-parser-js": "^2.0.0" "ua-parser-js": "^2.0.1"
}, },
"devDependencies": { "devDependencies": {
"@types/adm-zip": "^0.4.34", "@types/adm-zip": "^0.4.34",
"@types/fs-extra": "^11.0.4", "@types/fs-extra": "^11.0.4",
"@types/js-yaml": "^4.0.9", "@types/js-yaml": "^4.0.9",
"@types/koa-static-cache": "^5.1.4", "@types/koa-static-cache": "^5.1.4",
"@types/lodash": "^4.17.14", "@types/lodash": "^4.17.15",
"@types/mime-types": "^2.1.4", "@types/mime-types": "^2.1.4",
"@types/mongodb-uri": "^0.9.4", "@types/mongodb-uri": "^0.9.4",
"@types/nodemailer": "^6.4.17", "@types/nodemailer": "^6.4.17",
+1 -1
View File
@@ -10,6 +10,6 @@
"jsonwebtoken": "^9.0.2" "jsonwebtoken": "^9.0.2"
}, },
"devDependencies": { "devDependencies": {
"@types/jsonwebtoken": "^9.0.7" "@types/jsonwebtoken": "^9.0.8"
} }
} }
+2 -2
View File
@@ -46,7 +46,7 @@ export default async function (env: { watch?: boolean, production?: boolean, mea
loader: 'esbuild-loader', loader: 'esbuild-loader',
options: { options: {
loader: 'tsx', loader: 'tsx',
target: 'es6', target: ['es2020', 'chrome70', 'firefox90', 'safari16'],
sourcemap: true, sourcemap: true,
}, },
}; };
@@ -252,7 +252,7 @@ export default async function (env: { watch?: boolean, production?: boolean, mea
minifyIdentifiers: true, minifyIdentifiers: true,
treeShaking: true, treeShaking: true,
target: [ target: [
'chrome65', 'chrome70',
], ],
exclude: [/mathmaps/, /\.min\.js$/], exclude: [/mathmaps/, /\.min\.js$/],
})], })],
+7 -7
View File
@@ -25,8 +25,8 @@
"@fontsource/source-code-pro": "^5.1.1", "@fontsource/source-code-pro": "^5.1.1",
"@fontsource/ubuntu-mono": "^5.1.1", "@fontsource/ubuntu-mono": "^5.1.1",
"@hydrooj/utils": "workspace:^", "@hydrooj/utils": "workspace:^",
"@sentry/browser": "^8.50.0", "@sentry/browser": "^8.54.0",
"@sentry/webpack-plugin": "^3.0.0", "@sentry/webpack-plugin": "^3.1.2",
"@simplewebauthn/browser": "9.0.1", "@simplewebauthn/browser": "9.0.1",
"@svgr/webpack": "^8.1.0", "@svgr/webpack": "^8.1.0",
"@types/jquery": "^3.5.32", "@types/jquery": "^3.5.32",
@@ -41,7 +41,7 @@
"@types/react-dom": "^18.3.5", "@types/react-dom": "^18.3.5",
"@types/redux-logger": "^3.0.13", "@types/redux-logger": "^3.0.13",
"@types/uuid": "^10.0.0", "@types/uuid": "^10.0.0",
"@types/webpack-env": "^1.18.5", "@types/webpack-env": "^1.18.8",
"@vscode/codicons": "^0.0.36", "@vscode/codicons": "^0.0.36",
"ajv": "^8.17.1", "ajv": "^8.17.1",
"allotment": "^1.20.2", "allotment": "^1.20.2",
@@ -63,7 +63,7 @@
"esbuild-loader": "^4.2.2", "esbuild-loader": "^4.2.2",
"flatpickr": "^4.6.13", "flatpickr": "^4.6.13",
"graphiql": "^3.8.3", "graphiql": "^3.8.3",
"idb": "^8.0.1", "idb": "^8.0.2",
"jquery": "^3.7.1", "jquery": "^3.7.1",
"jquery-scroll-lock": "^3.1.3", "jquery-scroll-lock": "^3.1.3",
"jquery.easing": "^1.4.1", "jquery.easing": "^1.4.1",
@@ -80,7 +80,7 @@
"nanoid": "^5.0.9", "nanoid": "^5.0.9",
"normalize.css": "^8.0.1", "normalize.css": "^8.0.1",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"p-queue": "^8.0.1", "p-queue": "^8.1.0",
"pickadate": "^3.6.4", "pickadate": "^3.6.4",
"postcss-loader": "7.3.4", "postcss-loader": "7.3.4",
"prism-themes": "^1.9.0", "prism-themes": "^1.9.0",
@@ -101,7 +101,7 @@
"redux-promise-middleware": "^6.2.0", "redux-promise-middleware": "^6.2.0",
"redux-thunk": "^3.1.0", "redux-thunk": "^3.1.0",
"rupture": "^0.7.1", "rupture": "^0.7.1",
"schemastery": "^3.14.7", "schemastery": "^3.15.0",
"shorty.js": "^1.0.1", "shorty.js": "^1.0.1",
"slideout": "^1.0.1", "slideout": "^1.0.1",
"sticky-kit": "^1.1.3", "sticky-kit": "^1.1.3",
@@ -137,7 +137,7 @@
"markdown-it-imsize": "^2.0.1", "markdown-it-imsize": "^2.0.1",
"markdown-it-mark": "^4.0.0", "markdown-it-mark": "^4.0.0",
"markdown-it-merge-cells": "^2.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", "nunjucks": "^3.2.4",
"schemastery-jsonschema": "^1.1.0", "schemastery-jsonschema": "^1.1.0",
"streamsaver": "^2.0.6", "streamsaver": "^2.0.6",
+1 -1
View File
@@ -12,7 +12,7 @@
"cac": "^6.7.14", "cac": "^6.7.14",
"fs-extra": "^11.3.0", "fs-extra": "^11.3.0",
"js-yaml": "^4.1.0", "js-yaml": "^4.1.0",
"moment-timezone": "^0.5.46", "moment-timezone": "^0.5.47",
"mongodb": "^5.9.2", "mongodb": "^5.9.2",
"reggol": "^1.7.1", "reggol": "^1.7.1",
"search-query-parser": "^1.6.0", "search-query-parser": "^1.6.0",
+1 -1
View File
@@ -9,7 +9,7 @@
"preferUnplugged": true, "preferUnplugged": true,
"dependencies": { "dependencies": {
"@hydrooj/utils": "workspace:^", "@hydrooj/utils": "workspace:^",
"jsdom": "^25.0.1", "jsdom": "^26.0.0",
"superagent-charset": "^1.2.0", "superagent-charset": "^1.2.0",
"superagent-proxy": "^3.0.0" "superagent-proxy": "^3.0.0"
}, },