From ce5e5039d5a4bff5ec85a3b842a22d237027e7cc Mon Sep 17 00:00:00 2001 From: Christian Bromann Date: Thu, 5 Sep 2024 02:20:36 -0700 Subject: [PATCH] fix(core): specify minimum node version to be 18.18.0 or higher (#13482) * fix(core): specify minimum node version to be 18.18.0 or higher * bump to v18.20.0 as minimum version --- .github/workflows/test-smoke.yml | 2 +- packages/eslint-plugin-wdio/package.json | 2 +- packages/wdio-allure-reporter/package.json | 2 +- packages/wdio-appium-service/package.json | 2 +- packages/wdio-browser-runner/package.json | 2 +- packages/wdio-browserstack-service/package.json | 2 +- packages/wdio-cli/package.json | 2 +- packages/wdio-concise-reporter/package.json | 2 +- packages/wdio-config/package.json | 2 +- packages/wdio-cucumber-framework/package.json | 2 +- packages/wdio-dot-reporter/package.json | 2 +- packages/wdio-firefox-profile-service/package.json | 2 +- packages/wdio-globals/package.json | 2 +- packages/wdio-jasmine-framework/package.json | 2 +- packages/wdio-junit-reporter/package.json | 2 +- packages/wdio-lighthouse-service/package.json | 2 +- packages/wdio-local-runner/package.json | 2 +- packages/wdio-logger/package.json | 3 ++- packages/wdio-mocha-framework/package.json | 2 +- packages/wdio-repl/package.json | 2 +- packages/wdio-reporter/package.json | 2 +- packages/wdio-runner/package.json | 2 +- packages/wdio-sauce-service/package.json | 2 +- packages/wdio-shared-store-service/package.json | 2 +- packages/wdio-smoke-test-cjs-service/package.json | 2 +- packages/wdio-smoke-test-reporter/package.json | 2 +- packages/wdio-smoke-test-service/package.json | 2 +- packages/wdio-spec-reporter/package.json | 2 +- packages/wdio-static-server-service/package.json | 2 +- packages/wdio-sumologic-reporter/package.json | 2 +- packages/wdio-testingbot-service/package.json | 2 +- packages/wdio-types/package.json | 2 +- packages/wdio-utils/package.json | 2 +- packages/wdio-webdriver-mock-service/package.json | 2 +- packages/webdriver/package.json | 2 +- packages/webdriverio/package.json | 2 +- website/docs/GettingStarted.md | 2 +- 37 files changed, 38 insertions(+), 37 deletions(-) diff --git a/.github/workflows/test-smoke.yml b/.github/workflows/test-smoke.yml index 0906d421860..b3cca5d07ed 100644 --- a/.github/workflows/test-smoke.yml +++ b/.github/workflows/test-smoke.yml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - node: ['18', '20', '22'] + node: ['18.20.0', '20', '22'] os: ['ubuntu-latest', 'windows-latest', 'macos-latest'] runs-on: ${{ matrix.os }} steps: diff --git a/packages/eslint-plugin-wdio/package.json b/packages/eslint-plugin-wdio/package.json index dd9fda9505b..3d8f3a57799 100644 --- a/packages/eslint-plugin-wdio/package.json +++ b/packages/eslint-plugin-wdio/package.json @@ -18,7 +18,7 @@ "type": "module", "typeScriptVersion": "3.8.3", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-allure-reporter/package.json b/packages/wdio-allure-reporter/package.json index 588f87fd745..4ecf6d9cde1 100644 --- a/packages/wdio-allure-reporter/package.json +++ b/packages/wdio-allure-reporter/package.json @@ -33,7 +33,7 @@ }, "typeScriptVersion": "3.8.3", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "dependencies": { "@types/node": "^20.1.0", diff --git a/packages/wdio-appium-service/package.json b/packages/wdio-appium-service/package.json index ce3f88e2a94..10bc8471d90 100644 --- a/packages/wdio-appium-service/package.json +++ b/packages/wdio-appium-service/package.json @@ -6,7 +6,7 @@ "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-appium-service", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-browser-runner/package.json b/packages/wdio-browser-runner/package.json index 411b549f257..9dfcf91ea3f 100644 --- a/packages/wdio-browser-runner/package.json +++ b/packages/wdio-browser-runner/package.json @@ -6,7 +6,7 @@ "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-browser-runner", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-browserstack-service/package.json b/packages/wdio-browserstack-service/package.json index aae07fe6dc4..3fc0f1c9647 100644 --- a/packages/wdio-browserstack-service/package.json +++ b/packages/wdio-browserstack-service/package.json @@ -6,7 +6,7 @@ "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-browserstack-service", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-cli/package.json b/packages/wdio-cli/package.json index 3ec15e4076d..958327b00d3 100644 --- a/packages/wdio-cli/package.json +++ b/packages/wdio-cli/package.json @@ -9,7 +9,7 @@ "wdio": "./bin/wdio.js" }, "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-concise-reporter/package.json b/packages/wdio-concise-reporter/package.json index 728ef018939..4dd3c2eb0c8 100644 --- a/packages/wdio-concise-reporter/package.json +++ b/packages/wdio-concise-reporter/package.json @@ -6,7 +6,7 @@ "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-concise-reporter", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-config/package.json b/packages/wdio-config/package.json index 7d597d789b6..fb68abb025d 100644 --- a/packages/wdio-config/package.json +++ b/packages/wdio-config/package.json @@ -20,7 +20,7 @@ }, "typeScriptVersion": "3.8.3", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-cucumber-framework/package.json b/packages/wdio-cucumber-framework/package.json index e791cfcf3ef..7ebb287d9d2 100644 --- a/packages/wdio-cucumber-framework/package.json +++ b/packages/wdio-cucumber-framework/package.json @@ -6,7 +6,7 @@ "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-cucumber-framework", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-dot-reporter/package.json b/packages/wdio-dot-reporter/package.json index 1d88bc55b17..3d67b910791 100644 --- a/packages/wdio-dot-reporter/package.json +++ b/packages/wdio-dot-reporter/package.json @@ -6,7 +6,7 @@ "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-dot-reporter", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-firefox-profile-service/package.json b/packages/wdio-firefox-profile-service/package.json index cc5e621da94..697f99617ee 100644 --- a/packages/wdio-firefox-profile-service/package.json +++ b/packages/wdio-firefox-profile-service/package.json @@ -6,7 +6,7 @@ "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-firefox-profile-service", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-globals/package.json b/packages/wdio-globals/package.json index abf0579c530..7926fdb1d78 100644 --- a/packages/wdio-globals/package.json +++ b/packages/wdio-globals/package.json @@ -21,7 +21,7 @@ "types": "./build/index.d.ts", "typeScriptVersion": "3.8.3", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-jasmine-framework/package.json b/packages/wdio-jasmine-framework/package.json index 2bd1e8604f0..e1710f1f1d7 100644 --- a/packages/wdio-jasmine-framework/package.json +++ b/packages/wdio-jasmine-framework/package.json @@ -15,7 +15,7 @@ }, "typeScriptVersion": "3.8.3", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-junit-reporter/package.json b/packages/wdio-junit-reporter/package.json index b41bcc09179..55f2617ef5b 100644 --- a/packages/wdio-junit-reporter/package.json +++ b/packages/wdio-junit-reporter/package.json @@ -6,7 +6,7 @@ "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-junit-reporter", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-lighthouse-service/package.json b/packages/wdio-lighthouse-service/package.json index 84038fdf29d..cad5431feca 100644 --- a/packages/wdio-lighthouse-service/package.json +++ b/packages/wdio-lighthouse-service/package.json @@ -6,7 +6,7 @@ "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-lighthouse-service", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-local-runner/package.json b/packages/wdio-local-runner/package.json index e2c6810d032..625295efba3 100644 --- a/packages/wdio-local-runner/package.json +++ b/packages/wdio-local-runner/package.json @@ -6,7 +6,7 @@ "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-local-runner", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-logger/package.json b/packages/wdio-logger/package.json index 2927f79a6f3..db92d7f33c7 100644 --- a/packages/wdio-logger/package.json +++ b/packages/wdio-logger/package.json @@ -13,6 +13,7 @@ ".": { "browser": "./build/browser.js", "import": "./build/index.js", + "require": "./build/index.cjs", "types": "./build/index.d.ts", "browserSource": "./src/browser.ts" }, @@ -20,7 +21,7 @@ }, "typeScriptVersion": "3.8.3", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-mocha-framework/package.json b/packages/wdio-mocha-framework/package.json index 52a71327889..580781fd4dd 100644 --- a/packages/wdio-mocha-framework/package.json +++ b/packages/wdio-mocha-framework/package.json @@ -6,7 +6,7 @@ "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-mocha-framework", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-repl/package.json b/packages/wdio-repl/package.json index 723880a2f29..378d7bcc72f 100644 --- a/packages/wdio-repl/package.json +++ b/packages/wdio-repl/package.json @@ -6,7 +6,7 @@ "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-repl", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-reporter/package.json b/packages/wdio-reporter/package.json index 74ed481eca7..2b987b8f733 100644 --- a/packages/wdio-reporter/package.json +++ b/packages/wdio-reporter/package.json @@ -6,7 +6,7 @@ "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-reporter", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-runner/package.json b/packages/wdio-runner/package.json index 6dacf1275a2..60d404af9ff 100644 --- a/packages/wdio-runner/package.json +++ b/packages/wdio-runner/package.json @@ -6,7 +6,7 @@ "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-runner", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-sauce-service/package.json b/packages/wdio-sauce-service/package.json index 71054b16422..c2ced7e05d7 100644 --- a/packages/wdio-sauce-service/package.json +++ b/packages/wdio-sauce-service/package.json @@ -6,7 +6,7 @@ "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-sauce-service", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-shared-store-service/package.json b/packages/wdio-shared-store-service/package.json index 35f91d90748..19d5dbf4797 100644 --- a/packages/wdio-shared-store-service/package.json +++ b/packages/wdio-shared-store-service/package.json @@ -6,7 +6,7 @@ "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-shared-store-service", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-smoke-test-cjs-service/package.json b/packages/wdio-smoke-test-cjs-service/package.json index b167a44c2f6..c6d0a8cc9f0 100644 --- a/packages/wdio-smoke-test-cjs-service/package.json +++ b/packages/wdio-smoke-test-cjs-service/package.json @@ -6,7 +6,7 @@ "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-smoke-test-service", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-smoke-test-reporter/package.json b/packages/wdio-smoke-test-reporter/package.json index ea2b7410856..d4751510ead 100644 --- a/packages/wdio-smoke-test-reporter/package.json +++ b/packages/wdio-smoke-test-reporter/package.json @@ -6,7 +6,7 @@ "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-smoke-test-reporter", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-smoke-test-service/package.json b/packages/wdio-smoke-test-service/package.json index 3ffe8acece3..6b81101888f 100644 --- a/packages/wdio-smoke-test-service/package.json +++ b/packages/wdio-smoke-test-service/package.json @@ -6,7 +6,7 @@ "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-smoke-test-service", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-spec-reporter/package.json b/packages/wdio-spec-reporter/package.json index 396cc382972..208a36af99d 100644 --- a/packages/wdio-spec-reporter/package.json +++ b/packages/wdio-spec-reporter/package.json @@ -6,7 +6,7 @@ "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-spec-reporter", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-static-server-service/package.json b/packages/wdio-static-server-service/package.json index 361c27adf09..f293e559520 100644 --- a/packages/wdio-static-server-service/package.json +++ b/packages/wdio-static-server-service/package.json @@ -6,7 +6,7 @@ "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-static-server-service", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-sumologic-reporter/package.json b/packages/wdio-sumologic-reporter/package.json index 853a52ea2a4..fddde23c389 100644 --- a/packages/wdio-sumologic-reporter/package.json +++ b/packages/wdio-sumologic-reporter/package.json @@ -6,7 +6,7 @@ "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-sumologic-reporter", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-testingbot-service/package.json b/packages/wdio-testingbot-service/package.json index 57ec6e3249a..ed3404a602a 100644 --- a/packages/wdio-testingbot-service/package.json +++ b/packages/wdio-testingbot-service/package.json @@ -6,7 +6,7 @@ "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-testingbot-service", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-types/package.json b/packages/wdio-types/package.json index 335123b24e1..11a59808cb0 100644 --- a/packages/wdio-types/package.json +++ b/packages/wdio-types/package.json @@ -14,7 +14,7 @@ } }, "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-utils/package.json b/packages/wdio-utils/package.json index 9e4ee28fe25..910d92b36ae 100644 --- a/packages/wdio-utils/package.json +++ b/packages/wdio-utils/package.json @@ -19,7 +19,7 @@ "types": "./build/index.d.ts", "typeScriptVersion": "3.8.3", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/wdio-webdriver-mock-service/package.json b/packages/wdio-webdriver-mock-service/package.json index 2e8b83bb47d..fc26550a459 100644 --- a/packages/wdio-webdriver-mock-service/package.json +++ b/packages/wdio-webdriver-mock-service/package.json @@ -6,7 +6,7 @@ "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-webdriver-mock-service", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/webdriver/package.json b/packages/webdriver/package.json index 7849e8fbb22..90b61ecbe50 100644 --- a/packages/webdriver/package.json +++ b/packages/webdriver/package.json @@ -19,7 +19,7 @@ "types": "./build/index.d.ts", "typeScriptVersion": "3.8.3", "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "repository": { "type": "git", diff --git a/packages/webdriverio/package.json b/packages/webdriverio/package.json index 3a397f9d796..4e7bb68d74a 100644 --- a/packages/webdriverio/package.json +++ b/packages/webdriverio/package.json @@ -14,7 +14,7 @@ "url": "https://github.com/webdriverio/webdriverio/issues" }, "engines": { - "node": ">=18" + "node": ">=18.20.0" }, "tags": [ "webdriver", diff --git a/website/docs/GettingStarted.md b/website/docs/GettingStarted.md index 9f8219823e1..64bda719dd3 100644 --- a/website/docs/GettingStarted.md +++ b/website/docs/GettingStarted.md @@ -184,7 +184,7 @@ WebdriverIO provides tools to help you get started by recording your test action You’ll need [Node.js](http://nodejs.org) installed. -- Install at least v16.x or higher as this is the oldest active LTS version +- Install at least v18.20.0 or higher as this is the oldest active LTS version - Only releases that are or will become an LTS release are officially supported If Node is not currently installed on your system, we suggest utilizing a tool such as [NVM](https://github.com/creationix/nvm) or [Volta](https://volta.sh/) to assist in managing multiple active Node.js versions. NVM is a popular choice, while Volta is also a good alternative.