Update Deps & Fix Docker(?)

This also consequently breaks the program on NodeJS <18 (which we already listed as the official minimum, now it's just enforced)
This commit is contained in:
AnimeDL 2025-04-19 09:53:20 -07:00
parent 334cdaf4de
commit 4b0265c4f6
5 changed files with 4323 additions and 3605 deletions

View file

@ -5,6 +5,7 @@ name: build and push docker image
on: on:
push: push:
branches: [ master ] branches: [ master ]
workflow_dispatch:
jobs: jobs:
build-node: build-node:

View file

@ -16,7 +16,7 @@ const config: Configuration & DevServerConfig = {
entry: './src/index.tsx', entry: './src/index.tsx',
mode: 'production', mode: 'production',
output: { output: {
path: path.resolve(__dirname, './build'), path: path.resolve(process.cwd(), './build'),
filename: 'index.js', filename: 'index.js',
}, },
target: 'web', target: 'web',
@ -50,7 +50,7 @@ const config: Configuration & DevServerConfig = {
}, },
plugins: [ plugins: [
new HtmlWebpackPlugin({ new HtmlWebpackPlugin({
template: path.join(__dirname, 'public', 'index.html') template: path.join(process.cwd(), 'public', 'index.html')
}) })
] ]
}; };

View file

@ -15,7 +15,7 @@
"gui" "gui"
], ],
"engines": { "engines": {
"node": ">=14", "node": ">=18",
"pnpm": ">=7" "pnpm": ">=7"
}, },
"author": "AnimeDL <AnimeDL@users.noreply.github.com>", "author": "AnimeDL <AnimeDL@users.noreply.github.com>",
@ -40,14 +40,14 @@
}, },
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@yao-pkg/pkg": "^5.16.1", "@yao-pkg/pkg": "^6.4.0",
"binary-parser": "^2.2.1", "binary-parser": "^2.2.1",
"binary-parser-encoder": "^1.5.3", "binary-parser-encoder": "^1.5.3",
"bn.js": "^5.2.1", "bn.js": "^5.2.1",
"cors": "^2.8.5", "cors": "^2.8.5",
"elliptic": "^6.6.1", "elliptic": "^6.6.1",
"esbuild": "^0.21.5", "esbuild": "^0.25.2",
"express": "^4.21.2", "express": "^5.1.0",
"fast-xml-parser": "^5.2.0", "fast-xml-parser": "^5.2.0",
"ffprobe": "^1.1.2", "ffprobe": "^1.1.2",
"fs-extra": "^11.3.0", "fs-extra": "^11.3.0",
@ -55,7 +55,7 @@
"iso-639": "^0.2.2", "iso-639": "^0.2.2",
"leven": "^3.1.0", "leven": "^3.1.0",
"log4js": "^6.9.1", "log4js": "^6.9.1",
"long": "^5.3.1", "long": "^5.3.2",
"lookpath": "^1.2.3", "lookpath": "^1.2.3",
"m3u8-parsed": "^1.3.0", "m3u8-parsed": "^1.3.0",
"mpd-parser": "^1.3.1", "mpd-parser": "^1.3.1",
@ -63,31 +63,31 @@
"protobufjs": "^7.5.0", "protobufjs": "^7.5.0",
"sei-helper": "^3.3.0", "sei-helper": "^3.3.0",
"ws": "^8.18.1", "ws": "^8.18.1",
"yaml": "^2.7.0", "yaml": "^2.7.1",
"yargs": "^17.7.2" "yargs": "^17.7.2"
}, },
"devDependencies": { "devDependencies": {
"@eslint/js": "^9.23.0", "@eslint/js": "^9.25.0",
"@types/bn.js": "^5.1.6", "@types/bn.js": "^5.1.6",
"@types/cors": "^2.8.17", "@types/cors": "^2.8.17",
"@types/elliptic": "^6.4.18", "@types/elliptic": "^6.4.18",
"@types/express": "^4.17.21", "@types/express": "^5.0.1",
"@types/ffprobe": "^1.1.8", "@types/ffprobe": "^1.1.8",
"@types/fs-extra": "^11.0.4", "@types/fs-extra": "^11.0.4",
"@types/node": "^20.17.24", "@types/node": "^22.14.1",
"@types/ws": "^8.18.0", "@types/ws": "^8.18.1",
"@types/yargs": "^17.0.33", "@types/yargs": "^17.0.33",
"@typescript-eslint/eslint-plugin": "^7.18.0", "@typescript-eslint/eslint-plugin": "^8.30.1",
"@typescript-eslint/parser": "^7.18.0", "@typescript-eslint/parser": "^8.30.1",
"eslint": "^8.57.1", "eslint": "^8.57.1",
"eslint-config-react-app": "^7.0.1", "eslint-config-react-app": "^7.0.1",
"eslint-plugin-react": "7.34.3", "eslint-plugin-react": "7.37.5",
"protoc": "^1.1.3", "protoc": "^1.1.3",
"removeNPMAbsolutePaths": "^3.0.1", "removeNPMAbsolutePaths": "^3.0.1",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"ts-proto": "^1.181.2", "ts-proto": "^1.181.2",
"typescript": "5.5.2", "typescript": "5.8.3",
"typescript-eslint": "7.13.1" "typescript-eslint": "8.30.1"
}, },
"scripts": { "scripts": {
"prestart": "pnpm run tsc test", "prestart": "pnpm run tsc test",

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "ES6", "target": "ES2020",
"module": "commonjs", "module": "commonjs",
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,