From a6f30b84c766abb866ccf903d2f0c7cc49c36a17 Mon Sep 17 00:00:00 2001 From: Avi Vahl Date: Sat, 2 Nov 2024 14:11:52 +0200 Subject: [PATCH] infra!: support Node 22 (LTS); drop 18 --- .github/dependabot.yml | 2 +- .github/workflows/next.yml | 4 +- .github/workflows/npm.yml | 4 +- .github/workflows/publish-tag.yml | 4 +- .github/workflows/tests.yml | 2 +- package-lock.json | 60 +++++++++++------------ package.json | 4 +- packages/build-tools/package.json | 2 +- packages/cli/package.json | 2 +- packages/code-formatter/package.json | 2 +- packages/core-test-kit/package.json | 2 +- packages/core/package.json | 2 +- packages/create-stylable-app/package.json | 2 +- packages/custom-value/package.json | 2 +- packages/dom-test-kit/package.json | 2 +- packages/e2e-test-kit/package.json | 2 +- packages/esbuild/package.json | 2 +- packages/jest/package.json | 2 +- packages/language-service/package.json | 2 +- packages/module-utils/package.json | 2 +- packages/node/package.json | 2 +- packages/optimizer/package.json | 2 +- packages/rollup-plugin/package.json | 2 +- packages/runtime/package.json | 2 +- packages/schema-extract/package.json | 2 +- packages/uni-driver/package.json | 2 +- packages/webpack-extensions/package.json | 2 +- packages/webpack-plugin/package.json | 2 +- 28 files changed, 61 insertions(+), 61 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f593e0aa5..ecf132ce7 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,4 +9,4 @@ updates: ignore: - dependency-name: '@types/node' versions: - - '>=13' + - '>=21' diff --git a/.github/workflows/next.yml b/.github/workflows/next.yml index a123f0f2e..04265b90d 100644 --- a/.github/workflows/next.yml +++ b/.github/workflows/next.yml @@ -7,10 +7,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Use Node.js 18 + - name: Use Node.js 22 uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 registry-url: 'https://registry.npmjs.org/' cache: npm - run: npm ci diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 3a38a30a3..553d13fec 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -7,10 +7,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Use Node.js 20 + - name: Use Node.js 22 uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 registry-url: 'https://registry.npmjs.org/' cache: npm - run: npm ci diff --git a/.github/workflows/publish-tag.yml b/.github/workflows/publish-tag.yml index e03e2c251..229105277 100644 --- a/.github/workflows/publish-tag.yml +++ b/.github/workflows/publish-tag.yml @@ -10,10 +10,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Use Node.js 18 + - name: Use Node.js 22 uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 registry-url: 'https://registry.npmjs.org/' cache: npm - run: npm ci diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 73633b284..ee412528c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [20, 18] + node-version: [22, 20] os: [ubuntu-latest, windows-latest, macOS-latest] steps: - uses: actions/checkout@v4 diff --git a/package-lock.json b/package-lock.json index ad34bf57a..b4072ed1f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,7 @@ "@types/lodash.upperfirst": "^4.3.9", "@types/mime": "^3.0.4", "@types/mocha": "^10.0.9", - "@types/node": "18", + "@types/node": "20", "@types/postcss-safe-parser": "^5.0.4", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", @@ -74,7 +74,7 @@ "yargs": "^17.7.2" }, "engines": { - "node": ">=18.12.0" + "node": ">=20" } }, "node_modules/@bcoe/v8-coverage": { @@ -1504,12 +1504,12 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "18.19.61", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.61.tgz", - "integrity": "sha512-z8fH66NcVkDzBItOao+Nyh0fiy7CYdxIyxnNCcZ60aY0I+EA/y4TSi/S/W9i8DIQvwVo7a0pgzAxmDeNnqrpkw==", + "version": "20.17.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.17.5.tgz", + "integrity": "sha512-n8FYY/pRxu496441gIcAQFZPKXbhsd6VZygcq+PTSZ75eMh/Ke0hCAROdUa21qiFqKNsPPYic46yXDO1JGiPBQ==", "license": "MIT", "dependencies": { - "undici-types": "~5.26.4" + "undici-types": "~6.19.2" } }, "node_modules/@types/postcss-safe-parser": { @@ -7630,9 +7630,9 @@ } }, "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==", + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", "license": "MIT" }, "node_modules/update-browserslist-db": { @@ -8108,7 +8108,7 @@ "find-config": "^1.0.0" }, "engines": { - "node": ">=18.12.0" + "node": ">=20" } }, "packages/cli": { @@ -8139,7 +8139,7 @@ "stc-format": "bin/stc-format.js" }, "engines": { - "node": ">=18.12.0" + "node": ">=20" } }, "packages/code-formatter": { @@ -8153,7 +8153,7 @@ "postcss": "^8.4.47" }, "engines": { - "node": ">=18.12.0" + "node": ">=20" } }, "packages/core": { @@ -8177,7 +8177,7 @@ "postcss-value-parser": "^4.2.0" }, "engines": { - "node": ">=18.12.0" + "node": ">=20" } }, "packages/core-test-kit": { @@ -8192,7 +8192,7 @@ "postcss": "^8.4.47" }, "engines": { - "node": ">=18.12.0" + "node": ">=20" } }, "packages/create-stylable-app": { @@ -8206,7 +8206,7 @@ "create-stylable-app": "bin/create-stylable-app.js" }, "engines": { - "node": ">=18.12.0" + "node": ">=20" } }, "packages/custom-value": { @@ -8217,7 +8217,7 @@ "@stylable/core": "^6.1.1" }, "engines": { - "node": ">=18.12.0" + "node": ">=20" } }, "packages/dom-test-kit": { @@ -8230,7 +8230,7 @@ "@tokey/css-selector-parser": "^0.6.2" }, "engines": { - "node": ">=18.12.0" + "node": ">=20" } }, "packages/e2e-test-kit": { @@ -8244,7 +8244,7 @@ "rimraf": "^5.0.7" }, "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "peerDependencies": { "webpack": "^5.30.0" @@ -8265,7 +8265,7 @@ "decache": "^4.6.2" }, "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "peerDependencies": { "esbuild": ">=0.17.18" @@ -8316,7 +8316,7 @@ "@stylable/runtime": "^6.1.1" }, "engines": { - "node": ">=18.12.0" + "node": ">=20" } }, "packages/language-service": { @@ -8343,7 +8343,7 @@ "vscode-languageserver-protocol": "^3.17.5" }, "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "peerDependencies": { "typescript": ">=3.8" @@ -8359,7 +8359,7 @@ "vlq": "^2.0.4" }, "engines": { - "node": ">=18.12.0" + "node": ">=20" } }, "packages/node": { @@ -8374,7 +8374,7 @@ "find-config": "^1.0.0" }, "engines": { - "node": ">=18.12.0" + "node": ">=20" } }, "packages/optimizer": { @@ -8388,7 +8388,7 @@ "postcss": "^8.4.47" }, "engines": { - "node": ">=18.12.0" + "node": ">=20" } }, "packages/rollup-plugin": { @@ -8407,7 +8407,7 @@ "mime": "^3.0.0" }, "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "peerDependencies": { "rollup": "^2.70.0 || ^3.0.0 || ^4.0.0" @@ -8418,7 +8418,7 @@ "version": "6.1.1", "license": "MIT", "engines": { - "node": ">=18.12.0" + "node": ">=20" } }, "packages/schema-extract": { @@ -8430,7 +8430,7 @@ "jest-docblock": "^29.7.0" }, "engines": { - "node": ">=18.12.0" + "node": ">=20" } }, "packages/uni-driver": { @@ -8438,7 +8438,7 @@ "version": "6.1.1", "license": "MIT", "engines": { - "node": ">=18.12.0" + "node": ">=20" } }, "packages/webpack-extensions": { @@ -8454,7 +8454,7 @@ "lodash.clonedeep": "^4.5.0" }, "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "peerDependencies": { "webpack": "^5.30.0" @@ -8478,7 +8478,7 @@ "postcss": "^8.4.47" }, "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "peerDependencies": { "webpack": "^5.30.0" diff --git a/package.json b/package.json index c05963356..9e814e9c8 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "@types/lodash.upperfirst": "^4.3.9", "@types/mime": "^3.0.4", "@types/mocha": "^10.0.9", - "@types/node": "18", + "@types/node": "20", "@types/postcss-safe-parser": "^5.0.4", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", @@ -82,7 +82,7 @@ "yargs": "^17.7.2" }, "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "repository": "git@github.com:wix/stylable.git", "author": "Wix.com", diff --git a/packages/build-tools/package.json b/packages/build-tools/package.json index fc33b4be3..6e76dcb2c 100644 --- a/packages/build-tools/package.json +++ b/packages/build-tools/package.json @@ -17,7 +17,7 @@ "!*/tsconfig.{json,tsbuildinfo}" ], "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "publishConfig": { "access": "public" diff --git a/packages/cli/package.json b/packages/cli/package.json index b9a8b9c36..1c7c977e4 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -37,7 +37,7 @@ "!*/tsconfig.{json,tsbuildinfo}" ], "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "publishConfig": { "access": "public" diff --git a/packages/code-formatter/package.json b/packages/code-formatter/package.json index f9d7731f3..5ff4b17b1 100644 --- a/packages/code-formatter/package.json +++ b/packages/code-formatter/package.json @@ -19,7 +19,7 @@ "!*/tsconfig.{json,tsbuildinfo}" ], "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "publishConfig": { "access": "public" diff --git a/packages/core-test-kit/package.json b/packages/core-test-kit/package.json index ad3350617..a541f4d42 100644 --- a/packages/core-test-kit/package.json +++ b/packages/core-test-kit/package.json @@ -20,7 +20,7 @@ "!*/tsconfig.{json,tsbuildinfo}" ], "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "publishConfig": { "access": "public" diff --git a/packages/core/package.json b/packages/core/package.json index cd55dd5d3..e8cfd7201 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -29,7 +29,7 @@ "!*/tsconfig.{json,tsbuildinfo}" ], "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "publishConfig": { "access": "public" diff --git a/packages/create-stylable-app/package.json b/packages/create-stylable-app/package.json index f12501c04..d6864c633 100644 --- a/packages/create-stylable-app/package.json +++ b/packages/create-stylable-app/package.json @@ -27,7 +27,7 @@ "application" ], "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "publishConfig": { "access": "public" diff --git a/packages/custom-value/package.json b/packages/custom-value/package.json index ebf4e5d69..e518ca347 100644 --- a/packages/custom-value/package.json +++ b/packages/custom-value/package.json @@ -16,7 +16,7 @@ "!*/tsconfig.{json,tsbuildinfo}" ], "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "publishConfig": { "access": "public" diff --git a/packages/dom-test-kit/package.json b/packages/dom-test-kit/package.json index 9b586a771..45a22b5d7 100644 --- a/packages/dom-test-kit/package.json +++ b/packages/dom-test-kit/package.json @@ -18,7 +18,7 @@ "!*/tsconfig.{json,tsbuildinfo}" ], "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "publishConfig": { "access": "public" diff --git a/packages/e2e-test-kit/package.json b/packages/e2e-test-kit/package.json index 55a7687c7..b78d96f69 100644 --- a/packages/e2e-test-kit/package.json +++ b/packages/e2e-test-kit/package.json @@ -19,7 +19,7 @@ "!*/tsconfig.{json,tsbuildinfo}" ], "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "publishConfig": { "access": "public" diff --git a/packages/esbuild/package.json b/packages/esbuild/package.json index 60b313cdd..92bf4b268 100644 --- a/packages/esbuild/package.json +++ b/packages/esbuild/package.json @@ -27,7 +27,7 @@ "!*/tsconfig.{json,tsbuildinfo}" ], "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "publishConfig": { "access": "public" diff --git a/packages/jest/package.json b/packages/jest/package.json index 54464a922..8c866f349 100644 --- a/packages/jest/package.json +++ b/packages/jest/package.json @@ -20,7 +20,7 @@ "!*/tsconfig.{json,tsbuildinfo}" ], "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "publishConfig": { "access": "public" diff --git a/packages/language-service/package.json b/packages/language-service/package.json index 1fe1602b4..5284eae42 100644 --- a/packages/language-service/package.json +++ b/packages/language-service/package.json @@ -37,7 +37,7 @@ "!*/tsconfig.{json,tsbuildinfo}" ], "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "publishConfig": { "access": "public" diff --git a/packages/module-utils/package.json b/packages/module-utils/package.json index 05a4094ce..64e5564a5 100644 --- a/packages/module-utils/package.json +++ b/packages/module-utils/package.json @@ -18,7 +18,7 @@ "!*/tsconfig.{json,tsbuildinfo}" ], "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "publishConfig": { "access": "public" diff --git a/packages/node/package.json b/packages/node/package.json index 4756de71c..4391aa9e0 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -22,7 +22,7 @@ "!*/tsconfig.{json,tsbuildinfo}" ], "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "publishConfig": { "access": "public" diff --git a/packages/optimizer/package.json b/packages/optimizer/package.json index de996631a..b7678ddfc 100644 --- a/packages/optimizer/package.json +++ b/packages/optimizer/package.json @@ -19,7 +19,7 @@ "!*/tsconfig.{json,tsbuildinfo}" ], "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "publishConfig": { "access": "public" diff --git a/packages/rollup-plugin/package.json b/packages/rollup-plugin/package.json index 17b8b1501..0dd637409 100644 --- a/packages/rollup-plugin/package.json +++ b/packages/rollup-plugin/package.json @@ -28,7 +28,7 @@ "!*/tsconfig.{json,tsbuildinfo}" ], "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "publishConfig": { "access": "public" diff --git a/packages/runtime/package.json b/packages/runtime/package.json index 7aa8ffb34..9197f6c99 100644 --- a/packages/runtime/package.json +++ b/packages/runtime/package.json @@ -29,7 +29,7 @@ "!*/tsconfig.{json,tsbuildinfo}" ], "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "publishConfig": { "access": "public" diff --git a/packages/schema-extract/package.json b/packages/schema-extract/package.json index 5d109998e..6ef2fee5e 100644 --- a/packages/schema-extract/package.json +++ b/packages/schema-extract/package.json @@ -17,7 +17,7 @@ "!*/tsconfig.{json,tsbuildinfo}" ], "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "publishConfig": { "access": "public" diff --git a/packages/uni-driver/package.json b/packages/uni-driver/package.json index 2be7df28b..1ec8db8b9 100644 --- a/packages/uni-driver/package.json +++ b/packages/uni-driver/package.json @@ -13,7 +13,7 @@ "!*/tsconfig.{json,tsbuildinfo}" ], "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "publishConfig": { "access": "public" diff --git a/packages/webpack-extensions/package.json b/packages/webpack-extensions/package.json index 7a08e4c55..b760d0810 100644 --- a/packages/webpack-extensions/package.json +++ b/packages/webpack-extensions/package.json @@ -24,7 +24,7 @@ "!*/tsconfig.{json,tsbuildinfo}" ], "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "publishConfig": { "access": "public" diff --git a/packages/webpack-plugin/package.json b/packages/webpack-plugin/package.json index 271d9fbb7..e624eecd9 100644 --- a/packages/webpack-plugin/package.json +++ b/packages/webpack-plugin/package.json @@ -29,7 +29,7 @@ "!*/tsconfig.{json,tsbuildinfo}" ], "engines": { - "node": ">=18.12.0" + "node": ">=20" }, "publishConfig": { "access": "public"