From ee08d309ee8f79cb6d84eca4be5844dfdb4d7e40 Mon Sep 17 00:00:00 2001 From: Ricki <141253288+RickiJay-WMDE@users.noreply.github.com> Date: Tue, 5 Mar 2024 17:00:03 +0100 Subject: [PATCH] NPM Update (#599) * @types/mocha * @types/node * Revert * Axios * Revert * dotenv-expand * Revert * mocha * Revert * ts-node * Revert * Working Thus Far * dotenv-expand * Typescript * Min Dependency Engine * Dependabot * Group Not Ignore --- .github/dependabot.yml | 9 ++- test/package-lock.json | 124 +++++++++++++++---------------------- test/package.json | 16 ++--- test/setup/loadEnvFiles.ts | 2 +- 4 files changed, 63 insertions(+), 88 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index d6f0c52e5..5939947ac 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -10,12 +10,8 @@ updates: directory: /test/ schedule: interval: weekly - allow: - - dependency-name: "*eslint*" - - dependency-name: "prettier*" - - dependency-name: "stylelint*" commit-message: - prefix: npm format + prefix: npm include: scope groups: lint: @@ -23,3 +19,6 @@ updates: - "*eslint*" - "prettier*" - "stylelint*" + "@wdio": + patterns: + - "@wdio/*" diff --git a/test/package-lock.json b/test/package-lock.json index ce03ac849..304883c5c 100644 --- a/test/package-lock.json +++ b/test/package-lock.json @@ -8,8 +8,8 @@ "name": "wikibase-release-selenium-testing", "version": "0.1.0", "devDependencies": { - "@types/mocha": "^10.0.2", - "@types/node": "^20.10.0", + "@types/mocha": "^10.0.6", + "@types/node": "^20.11.24", "@wdio/cli": "^8.18.2", "@wdio/local-runner": "^8.18.2", "@wdio/mocha-framework": "^8.18.2", @@ -19,30 +19,30 @@ "api-testing": "^1.6.0", "apollo-boost": "^0.4.9", "async-wait-until": "^2.0.12", - "axios": "^1.5.1", + "axios": "^1.6.7", "cross-fetch": "^4.0.0", - "dotenv-expand": "^10.0.0", + "dotenv-expand": "^11.0.6", "envsub": "^4.1.0", "eslint": "^8.57.0", "eslint-config-wikimedia": "0.26.0", "eslint-plugin-compat": "^4.2.0", "eslint-plugin-unicorn": "^51.0.1", "lodash": "^4.17.21", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "npm-run-all": "^4.1.5", "prettier": "^3.2.5", "prettier-plugin-organize-imports": "^3.2.4", "stylelint-config-wikimedia": "0.16.1", - "ts-node": "^10.9.1", + "ts-node": "^10.9.2", "tslib": "^2.6.2", - "typescript": "~5.2.2", + "typescript": "^5.3.3", "wdio-mediawiki": "2.4.0", "wdio-wikibase": "^6.0.1", "yaml-eslint-parser": "^1.2.2", "yargs": "^17.7.2" }, "engines": { - "node": ">=14.14" + "node": ">=16.14" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -789,15 +789,15 @@ "dev": true }, "node_modules/@types/mocha": { - "version": "10.0.2", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.2.tgz", - "integrity": "sha512-NaHL0+0lLNhX6d9rs+NSt97WH/gIlRHmszXbQ/8/MV/eVcFNdeJ/GYhrFuUc8K7WuPhRhTSdMkCp8VMzhUq85w==", + "version": "10.0.6", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.6.tgz", + "integrity": "sha512-dJvrYWxP/UcXm36Qn36fxhUKu8A/xMRXVT2cliFF1Z7UA9liG5Psj3ezNSZw+5puH2czDXRLcXQxf8JbJt0ejg==", "dev": true }, "node_modules/@types/node": { - "version": "20.10.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.0.tgz", - "integrity": "sha512-D0WfRmU9TQ8I9PFx9Yc+EBHw+vSpIub4IDvQivcp26PtPrdMGAq5SDcpXEo/epqa/DXotVpekHiLNTg3iaKXBQ==", + "version": "20.11.24", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.24.tgz", + "integrity": "sha512-Kza43ewS3xoLgCEpQrsT+xRo/EJej1y0kVYGiLFE1NEODXGzTfwiC6tXTLMQskn1X4/Rjlh0MQUvx9W+L9long==", "dev": true, "dependencies": { "undici-types": "~5.26.4" @@ -1983,12 +1983,12 @@ "dev": true }, "node_modules/axios": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.5.1.tgz", - "integrity": "sha512-Q28iYCWzNHjAm+yEAot5QaAMxhMghWLFVf7rRdwhUI+c2jix2DUXjAHXVi+s1ibs3mjPO/cCgbA++3BjD0vP/A==", + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.7.tgz", + "integrity": "sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==", "dev": true, "dependencies": { - "follow-redirects": "^1.15.0", + "follow-redirects": "^1.15.4", "form-data": "^4.0.0", "proxy-from-env": "^1.1.0" } @@ -3732,24 +3732,30 @@ } }, "node_modules/dotenv": { - "version": "16.3.1", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", - "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", + "version": "16.4.5", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", + "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", "dev": true, "engines": { "node": ">=12" }, "funding": { - "url": "https://github.com/motdotla/dotenv?sponsor=1" + "url": "https://dotenvx.com" } }, "node_modules/dotenv-expand": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-10.0.0.tgz", - "integrity": "sha512-GopVGCpVS1UKH75VKHGuQFqS1Gusej0z4FyQkPdwjil2gNIv+LNsqBlboOzpJFZKVT95GkCyWJbBSdFEFUWI2A==", + "version": "11.0.6", + "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-11.0.6.tgz", + "integrity": "sha512-8NHi73otpWsZGBSZwwknTXS5pqMOrk9+Ssrna8xCaxkzEpU9OTf9R5ArQGVw03//Zmk9MOwLPng9WwndvpAJ5g==", "dev": true, + "dependencies": { + "dotenv": "^16.4.4" + }, "engines": { "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" } }, "node_modules/duplexer2": { @@ -5578,9 +5584,9 @@ "dev": true }, "node_modules/follow-redirects": { - "version": "1.15.3", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz", - "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==", + "version": "1.15.5", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", + "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==", "dev": true, "funding": [ { @@ -8366,9 +8372,9 @@ "dev": true }, "node_modules/mocha": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.2.0.tgz", - "integrity": "sha512-IDY7fl/BecMwFHzoqF2sg/SHHANeBoMMXFlS9r0OXKDssYE1M5O43wUY/9BVPeIvfH2zmEbBfseqN9gBQZzXkg==", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.3.0.tgz", + "integrity": "sha512-uF2XJs+7xSLsrmIvn37i/wnc91nw7XjOQB8ccyx5aEgdnohr7n+rEiZP23WkCYHjilR6+EboEnbq/ZQDz4LSbg==", "dev": true, "dependencies": { "ansi-colors": "4.1.1", @@ -8378,13 +8384,12 @@ "diff": "5.0.0", "escape-string-regexp": "4.0.0", "find-up": "5.0.0", - "glob": "7.2.0", + "glob": "8.1.0", "he": "1.2.0", "js-yaml": "4.1.0", "log-symbols": "4.1.0", "minimatch": "5.0.1", "ms": "2.1.3", - "nanoid": "3.3.3", "serialize-javascript": "6.0.0", "strip-json-comments": "3.1.1", "supports-color": "8.1.1", @@ -8399,10 +8404,6 @@ }, "engines": { "node": ">= 14.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mochajs" } }, "node_modules/mocha/node_modules/ansi-styles": { @@ -8459,37 +8460,24 @@ } }, "node_modules/mocha/node_modules/glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", + "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", "dev": true, "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "minimatch": "^5.0.1", + "once": "^1.3.0" }, "engines": { - "node": "*" + "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/mocha/node_modules/glob/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, "node_modules/mocha/node_modules/minimatch": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz", @@ -8634,18 +8622,6 @@ "integrity": "sha512-p/hj4zQ8d3pbbFLQuN1K9honUxiDDhueOWyFLw/XgBv+wZCE44bcLH4CIcsolOceJQduh4Jf7m/LfaTxyGmGtQ==", "dev": true }, - "node_modules/nanoid": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz", - "integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==", - "dev": true, - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", @@ -11822,9 +11798,9 @@ "dev": true }, "node_modules/ts-node": { - "version": "10.9.1", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", - "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", "dev": true, "dependencies": { "@cspotcode/source-map-support": "^0.8.0", @@ -12017,9 +11993,9 @@ } }, "node_modules/typescript": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", - "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", + "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", "dev": true, "bin": { "tsc": "bin/tsc", diff --git a/test/package.json b/test/package.json index 385f61cfc..45e0ffaba 100644 --- a/test/package.json +++ b/test/package.json @@ -4,8 +4,8 @@ "private": true, "type": "module", "devDependencies": { - "@types/mocha": "^10.0.2", - "@types/node": "^20.10.0", + "@types/mocha": "^10.0.6", + "@types/node": "^20.11.24", "@wdio/cli": "^8.18.2", "@wdio/local-runner": "^8.18.2", "@wdio/mocha-framework": "^8.18.2", @@ -15,23 +15,23 @@ "api-testing": "^1.6.0", "apollo-boost": "^0.4.9", "async-wait-until": "^2.0.12", - "axios": "^1.5.1", + "axios": "^1.6.7", "cross-fetch": "^4.0.0", - "dotenv-expand": "^10.0.0", + "dotenv-expand": "^11.0.6", "envsub": "^4.1.0", "eslint": "^8.57.0", "eslint-config-wikimedia": "0.26.0", "eslint-plugin-compat": "^4.2.0", "eslint-plugin-unicorn": "^51.0.1", "lodash": "^4.17.21", - "mocha": "^10.2.0", + "mocha": "^10.3.0", "npm-run-all": "^4.1.5", "prettier": "^3.2.5", "prettier-plugin-organize-imports": "^3.2.4", "stylelint-config-wikimedia": "0.16.1", - "ts-node": "^10.9.1", + "ts-node": "^10.9.2", "tslib": "^2.6.2", - "typescript": "~5.2.2", + "typescript": "^5.3.3", "wdio-mediawiki": "2.4.0", "wdio-wikibase": "^6.0.1", "yaml-eslint-parser": "^1.2.2", @@ -41,7 +41,7 @@ "ie 11" ], "engines": { - "node": ">=14.14" + "node": ">=16.14" }, "scripts": { "test": "NODE_NO_WARNINGS=1 npx --node-options='--require ts-node/register --loader=ts-node/esm' node cli.ts", diff --git a/test/setup/loadEnvFiles.ts b/test/setup/loadEnvFiles.ts index 61573ee1d..8bc28d618 100644 --- a/test/setup/loadEnvFiles.ts +++ b/test/setup/loadEnvFiles.ts @@ -19,7 +19,7 @@ function loadEnvFile( const envVars = { ...providedEnvvars, ...envVarsFromFile }; const { parsed: expandedEnvVars } = dotenvExpand.expand( { parsed: envVars, - ignoreProcessEnv: true + processEnv: {} } ); return expandedEnvVars;