Skip to content

Commit

Permalink
fix: pin broken dependencies to older versions (#1110)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone authored Sep 13, 2024
1 parent b4c655e commit 541af6c
Show file tree
Hide file tree
Showing 14 changed files with 62 additions and 59 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
14 changes: 7 additions & 7 deletions templates/package.json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions test/baselines/ReleaseScript_JS/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
10 changes: 5 additions & 5 deletions test/baselines/ReleaseScript_TS/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions test/baselines/TS_Prettier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions test/baselines/adapter_JS_React/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions test/baselines/adapter_TS_React/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@
"@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",
"@types/react-dom": "^17.0.25",
"@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",
Expand All @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions test/baselines/contributors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions test/baselines/git_SSH/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions test/baselines/keywords/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions test/baselines/minNodeVersion_18/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions test/baselines/minNodeVersion_20/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 541af6c

Please sign in to comment.