Skip to content

Commit 541af6c

Browse files
authored
fix: pin broken dependencies to older versions (#1110)
1 parent b4c655e commit 541af6c

File tree

14 files changed

+62
-59
lines changed

14 files changed

+62
-59
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
## __WORK IN PROGRESS__
66
(at the beginning of a new line)
77
-->
8+
## __WORK IN PROGRESS__
9+
* (AlCalzone) Pin several dependencies to older versions (#1110)
10+
811
## 2.6.3 (2024-04-08)
912
* (AlCalzone) Pin `eslint` to version 8 (#1100)
1013

templates/package.json.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ const templateFunction: TemplateFunction = async answers => {
4343
...(isAdapter ? [
4444
// support adapter testing by default
4545
"chai@4", // v5 is ESM and incompatible with chai-as-promised
46-
"chai-as-promised",
46+
"chai-as-promised@7",
4747
`mocha`,
4848
`sinon`,
49-
"sinon-chai",
49+
"sinon-chai@3",
5050
"proxyquire",
5151
] : []),
5252
...(isAdapter && useTypeChecking ? [
53-
"@types/chai",
54-
"@types/chai-as-promised",
53+
"@types/chai@4",
54+
"@types/chai-as-promised@7",
5555
"@types/mocha",
5656
"@types/sinon",
57-
"@types/sinon-chai",
57+
"@types/sinon-chai@3",
5858
"@types/proxyquire",
5959
// Recommended tsconfig for the minimum supported Node.js version
6060
`@tsconfig/node${minNodeVersion}`,
@@ -91,8 +91,8 @@ const templateFunction: TemplateFunction = async answers => {
9191
"eslint@8"
9292
] : []),
9393
...((useESLint && useTypeScript) ? [
94-
"@typescript-eslint/eslint-plugin",
95-
"@typescript-eslint/parser",
94+
"@typescript-eslint/eslint-plugin@7",
95+
"@typescript-eslint/parser@7",
9696
] : []),
9797
...((useESLint && useReact) ? [
9898
"eslint-plugin-react",

test/baselines/ReleaseScript_JS/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
"@alcalzone/release-script-plugin-manual-review": "^3.7.0",
3232
"@iobroker/adapter-dev": "^1.3.0",
3333
"@iobroker/testing": "^4.1.3",
34-
"chai-as-promised": "^8.0.0",
34+
"chai-as-promised": "^7.1.2",
3535
"chai": "^4.5.0",
3636
"eslint": "^8.57.0",
3737
"mocha": "^10.7.3",
3838
"proxyquire": "^2.1.3",
3939
"sinon": "^19.0.2",
40-
"sinon-chai": "^4.0.0"
40+
"sinon-chai": "^3.7.0"
4141
},
4242
"main": "main.js",
4343
"files": [

test/baselines/ReleaseScript_TS/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,23 @@
3232
"@iobroker/adapter-dev": "^1.3.0",
3333
"@iobroker/testing": "^4.1.3",
3434
"@tsconfig/node18": "^18.2.4",
35+
"@types/chai-as-promised": "^7.1.8",
3536
"@types/chai": "^4.3.19",
36-
"@types/chai-as-promised": "^8.0.0",
3737
"@types/mocha": "^10.0.8",
3838
"@types/node": "^18.19.50",
3939
"@types/proxyquire": "^1.3.31",
4040
"@types/sinon": "^17.0.3",
4141
"@types/sinon-chai": "^3.2.12",
42-
"@typescript-eslint/eslint-plugin": "^8.5.0",
43-
"@typescript-eslint/parser": "^8.5.0",
44-
"chai-as-promised": "^8.0.0",
42+
"@typescript-eslint/eslint-plugin": "^7.18.0",
43+
"@typescript-eslint/parser": "^7.18.0",
44+
"chai-as-promised": "^7.1.2",
4545
"chai": "^4.5.0",
4646
"eslint": "^8.57.0",
4747
"mocha": "^10.7.3",
4848
"proxyquire": "^2.1.3",
4949
"rimraf": "^6.0.1",
5050
"sinon": "^19.0.2",
51-
"sinon-chai": "^4.0.0",
51+
"sinon-chai": "^3.7.0",
5252
"source-map-support": "^0.5.21",
5353
"ts-node": "^10.9.2",
5454
"typescript": "~5.0.4"

test/baselines/TS_Prettier/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@
2828
"@iobroker/adapter-dev": "^1.3.0",
2929
"@iobroker/testing": "^4.1.3",
3030
"@tsconfig/node18": "^18.2.4",
31+
"@types/chai-as-promised": "^7.1.8",
3132
"@types/chai": "^4.3.19",
32-
"@types/chai-as-promised": "^8.0.0",
3333
"@types/mocha": "^10.0.8",
3434
"@types/node": "^18.19.50",
3535
"@types/proxyquire": "^1.3.31",
3636
"@types/sinon": "^17.0.3",
3737
"@types/sinon-chai": "^3.2.12",
38-
"@typescript-eslint/eslint-plugin": "^8.5.0",
39-
"@typescript-eslint/parser": "^8.5.0",
40-
"chai-as-promised": "^8.0.0",
38+
"@typescript-eslint/eslint-plugin": "^7.18.0",
39+
"@typescript-eslint/parser": "^7.18.0",
40+
"chai-as-promised": "^7.1.2",
4141
"chai": "^4.5.0",
4242
"eslint-config-prettier": "^9.1.0",
4343
"eslint-plugin-prettier": "^5.2.1",
@@ -47,7 +47,7 @@
4747
"proxyquire": "^2.1.3",
4848
"rimraf": "^6.0.1",
4949
"sinon": "^19.0.2",
50-
"sinon-chai": "^4.0.0",
50+
"sinon-chai": "^3.7.0",
5151
"source-map-support": "^0.5.21",
5252
"ts-node": "^10.9.2",
5353
"typescript": "~5.0.4"

test/baselines/adapter_JS_JsonUI_ESLint_TypeChecking_Spaces_SingleQuotes_Apache-2.0/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@
2828
"@iobroker/adapter-dev": "^1.3.0",
2929
"@iobroker/testing": "^4.1.3",
3030
"@tsconfig/node18": "^18.2.4",
31+
"@types/chai-as-promised": "^7.1.8",
3132
"@types/chai": "^4.3.19",
32-
"@types/chai-as-promised": "^8.0.0",
3333
"@types/mocha": "^10.0.8",
3434
"@types/node": "^18.19.50",
3535
"@types/proxyquire": "^1.3.31",
3636
"@types/sinon": "^17.0.3",
3737
"@types/sinon-chai": "^3.2.12",
38-
"chai-as-promised": "^8.0.0",
38+
"chai-as-promised": "^7.1.2",
3939
"chai": "^4.5.0",
4040
"eslint": "^8.57.0",
4141
"mocha": "^10.7.3",
4242
"proxyquire": "^2.1.3",
4343
"sinon": "^19.0.2",
44-
"sinon-chai": "^4.0.0",
44+
"sinon-chai": "^3.7.0",
4545
"typescript": "~5.0.4"
4646
},
4747
"main": "main.js",

test/baselines/adapter_JS_React/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@iobroker/adapter-react": "2.0.22",
3030
"@iobroker/testing": "^4.1.3",
3131
"@material-ui/core": "^4.12.4",
32-
"chai-as-promised": "^8.0.0",
32+
"chai-as-promised": "^7.1.2",
3333
"chai": "^4.5.0",
3434
"eslint-plugin-react": "^7.36.1",
3535
"eslint": "^8.57.0",
@@ -38,7 +38,7 @@
3838
"react-dom": "^17.0.2",
3939
"react": "^17.0.2",
4040
"sinon": "^19.0.2",
41-
"sinon-chai": "^4.0.0"
41+
"sinon-chai": "^3.7.0"
4242
},
4343
"main": "main.js",
4444
"files": [

test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,23 @@
2828
"@iobroker/adapter-dev": "^1.3.0",
2929
"@iobroker/testing": "^4.1.3",
3030
"@tsconfig/node18": "^18.2.4",
31+
"@types/chai-as-promised": "^7.1.8",
3132
"@types/chai": "^4.3.19",
32-
"@types/chai-as-promised": "^8.0.0",
3333
"@types/mocha": "^10.0.8",
3434
"@types/node": "^18.19.50",
3535
"@types/proxyquire": "^1.3.31",
3636
"@types/sinon": "^17.0.3",
3737
"@types/sinon-chai": "^3.2.12",
38-
"@typescript-eslint/eslint-plugin": "^8.5.0",
39-
"@typescript-eslint/parser": "^8.5.0",
40-
"chai-as-promised": "^8.0.0",
38+
"@typescript-eslint/eslint-plugin": "^7.18.0",
39+
"@typescript-eslint/parser": "^7.18.0",
40+
"chai-as-promised": "^7.1.2",
4141
"chai": "^4.5.0",
4242
"eslint": "^8.57.0",
4343
"mocha": "^10.7.3",
4444
"proxyquire": "^2.1.3",
4545
"rimraf": "^6.0.1",
4646
"sinon": "^19.0.2",
47-
"sinon-chai": "^4.0.0",
47+
"sinon-chai": "^3.7.0",
4848
"source-map-support": "^0.5.21",
4949
"ts-node": "^10.9.2",
5050
"typescript": "~5.0.4"

test/baselines/adapter_TS_React/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@
3030
"@iobroker/testing": "^4.1.3",
3131
"@material-ui/core": "^4.12.4",
3232
"@tsconfig/node18": "^18.2.4",
33+
"@types/chai-as-promised": "^7.1.8",
3334
"@types/chai": "^4.3.19",
34-
"@types/chai-as-promised": "^8.0.0",
3535
"@types/mocha": "^10.0.8",
3636
"@types/node": "^18.19.50",
3737
"@types/proxyquire": "^1.3.31",
3838
"@types/react-dom": "^17.0.25",
3939
"@types/react": "^17.0.80",
4040
"@types/sinon": "^17.0.3",
4141
"@types/sinon-chai": "^3.2.12",
42-
"@typescript-eslint/eslint-plugin": "^8.5.0",
43-
"@typescript-eslint/parser": "^8.5.0",
44-
"chai-as-promised": "^8.0.0",
42+
"@typescript-eslint/eslint-plugin": "^7.18.0",
43+
"@typescript-eslint/parser": "^7.18.0",
44+
"chai-as-promised": "^7.1.2",
4545
"chai": "^4.5.0",
4646
"eslint-plugin-react": "^7.36.1",
4747
"eslint": "^8.57.0",
@@ -51,7 +51,7 @@
5151
"react": "^17.0.2",
5252
"rimraf": "^6.0.1",
5353
"sinon": "^19.0.2",
54-
"sinon-chai": "^4.0.0",
54+
"sinon-chai": "^3.7.0",
5555
"source-map-support": "^0.5.21",
5656
"ts-node": "^10.9.2",
5757
"typescript": "~5.0.4"

test/baselines/contributors/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,23 @@
3636
"@iobroker/adapter-dev": "^1.3.0",
3737
"@iobroker/testing": "^4.1.3",
3838
"@tsconfig/node18": "^18.2.4",
39+
"@types/chai-as-promised": "^7.1.8",
3940
"@types/chai": "^4.3.19",
40-
"@types/chai-as-promised": "^8.0.0",
4141
"@types/mocha": "^10.0.8",
4242
"@types/node": "^18.19.50",
4343
"@types/proxyquire": "^1.3.31",
4444
"@types/sinon": "^17.0.3",
4545
"@types/sinon-chai": "^3.2.12",
46-
"@typescript-eslint/eslint-plugin": "^8.5.0",
47-
"@typescript-eslint/parser": "^8.5.0",
48-
"chai-as-promised": "^8.0.0",
46+
"@typescript-eslint/eslint-plugin": "^7.18.0",
47+
"@typescript-eslint/parser": "^7.18.0",
48+
"chai-as-promised": "^7.1.2",
4949
"chai": "^4.5.0",
5050
"eslint": "^8.57.0",
5151
"mocha": "^10.7.3",
5252
"proxyquire": "^2.1.3",
5353
"rimraf": "^6.0.1",
5454
"sinon": "^19.0.2",
55-
"sinon-chai": "^4.0.0",
55+
"sinon-chai": "^3.7.0",
5656
"source-map-support": "^0.5.21",
5757
"ts-node": "^10.9.2",
5858
"typescript": "~5.0.4"

0 commit comments

Comments
 (0)