From cf921295f8d7b78ace4d23f1ee33089ce41ad9ae Mon Sep 17 00:00:00 2001 From: AnimeDL Date: Wed, 19 Jun 2024 21:54:47 -0700 Subject: [PATCH] Bump node ver to 20 --- .github/workflows/auto-documentation.yml | 2 +- .github/workflows/release-matrix.yml | 2 +- .github/workflows/test.yml | 4 +-- modules/build.ts | 2 +- package.json | 2 +- pnpm-lock.yaml | 45 +++++++++++++----------- 6 files changed, 31 insertions(+), 26 deletions(-) diff --git a/.github/workflows/auto-documentation.yml b/.github/workflows/auto-documentation.yml index 40728c7..7f35044 100644 --- a/.github/workflows/auto-documentation.yml +++ b/.github/workflows/auto-documentation.yml @@ -18,7 +18,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 - run: pnpm i - run: pnpm run docs - uses: stefanzweifel/git-auto-commit-action@v4 diff --git a/.github/workflows/release-matrix.yml b/.github/workflows/release-matrix.yml index d7769bb..34d3153 100644 --- a/.github/workflows/release-matrix.yml +++ b/.github/workflows/release-matrix.yml @@ -21,7 +21,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 check-latest: true - name: Install Node modules run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6f0dd5e..63a789e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 check-latest: true - run: pnpm i - run: npx eslint . @@ -32,7 +32,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 check-latest: true - run: pnpm i - run: pnpm run test diff --git a/modules/build.ts b/modules/build.ts index 6214010..73ffccc 100644 --- a/modules/build.ts +++ b/modules/build.ts @@ -9,7 +9,7 @@ import esbuild from 'esbuild'; import path from 'path'; const buildsDir = './_builds'; -const nodeVer = 'node18-'; +const nodeVer = 'node20-'; type BuildTypes = `${'windows'|'macos'|'linux'|'linuxstatic'|'alpine'}-${'x64'|'arm64'}`|'linuxstatic-armv7' diff --git a/package.json b/package.json index 5f2729e..6633d70 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "@types/express": "^4.17.21", "@types/ffprobe": "^1.1.8", "@types/fs-extra": "^11.0.4", - "@types/node": "^18.15.11", + "@types/node": "^20.14.6", "@types/ws": "^8.5.10", "@types/yargs": "^17.0.32", "@typescript-eslint/eslint-plugin": "^7.13.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7ac5257..5fb09bf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -83,8 +83,8 @@ devDependencies: specifier: ^11.0.4 version: 11.0.4 '@types/node': - specifier: ^18.15.11 - version: 18.15.11 + specifier: ^20.14.6 + version: 20.14.6 '@types/ws': specifier: ^8.5.10 version: 8.5.10 @@ -114,7 +114,7 @@ devDependencies: version: 3.0.1 ts-node: specifier: ^10.9.2 - version: 10.9.2(@types/node@18.15.11)(typescript@5.4.5) + version: 10.9.2(@types/node@20.14.6)(typescript@5.4.5) ts-proto: specifier: ^1.180.0 version: 1.180.0 @@ -2017,7 +2017,7 @@ packages: resolution: {integrity: sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==} dependencies: '@types/connect': 3.4.38 - '@types/node': 18.15.11 + '@types/node': 20.14.6 dev: true /@types/cacheable-request@6.0.3: @@ -2025,26 +2025,26 @@ packages: dependencies: '@types/http-cache-semantics': 4.0.1 '@types/keyv': 3.1.4 - '@types/node': 18.15.11 + '@types/node': 20.14.6 '@types/responselike': 1.0.0 dev: false /@types/connect@3.4.38: resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==} dependencies: - '@types/node': 18.15.11 + '@types/node': 20.14.6 dev: true /@types/cors@2.8.17: resolution: {integrity: sha512-8CGDvrBj1zgo2qE+oS3pOCyYNqCPryMWY2bGfwA0dcfopWGgxs+78df0Rs3rc9THP4JkOhLsAa+15VdpAqkcUA==} dependencies: - '@types/node': 18.15.11 + '@types/node': 20.14.6 dev: true /@types/express-serve-static-core@4.19.0: resolution: {integrity: sha512-bGyep3JqPCRry1wq+O5n7oiBgGWmeIJXPjXXCo8EK0u8duZGSYar7cGqd3ML2JUsLGeB7fmc06KYo9fLGWqPvQ==} dependencies: - '@types/node': 18.15.11 + '@types/node': 20.14.6 '@types/qs': 6.9.14 '@types/range-parser': 1.2.7 '@types/send': 0.17.4 @@ -2067,7 +2067,7 @@ packages: resolution: {integrity: sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==} dependencies: '@types/jsonfile': 6.1.4 - '@types/node': 18.15.11 + '@types/node': 20.14.6 dev: true /@types/http-cache-semantics@4.0.1: @@ -2089,21 +2089,23 @@ packages: /@types/jsonfile@6.1.4: resolution: {integrity: sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==} dependencies: - '@types/node': 18.15.11 + '@types/node': 20.14.6 dev: true /@types/keyv@3.1.4: resolution: {integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==} dependencies: - '@types/node': 18.15.11 + '@types/node': 20.14.6 dev: false /@types/mime@1.3.5: resolution: {integrity: sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==} dev: true - /@types/node@18.15.11: - resolution: {integrity: sha512-E5Kwq2n4SbMzQOn6wnmBjuK9ouqlURrcZDVfbo9ftDDTFt3nk7ZKK4GMOzoYgnpQJKcxwQw+lGaBvvlMo0qN/Q==} + /@types/node@20.14.6: + resolution: {integrity: sha512-JbA0XIJPL1IiNnU7PFxDXyfAwcwVVrOoqyzzyQTyMeVhBzkJVMSkC1LlVsRQ2lpqiY4n6Bb9oCS6lzDKVQxbZw==} + dependencies: + undici-types: 5.26.5 /@types/parse-json@4.0.0: resolution: {integrity: sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==} @@ -2120,7 +2122,7 @@ packages: /@types/responselike@1.0.0: resolution: {integrity: sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==} dependencies: - '@types/node': 18.15.11 + '@types/node': 20.14.6 dev: false /@types/semver@7.5.8: @@ -2131,21 +2133,21 @@ packages: resolution: {integrity: sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==} dependencies: '@types/mime': 1.3.5 - '@types/node': 18.15.11 + '@types/node': 20.14.6 dev: true /@types/serve-static@1.15.7: resolution: {integrity: sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw==} dependencies: '@types/http-errors': 2.0.4 - '@types/node': 18.15.11 + '@types/node': 20.14.6 '@types/send': 0.17.4 dev: true /@types/ws@8.5.10: resolution: {integrity: sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A==} dependencies: - '@types/node': 18.15.11 + '@types/node': 20.14.6 dev: true /@types/xmldom@0.1.34: @@ -5239,7 +5241,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 18.15.11 + '@types/node': 20.14.6 long: 5.2.3 /protoc@1.1.3: @@ -5837,7 +5839,7 @@ packages: typescript: 5.4.5 dev: true - /ts-node@10.9.2(@types/node@18.15.11)(typescript@5.4.5): + /ts-node@10.9.2(@types/node@20.14.6)(typescript@5.4.5): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: @@ -5856,7 +5858,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.3 - '@types/node': 18.15.11 + '@types/node': 20.14.6 acorn: 8.10.0 acorn-walk: 8.2.0 arg: 4.1.3 @@ -6018,6 +6020,9 @@ packages: which-boxed-primitive: 1.0.2 dev: true + /undici-types@5.26.5: + resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + /unicode-canonical-property-names-ecmascript@2.0.0: resolution: {integrity: sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==} engines: {node: '>=4'}