From 930ef160e371e067d90180443dfbee58e5396bb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matth=C3=A4us=20N=C3=B6ssing?= Date: Tue, 29 Jul 2025 16:45:40 +0200 Subject: [PATCH 1/2] update to node 22 --- .github/workflows/main.yml | 8 ++++---- .github/workflows/release.yml | 4 ++-- package-lock.json | 38 ++++++++++++++++++----------------- package.json | 6 +++--- 4 files changed, 29 insertions(+), 27 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f9f16ab..c2837fc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,11 +8,11 @@ concurrency: jobs: checks: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 10 strategy: matrix: - node_version: [16, 18, 20] + node_version: [ 18, 20, 22 ] steps: - uses: actions/checkout@v4 - uses: aboutbits/github-actions-node/setup-and-install@v2 @@ -26,11 +26,11 @@ jobs: shell: bash test: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 10 strategy: matrix: - node_version: [16, 18, 20] + node_version: [ 18, 20, 22 ] steps: - uses: actions/checkout@v4 - uses: aboutbits/github-actions-node/setup-and-install@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 122bd18..2ea73c6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,11 +6,11 @@ on: - 'v*' env: - NODE_VERSION: 20 + NODE_VERSION: 22 jobs: build: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 timeout-minutes: 5 steps: - uses: actions/checkout@v4 diff --git a/package-lock.json b/package-lock.json index 7f1afdc..12f11a4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "devDependencies": { "@types/jest": "^29.5.12", - "@types/node": "^18.19.26", + "@types/node": "^22", "@typescript-eslint/eslint-plugin": "^7.3.1", "@typescript-eslint/parser": "^7.3.1", "babel-jest": "^29.7.0", @@ -26,8 +26,8 @@ "yup": "^0.32.11" }, "engines": { - "node": ">=16", - "npm": ">=8" + "node": ">=18", + "npm": ">=10" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -1448,12 +1448,13 @@ "dev": true }, "node_modules/@types/node": { - "version": "18.19.26", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.26.tgz", - "integrity": "sha512-+wiMJsIwLOYCvUqSdKTrfkS8mpTp+MPINe6+Np4TAGFWWRWiBQ5kSq9nZGCSPkzx9mvT+uEukzpX4MOSCydcvw==", + "version": "22.16.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.16.5.tgz", + "integrity": "sha512-bJFoMATwIGaxxx8VJPeM8TonI8t579oRvgAuT8zFugJsJZgzqv0Fu8Mhp68iecjzG7cnN3mO2dJQ5uUM2EFrgQ==", "dev": true, + "license": "MIT", "dependencies": { - "undici-types": "~5.26.4" + "undici-types": "~6.21.0" } }, "node_modules/@types/semver": { @@ -7096,10 +7097,11 @@ } }, "node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", - "dev": true + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "dev": true, + "license": "MIT" }, "node_modules/update-browserslist-db": { "version": "1.0.13", @@ -8539,12 +8541,12 @@ "dev": true }, "@types/node": { - "version": "18.19.26", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.26.tgz", - "integrity": "sha512-+wiMJsIwLOYCvUqSdKTrfkS8mpTp+MPINe6+Np4TAGFWWRWiBQ5kSq9nZGCSPkzx9mvT+uEukzpX4MOSCydcvw==", + "version": "22.16.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.16.5.tgz", + "integrity": "sha512-bJFoMATwIGaxxx8VJPeM8TonI8t579oRvgAuT8zFugJsJZgzqv0Fu8Mhp68iecjzG7cnN3mO2dJQ5uUM2EFrgQ==", "dev": true, "requires": { - "undici-types": "~5.26.4" + "undici-types": "~6.21.0" } }, "@types/semver": { @@ -12586,9 +12588,9 @@ } }, "undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", "dev": true }, "update-browserslist-db": { diff --git a/package.json b/package.json index 285ff38..f918e0f 100644 --- a/package.json +++ b/package.json @@ -45,12 +45,12 @@ }, "homepage": "https://github.com/aboutbits/yup-locales#readme", "engines": { - "npm": ">=8", - "node": ">=16" + "npm": ">=10", + "node": ">=18" }, "devDependencies": { "@types/jest": "^29.5.12", - "@types/node": "^18.19.26", + "@types/node": "^22", "@typescript-eslint/eslint-plugin": "^7.3.1", "@typescript-eslint/parser": "^7.3.1", "babel-jest": "^29.7.0", From c2efc002254717c88a64a56df0ac2a09b6797a79 Mon Sep 17 00:00:00 2001 From: Mollpo <97024183+mollpo@users.noreply.github.com> Date: Wed, 30 Jul 2025 15:50:07 +0200 Subject: [PATCH 2/2] add node version --- .node-version | 1 + 1 file changed, 1 insertion(+) create mode 100644 .node-version diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..8fdd954 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +22 \ No newline at end of file