From 6c1e1dfde8d1118b80b50765daca20ca724f8556 Mon Sep 17 00:00:00 2001 From: otariidae Date: Tue, 31 Dec 2024 13:40:18 +0900 Subject: [PATCH] deps: bump Node.js to 20 (#30) * deps: bump Node.js to 20 * deps: bump Node.js typing --- .github/workflows/npm-publish.yml | 4 ++-- .node-version | 1 + package-lock.json | 38 +++++++++++++++++++++++-------- package.json | 2 +- 4 files changed, 33 insertions(+), 12 deletions(-) create mode 100644 .node-version diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 1e15d37..8f476e3 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -13,9 +13,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version-file: .node-version registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm run build diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..f812e45 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +20.18.1 \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 5b551fc..70e4ada 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "kuromojin": "^3.0.0" }, "devDependencies": { - "@types/node": "^18.13.0", + "@types/node": "^20.17.10", "dirname-filename-esm": "^1.1.1", "prettier": "^3.3.3", "tsx": "^4.19.2", @@ -429,10 +429,14 @@ } }, "node_modules/@types/node": { - "version": "18.13.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.13.0.tgz", - "integrity": "sha512-gC3TazRzGoOnoKAhUx+Q0t8S9Tzs74z7m0ipwGpSqQrleP14hKxP4/JUeEQcD3W1/aIpnWl8pHowI7WokuZpXg==", - "dev": true + "version": "20.17.10", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.17.10.tgz", + "integrity": "sha512-/jrvh5h6NXhEauFFexRin69nA0uHJ5gwk4iDivp/DeoEua3uwCUto6PC86IpRITBOs4+6i2I56K5x5b6WYGXHA==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~6.19.2" + } }, "node_modules/async": { "version": "2.6.4", @@ -614,6 +618,13 @@ "node": ">=14.17" } }, + "node_modules/undici-types": { + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "dev": true, + "license": "MIT" + }, "node_modules/zlibjs": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/zlibjs/-/zlibjs-0.3.1.tgz", @@ -793,10 +804,13 @@ "optional": true }, "@types/node": { - "version": "18.13.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.13.0.tgz", - "integrity": "sha512-gC3TazRzGoOnoKAhUx+Q0t8S9Tzs74z7m0ipwGpSqQrleP14hKxP4/JUeEQcD3W1/aIpnWl8pHowI7WokuZpXg==", - "dev": true + "version": "20.17.10", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.17.10.tgz", + "integrity": "sha512-/jrvh5h6NXhEauFFexRin69nA0uHJ5gwk4iDivp/DeoEua3uwCUto6PC86IpRITBOs4+6i2I56K5x5b6WYGXHA==", + "dev": true, + "requires": { + "undici-types": "~6.19.2" + } }, "async": { "version": "2.6.4", @@ -928,6 +942,12 @@ "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==", "dev": true }, + "undici-types": { + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "dev": true + }, "zlibjs": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/zlibjs/-/zlibjs-0.3.1.tgz", diff --git a/package.json b/package.json index 46078be..bdfff93 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ }, "homepage": "https://github.com/otariidae/ke2daira.js#readme", "devDependencies": { - "@types/node": "^18.13.0", + "@types/node": "^20.17.10", "dirname-filename-esm": "^1.1.1", "prettier": "^3.3.3", "tsx": "^4.19.2",