From 541af6c3170f3565f07a77b38681b2a9ae640685 Mon Sep 17 00:00:00 2001 From: AlCalzone Date: Fri, 13 Sep 2024 20:12:38 +0200 Subject: [PATCH] fix: pin broken dependencies to older versions (#1110) --- CHANGELOG.md | 3 +++ templates/package.json.ts | 14 +++++++------- test/baselines/ReleaseScript_JS/package.json | 4 ++-- test/baselines/ReleaseScript_TS/package.json | 10 +++++----- test/baselines/TS_Prettier/package.json | 10 +++++----- .../package.json | 6 +++--- test/baselines/adapter_JS_React/package.json | 4 ++-- .../package.json | 10 +++++----- test/baselines/adapter_TS_React/package.json | 10 +++++----- test/baselines/contributors/package.json | 10 +++++----- test/baselines/git_SSH/package.json | 10 +++++----- test/baselines/keywords/package.json | 10 +++++----- test/baselines/minNodeVersion_18/package.json | 10 +++++----- test/baselines/minNodeVersion_20/package.json | 10 +++++----- 14 files changed, 62 insertions(+), 59 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c7959c20..28157f8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ ## __WORK IN PROGRESS__ (at the beginning of a new line) --> +## __WORK IN PROGRESS__ +* (AlCalzone) Pin several dependencies to older versions (#1110) + ## 2.6.3 (2024-04-08) * (AlCalzone) Pin `eslint` to version 8 (#1100) diff --git a/templates/package.json.ts b/templates/package.json.ts index bc45b976..7283e4ac 100644 --- a/templates/package.json.ts +++ b/templates/package.json.ts @@ -43,18 +43,18 @@ const templateFunction: TemplateFunction = async answers => { ...(isAdapter ? [ // support adapter testing by default "chai@4", // v5 is ESM and incompatible with chai-as-promised - "chai-as-promised", + "chai-as-promised@7", `mocha`, `sinon`, - "sinon-chai", + "sinon-chai@3", "proxyquire", ] : []), ...(isAdapter && useTypeChecking ? [ - "@types/chai", - "@types/chai-as-promised", + "@types/chai@4", + "@types/chai-as-promised@7", "@types/mocha", "@types/sinon", - "@types/sinon-chai", + "@types/sinon-chai@3", "@types/proxyquire", // Recommended tsconfig for the minimum supported Node.js version `@tsconfig/node${minNodeVersion}`, @@ -91,8 +91,8 @@ const templateFunction: TemplateFunction = async answers => { "eslint@8" ] : []), ...((useESLint && useTypeScript) ? [ - "@typescript-eslint/eslint-plugin", - "@typescript-eslint/parser", + "@typescript-eslint/eslint-plugin@7", + "@typescript-eslint/parser@7", ] : []), ...((useESLint && useReact) ? [ "eslint-plugin-react", diff --git a/test/baselines/ReleaseScript_JS/package.json b/test/baselines/ReleaseScript_JS/package.json index 06d71725..debd1fd7 100644 --- a/test/baselines/ReleaseScript_JS/package.json +++ b/test/baselines/ReleaseScript_JS/package.json @@ -31,13 +31,13 @@ "@alcalzone/release-script-plugin-manual-review": "^3.7.0", "@iobroker/adapter-dev": "^1.3.0", "@iobroker/testing": "^4.1.3", - "chai-as-promised": "^8.0.0", + "chai-as-promised": "^7.1.2", "chai": "^4.5.0", "eslint": "^8.57.0", "mocha": "^10.7.3", "proxyquire": "^2.1.3", "sinon": "^19.0.2", - "sinon-chai": "^4.0.0" + "sinon-chai": "^3.7.0" }, "main": "main.js", "files": [ diff --git a/test/baselines/ReleaseScript_TS/package.json b/test/baselines/ReleaseScript_TS/package.json index e708b997..57976b7e 100644 --- a/test/baselines/ReleaseScript_TS/package.json +++ b/test/baselines/ReleaseScript_TS/package.json @@ -32,23 +32,23 @@ "@iobroker/adapter-dev": "^1.3.0", "@iobroker/testing": "^4.1.3", "@tsconfig/node18": "^18.2.4", + "@types/chai-as-promised": "^7.1.8", "@types/chai": "^4.3.19", - "@types/chai-as-promised": "^8.0.0", "@types/mocha": "^10.0.8", "@types/node": "^18.19.50", "@types/proxyquire": "^1.3.31", "@types/sinon": "^17.0.3", "@types/sinon-chai": "^3.2.12", - "@typescript-eslint/eslint-plugin": "^8.5.0", - "@typescript-eslint/parser": "^8.5.0", - "chai-as-promised": "^8.0.0", + "@typescript-eslint/eslint-plugin": "^7.18.0", + "@typescript-eslint/parser": "^7.18.0", + "chai-as-promised": "^7.1.2", "chai": "^4.5.0", "eslint": "^8.57.0", "mocha": "^10.7.3", "proxyquire": "^2.1.3", "rimraf": "^6.0.1", "sinon": "^19.0.2", - "sinon-chai": "^4.0.0", + "sinon-chai": "^3.7.0", "source-map-support": "^0.5.21", "ts-node": "^10.9.2", "typescript": "~5.0.4" diff --git a/test/baselines/TS_Prettier/package.json b/test/baselines/TS_Prettier/package.json index fe0f0005..a5ff143b 100644 --- a/test/baselines/TS_Prettier/package.json +++ b/test/baselines/TS_Prettier/package.json @@ -28,16 +28,16 @@ "@iobroker/adapter-dev": "^1.3.0", "@iobroker/testing": "^4.1.3", "@tsconfig/node18": "^18.2.4", + "@types/chai-as-promised": "^7.1.8", "@types/chai": "^4.3.19", - "@types/chai-as-promised": "^8.0.0", "@types/mocha": "^10.0.8", "@types/node": "^18.19.50", "@types/proxyquire": "^1.3.31", "@types/sinon": "^17.0.3", "@types/sinon-chai": "^3.2.12", - "@typescript-eslint/eslint-plugin": "^8.5.0", - "@typescript-eslint/parser": "^8.5.0", - "chai-as-promised": "^8.0.0", + "@typescript-eslint/eslint-plugin": "^7.18.0", + "@typescript-eslint/parser": "^7.18.0", + "chai-as-promised": "^7.1.2", "chai": "^4.5.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.2.1", @@ -47,7 +47,7 @@ "proxyquire": "^2.1.3", "rimraf": "^6.0.1", "sinon": "^19.0.2", - "sinon-chai": "^4.0.0", + "sinon-chai": "^3.7.0", "source-map-support": "^0.5.21", "ts-node": "^10.9.2", "typescript": "~5.0.4" diff --git a/test/baselines/adapter_JS_JsonUI_ESLint_TypeChecking_Spaces_SingleQuotes_Apache-2.0/package.json b/test/baselines/adapter_JS_JsonUI_ESLint_TypeChecking_Spaces_SingleQuotes_Apache-2.0/package.json index 1ec9f584..1600ae27 100644 --- a/test/baselines/adapter_JS_JsonUI_ESLint_TypeChecking_Spaces_SingleQuotes_Apache-2.0/package.json +++ b/test/baselines/adapter_JS_JsonUI_ESLint_TypeChecking_Spaces_SingleQuotes_Apache-2.0/package.json @@ -28,20 +28,20 @@ "@iobroker/adapter-dev": "^1.3.0", "@iobroker/testing": "^4.1.3", "@tsconfig/node18": "^18.2.4", + "@types/chai-as-promised": "^7.1.8", "@types/chai": "^4.3.19", - "@types/chai-as-promised": "^8.0.0", "@types/mocha": "^10.0.8", "@types/node": "^18.19.50", "@types/proxyquire": "^1.3.31", "@types/sinon": "^17.0.3", "@types/sinon-chai": "^3.2.12", - "chai-as-promised": "^8.0.0", + "chai-as-promised": "^7.1.2", "chai": "^4.5.0", "eslint": "^8.57.0", "mocha": "^10.7.3", "proxyquire": "^2.1.3", "sinon": "^19.0.2", - "sinon-chai": "^4.0.0", + "sinon-chai": "^3.7.0", "typescript": "~5.0.4" }, "main": "main.js", diff --git a/test/baselines/adapter_JS_React/package.json b/test/baselines/adapter_JS_React/package.json index 38ae534d..123f28fb 100644 --- a/test/baselines/adapter_JS_React/package.json +++ b/test/baselines/adapter_JS_React/package.json @@ -29,7 +29,7 @@ "@iobroker/adapter-react": "2.0.22", "@iobroker/testing": "^4.1.3", "@material-ui/core": "^4.12.4", - "chai-as-promised": "^8.0.0", + "chai-as-promised": "^7.1.2", "chai": "^4.5.0", "eslint-plugin-react": "^7.36.1", "eslint": "^8.57.0", @@ -38,7 +38,7 @@ "react-dom": "^17.0.2", "react": "^17.0.2", "sinon": "^19.0.2", - "sinon-chai": "^4.0.0" + "sinon-chai": "^3.7.0" }, "main": "main.js", "files": [ diff --git a/test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/package.json b/test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/package.json index a8987173..cd8f6506 100644 --- a/test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/package.json +++ b/test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/package.json @@ -28,23 +28,23 @@ "@iobroker/adapter-dev": "^1.3.0", "@iobroker/testing": "^4.1.3", "@tsconfig/node18": "^18.2.4", + "@types/chai-as-promised": "^7.1.8", "@types/chai": "^4.3.19", - "@types/chai-as-promised": "^8.0.0", "@types/mocha": "^10.0.8", "@types/node": "^18.19.50", "@types/proxyquire": "^1.3.31", "@types/sinon": "^17.0.3", "@types/sinon-chai": "^3.2.12", - "@typescript-eslint/eslint-plugin": "^8.5.0", - "@typescript-eslint/parser": "^8.5.0", - "chai-as-promised": "^8.0.0", + "@typescript-eslint/eslint-plugin": "^7.18.0", + "@typescript-eslint/parser": "^7.18.0", + "chai-as-promised": "^7.1.2", "chai": "^4.5.0", "eslint": "^8.57.0", "mocha": "^10.7.3", "proxyquire": "^2.1.3", "rimraf": "^6.0.1", "sinon": "^19.0.2", - "sinon-chai": "^4.0.0", + "sinon-chai": "^3.7.0", "source-map-support": "^0.5.21", "ts-node": "^10.9.2", "typescript": "~5.0.4" diff --git a/test/baselines/adapter_TS_React/package.json b/test/baselines/adapter_TS_React/package.json index fe39a9d3..9a88b48e 100644 --- a/test/baselines/adapter_TS_React/package.json +++ b/test/baselines/adapter_TS_React/package.json @@ -30,8 +30,8 @@ "@iobroker/testing": "^4.1.3", "@material-ui/core": "^4.12.4", "@tsconfig/node18": "^18.2.4", + "@types/chai-as-promised": "^7.1.8", "@types/chai": "^4.3.19", - "@types/chai-as-promised": "^8.0.0", "@types/mocha": "^10.0.8", "@types/node": "^18.19.50", "@types/proxyquire": "^1.3.31", @@ -39,9 +39,9 @@ "@types/react": "^17.0.80", "@types/sinon": "^17.0.3", "@types/sinon-chai": "^3.2.12", - "@typescript-eslint/eslint-plugin": "^8.5.0", - "@typescript-eslint/parser": "^8.5.0", - "chai-as-promised": "^8.0.0", + "@typescript-eslint/eslint-plugin": "^7.18.0", + "@typescript-eslint/parser": "^7.18.0", + "chai-as-promised": "^7.1.2", "chai": "^4.5.0", "eslint-plugin-react": "^7.36.1", "eslint": "^8.57.0", @@ -51,7 +51,7 @@ "react": "^17.0.2", "rimraf": "^6.0.1", "sinon": "^19.0.2", - "sinon-chai": "^4.0.0", + "sinon-chai": "^3.7.0", "source-map-support": "^0.5.21", "ts-node": "^10.9.2", "typescript": "~5.0.4" diff --git a/test/baselines/contributors/package.json b/test/baselines/contributors/package.json index c8f79ca2..e7c4e607 100644 --- a/test/baselines/contributors/package.json +++ b/test/baselines/contributors/package.json @@ -36,23 +36,23 @@ "@iobroker/adapter-dev": "^1.3.0", "@iobroker/testing": "^4.1.3", "@tsconfig/node18": "^18.2.4", + "@types/chai-as-promised": "^7.1.8", "@types/chai": "^4.3.19", - "@types/chai-as-promised": "^8.0.0", "@types/mocha": "^10.0.8", "@types/node": "^18.19.50", "@types/proxyquire": "^1.3.31", "@types/sinon": "^17.0.3", "@types/sinon-chai": "^3.2.12", - "@typescript-eslint/eslint-plugin": "^8.5.0", - "@typescript-eslint/parser": "^8.5.0", - "chai-as-promised": "^8.0.0", + "@typescript-eslint/eslint-plugin": "^7.18.0", + "@typescript-eslint/parser": "^7.18.0", + "chai-as-promised": "^7.1.2", "chai": "^4.5.0", "eslint": "^8.57.0", "mocha": "^10.7.3", "proxyquire": "^2.1.3", "rimraf": "^6.0.1", "sinon": "^19.0.2", - "sinon-chai": "^4.0.0", + "sinon-chai": "^3.7.0", "source-map-support": "^0.5.21", "ts-node": "^10.9.2", "typescript": "~5.0.4" diff --git a/test/baselines/git_SSH/package.json b/test/baselines/git_SSH/package.json index 173a1d53..6449a626 100644 --- a/test/baselines/git_SSH/package.json +++ b/test/baselines/git_SSH/package.json @@ -28,23 +28,23 @@ "@iobroker/adapter-dev": "^1.3.0", "@iobroker/testing": "^4.1.3", "@tsconfig/node18": "^18.2.4", + "@types/chai-as-promised": "^7.1.8", "@types/chai": "^4.3.19", - "@types/chai-as-promised": "^8.0.0", "@types/mocha": "^10.0.8", "@types/node": "^18.19.50", "@types/proxyquire": "^1.3.31", "@types/sinon": "^17.0.3", "@types/sinon-chai": "^3.2.12", - "@typescript-eslint/eslint-plugin": "^8.5.0", - "@typescript-eslint/parser": "^8.5.0", - "chai-as-promised": "^8.0.0", + "@typescript-eslint/eslint-plugin": "^7.18.0", + "@typescript-eslint/parser": "^7.18.0", + "chai-as-promised": "^7.1.2", "chai": "^4.5.0", "eslint": "^8.57.0", "mocha": "^10.7.3", "proxyquire": "^2.1.3", "rimraf": "^6.0.1", "sinon": "^19.0.2", - "sinon-chai": "^4.0.0", + "sinon-chai": "^3.7.0", "source-map-support": "^0.5.21", "ts-node": "^10.9.2", "typescript": "~5.0.4" diff --git a/test/baselines/keywords/package.json b/test/baselines/keywords/package.json index d76dd951..1835acb8 100644 --- a/test/baselines/keywords/package.json +++ b/test/baselines/keywords/package.json @@ -29,23 +29,23 @@ "@iobroker/adapter-dev": "^1.3.0", "@iobroker/testing": "^4.1.3", "@tsconfig/node18": "^18.2.4", + "@types/chai-as-promised": "^7.1.8", "@types/chai": "^4.3.19", - "@types/chai-as-promised": "^8.0.0", "@types/mocha": "^10.0.8", "@types/node": "^18.19.50", "@types/proxyquire": "^1.3.31", "@types/sinon": "^17.0.3", "@types/sinon-chai": "^3.2.12", - "@typescript-eslint/eslint-plugin": "^8.5.0", - "@typescript-eslint/parser": "^8.5.0", - "chai-as-promised": "^8.0.0", + "@typescript-eslint/eslint-plugin": "^7.18.0", + "@typescript-eslint/parser": "^7.18.0", + "chai-as-promised": "^7.1.2", "chai": "^4.5.0", "eslint": "^8.57.0", "mocha": "^10.7.3", "proxyquire": "^2.1.3", "rimraf": "^6.0.1", "sinon": "^19.0.2", - "sinon-chai": "^4.0.0", + "sinon-chai": "^3.7.0", "source-map-support": "^0.5.21", "ts-node": "^10.9.2", "typescript": "~5.0.4" diff --git a/test/baselines/minNodeVersion_18/package.json b/test/baselines/minNodeVersion_18/package.json index a8987173..cd8f6506 100644 --- a/test/baselines/minNodeVersion_18/package.json +++ b/test/baselines/minNodeVersion_18/package.json @@ -28,23 +28,23 @@ "@iobroker/adapter-dev": "^1.3.0", "@iobroker/testing": "^4.1.3", "@tsconfig/node18": "^18.2.4", + "@types/chai-as-promised": "^7.1.8", "@types/chai": "^4.3.19", - "@types/chai-as-promised": "^8.0.0", "@types/mocha": "^10.0.8", "@types/node": "^18.19.50", "@types/proxyquire": "^1.3.31", "@types/sinon": "^17.0.3", "@types/sinon-chai": "^3.2.12", - "@typescript-eslint/eslint-plugin": "^8.5.0", - "@typescript-eslint/parser": "^8.5.0", - "chai-as-promised": "^8.0.0", + "@typescript-eslint/eslint-plugin": "^7.18.0", + "@typescript-eslint/parser": "^7.18.0", + "chai-as-promised": "^7.1.2", "chai": "^4.5.0", "eslint": "^8.57.0", "mocha": "^10.7.3", "proxyquire": "^2.1.3", "rimraf": "^6.0.1", "sinon": "^19.0.2", - "sinon-chai": "^4.0.0", + "sinon-chai": "^3.7.0", "source-map-support": "^0.5.21", "ts-node": "^10.9.2", "typescript": "~5.0.4" diff --git a/test/baselines/minNodeVersion_20/package.json b/test/baselines/minNodeVersion_20/package.json index c83a9fa3..af3f8c41 100644 --- a/test/baselines/minNodeVersion_20/package.json +++ b/test/baselines/minNodeVersion_20/package.json @@ -28,23 +28,23 @@ "@iobroker/adapter-dev": "^1.3.0", "@iobroker/testing": "^4.1.3", "@tsconfig/node20": "^20.1.4", + "@types/chai-as-promised": "^7.1.8", "@types/chai": "^4.3.19", - "@types/chai-as-promised": "^8.0.0", "@types/mocha": "^10.0.8", "@types/node": "^20.16.5", "@types/proxyquire": "^1.3.31", "@types/sinon": "^17.0.3", "@types/sinon-chai": "^3.2.12", - "@typescript-eslint/eslint-plugin": "^8.5.0", - "@typescript-eslint/parser": "^8.5.0", - "chai-as-promised": "^8.0.0", + "@typescript-eslint/eslint-plugin": "^7.18.0", + "@typescript-eslint/parser": "^7.18.0", + "chai-as-promised": "^7.1.2", "chai": "^4.5.0", "eslint": "^8.57.0", "mocha": "^10.7.3", "proxyquire": "^2.1.3", "rimraf": "^6.0.1", "sinon": "^19.0.2", - "sinon-chai": "^4.0.0", + "sinon-chai": "^3.7.0", "source-map-support": "^0.5.21", "ts-node": "^10.9.2", "typescript": "~5.0.4"