Dependency removals and updates (#1215)

## Description:

Update rest of Jest to v30. Fixes  #1205 and complements #1206.

Remove some more unused dependencies, complements #1207:

- @types/uuid (since uuid is updated to v11, see below)
- @types/raphael
- node-addon-api
- node-gyp
- priority-queue-typescript (@datastructures-js/priority-queue stays)
- rate-limiter-flexible
- wheelnav
- raphael

Update some others too:

- ~~@types/node: ^24.0.1 (guess it would go along with dockerfile
node:24-slim)~~
- copy-webpack-plugin: ^13.0.0 (not affected by the breaking change:
only affects use of globOptions, while we only use options in
webpack.config.js)
- lint-staged: ^16.1.2 (not affected by the major changes in v16 it
seems https://github.com/lint-staged/lint-staged/releases)
- node-gyp: ^11.2.0 (breaking change v11 was drop of node v16, not
affected)
- sharp: ^0.34.2 (0.34 contains braking changes.
https://sharp.pixelplumbing.com/changelog/#v0340---4th-april-2025.
However, we don't use the touched functions so no braking changes for us
(array of images to one image or to gif, ensureAlpha or removeAlpha,
animated:true which was fixed in 0.34.2 already, info.size, background
metadata).
- sinon: ^21.0.0 (Not sure if this is used and stil needed? Two breaking
changes since our v18, one method that was never used apparently, and
two others that we probably also not use as i couldn't find anything on
it)
- uuid: ^11.1.0 (https://github.com/uuidjs/uuid#readme . We're not
affected by the breaking changes. We don't use parse(), stringify(), or
pass an option#buf argument in UsernameInput.ts where we use uuidv4.
Supports Typescript from v11 and advises to remove @types/uuid from
dependencies because of that)
- webpack-cli: ^6.0.1 (v6 had breaking changes but none of those are
applicable to us. We don't use the commands or option in the webpack
scripts in package.json. And our node, webpack and webpack-dev-server
versions are newer).

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

tryout33
This commit is contained in:
VariableVince
2025-06-19 01:01:57 +02:00
committed by GitHub
parent cb97fb3410
commit 51eccf512b
2 changed files with 700 additions and 3175 deletions
+9 -17
View File
@@ -30,17 +30,16 @@
"@eslint/js": "^9.21.0",
"@types/chai": "^4.3.17",
"@types/d3": "^7.4.3",
"@types/jest": "^29.5.12",
"@types/jest": "^30.0.0",
"@types/jquery": "^3.5.31",
"@types/js-yaml": "^4.0.9",
"@types/node": "^22.10.2",
"@types/pg": "^8.11.11",
"@types/sinon": "^17.0.3",
"@types/systeminformation": "^3.23.1",
"@types/uuid": "^10.0.0",
"@types/ws": "^8.5.11",
"autoprefixer": "^10.4.20",
"babel-jest": "^29.7.0",
"babel-jest": "^30.0.0",
"binary-base64-loader": "^1.0.0",
"canvas": "^3.1.0",
"chai": "^5.1.1",
@@ -57,8 +56,8 @@
"html-loader": "^5.1.0",
"husky": "^9.1.7",
"jest": "^30.0.0",
"jest-environment-jsdom": "^30.0.0-beta.3",
"lint-staged": "^15.4.3",
"jest-environment-jsdom": "^30.0.0",
"lint-staged": "^16.1.2",
"mrmime": "^2.0.0",
"postcss": "^8.5.1",
"postcss-loader": "^8.1.1",
@@ -66,7 +65,7 @@
"prettier-plugin-organize-imports": "^4.1.0",
"prettier-plugin-sh": "^0.17.4",
"raw-loader": "^4.0.2",
"sinon": "^18.0.0",
"sinon": "^21.0.0",
"sinon-chai": "^4.0.0",
"style-loader": "^4.0.0",
"tailwindcss": "^3.4.17",
@@ -100,10 +99,9 @@
"@types/google-protobuf": "^3.15.12",
"@types/hammerjs": "^2.0.45",
"@types/msgpack5": "^3.4.6",
"@types/raphael": "^2.3.9",
"binary-loader": "^0.0.1",
"colord": "^2.9.3",
"copy-webpack-plugin": "^12.0.2",
"copy-webpack-plugin": "^13.0.0",
"d3": "^7.9.0",
"dompurify": "^3.1.7",
"dotenv": "^16.5.0",
@@ -120,24 +118,18 @@
"lit-markdown": "^1.3.2",
"msgpack5": "^6.0.2",
"nanoid": "^3.3.6",
"node-addon-api": "^8.1.0",
"node-gyp": "^10.2.0",
"obscenity": "^0.4.3",
"pg": "^8.13.3",
"priority-queue-typescript": "^1.0.1",
"prom-client": "^15.1.3",
"protobufjs": "^7.3.2",
"pureimage": "^0.4.13",
"raphael": "^2.3.0",
"rate-limiter-flexible": "^5.0.5",
"sharp": "^0.33.5",
"sharp": "^0.34.2",
"systeminformation": "^5.25.11",
"twemoji": "^14.0.2",
"uuid": "^10.0.0",
"uuid": "^11.1.0",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4",
"webpack-cli": "^6.0.1",
"webpack-dev-server": "^5.2.2",
"wheelnav": "^1.7.1",
"winston": "^3.17.0",
"winston-transport": "^4.9.0",
"ws": "^8.18.0",