From d410ce3b87f172d1c45437ad6ed7de8936242c4c Mon Sep 17 00:00:00 2001 From: Dominic Griesel Date: Fri, 13 Sep 2024 20:56:02 +0200 Subject: [PATCH] accept baselines --- test/baselines/ReleaseScript_JS/package.json | 2 +- test/baselines/ReleaseScript_TS/package.json | 6 +- test/baselines/TS_Prettier/package.json | 6 +- test/baselines/TS_SingleQuotes/src/main.ts | 2 +- .../.create-adapter.json | 2 +- .../.github/workflows/test-and-release.yml | 6 +- .../main.js | 2 +- .../package.json | 6 +- .../tsconfig.json | 4 +- .../adapter_JS_React/.create-adapter.json | 2 +- .../.github/workflows/test-and-release.yml | 6 +- test/baselines/adapter_JS_React/main.js | 2 +- test/baselines/adapter_JS_React/package.json | 2 +- .../.create-adapter.json | 2 +- .../.github/workflows/test-and-release.yml | 6 +- .../package.json | 6 +- .../src/main.ts | 2 +- .../tsconfig.json | 4 +- .../adapter_TS_React/.create-adapter.json | 2 +- .../.github/workflows/test-and-release.yml | 6 +- test/baselines/adapter_TS_React/package.json | 6 +- test/baselines/adapter_TS_React/src/main.ts | 2 +- test/baselines/adapter_TS_React/tsconfig.json | 4 +- .../connectionIndicator_yes/src/main.ts | 2 +- test/baselines/contributors/package.json | 6 +- .../customAdapterSettings/src/main.ts | 2 +- test/baselines/git_SSH/package.json | 6 +- test/baselines/keywords/package.json | 6 +- test/baselines/minNodeVersion_22/package.json | 80 +++++++++++++++++++ .../baselines/minNodeVersion_22/tsconfig.json | 46 +++++++++++ .../.github/workflows/test-and-release.yml | 6 +- .../baselines/vis_Widget/.create-adapter.json | 2 +- .../.github/workflows/test-and-release.yml | 4 +- test/baselines/vis_Widget/package.json | 2 +- 34 files changed, 188 insertions(+), 62 deletions(-) create mode 100644 test/baselines/minNodeVersion_22/package.json create mode 100644 test/baselines/minNodeVersion_22/tsconfig.json diff --git a/test/baselines/ReleaseScript_JS/package.json b/test/baselines/ReleaseScript_JS/package.json index debd1fd7..bdb0255c 100644 --- a/test/baselines/ReleaseScript_JS/package.json +++ b/test/baselines/ReleaseScript_JS/package.json @@ -19,7 +19,7 @@ "url": "https://github.com/AlCalzone/ioBroker.test-adapter.git" }, "engines": { - "node": ">= 18" + "node": ">= 20" }, "dependencies": { "@iobroker/adapter-core": "^3.1.6" diff --git a/test/baselines/ReleaseScript_TS/package.json b/test/baselines/ReleaseScript_TS/package.json index 57976b7e..ed64209f 100644 --- a/test/baselines/ReleaseScript_TS/package.json +++ b/test/baselines/ReleaseScript_TS/package.json @@ -19,7 +19,7 @@ "url": "https://github.com/AlCalzone/ioBroker.test-adapter.git" }, "engines": { - "node": ">= 18" + "node": ">= 20" }, "dependencies": { "@iobroker/adapter-core": "^3.1.6" @@ -31,11 +31,11 @@ "@alcalzone/release-script-plugin-manual-review": "^3.7.0", "@iobroker/adapter-dev": "^1.3.0", "@iobroker/testing": "^4.1.3", - "@tsconfig/node18": "^18.2.4", + "@tsconfig/node20": "^20.1.4", "@types/chai-as-promised": "^7.1.8", "@types/chai": "^4.3.19", "@types/mocha": "^10.0.8", - "@types/node": "^18.19.50", + "@types/node": "^20.16.5", "@types/proxyquire": "^1.3.31", "@types/sinon": "^17.0.3", "@types/sinon-chai": "^3.2.12", diff --git a/test/baselines/TS_Prettier/package.json b/test/baselines/TS_Prettier/package.json index a5ff143b..86a762f8 100644 --- a/test/baselines/TS_Prettier/package.json +++ b/test/baselines/TS_Prettier/package.json @@ -19,7 +19,7 @@ "url": "https://github.com/AlCalzone/ioBroker.test-adapter.git" }, "engines": { - "node": ">= 18" + "node": ">= 20" }, "dependencies": { "@iobroker/adapter-core": "^3.1.6" @@ -27,11 +27,11 @@ "devDependencies": { "@iobroker/adapter-dev": "^1.3.0", "@iobroker/testing": "^4.1.3", - "@tsconfig/node18": "^18.2.4", + "@tsconfig/node20": "^20.1.4", "@types/chai-as-promised": "^7.1.8", "@types/chai": "^4.3.19", "@types/mocha": "^10.0.8", - "@types/node": "^18.19.50", + "@types/node": "^20.16.5", "@types/proxyquire": "^1.3.31", "@types/sinon": "^17.0.3", "@types/sinon-chai": "^3.2.12", diff --git a/test/baselines/TS_SingleQuotes/src/main.ts b/test/baselines/TS_SingleQuotes/src/main.ts index 657a338b..3a0bbddb 100644 --- a/test/baselines/TS_SingleQuotes/src/main.ts +++ b/test/baselines/TS_SingleQuotes/src/main.ts @@ -1,5 +1,5 @@ /* - * Created with @iobroker/create-adapter v2.6.3 + * Created with @iobroker/create-adapter v2.6.4 */ // The adapter-core module gives you access to the core ioBroker functions diff --git a/test/baselines/adapter_JS_JsonUI_ESLint_TypeChecking_Spaces_SingleQuotes_Apache-2.0/.create-adapter.json b/test/baselines/adapter_JS_JsonUI_ESLint_TypeChecking_Spaces_SingleQuotes_Apache-2.0/.create-adapter.json index 9688ef3e..66e3c5c6 100644 --- a/test/baselines/adapter_JS_JsonUI_ESLint_TypeChecking_Spaces_SingleQuotes_Apache-2.0/.create-adapter.json +++ b/test/baselines/adapter_JS_JsonUI_ESLint_TypeChecking_Spaces_SingleQuotes_Apache-2.0/.create-adapter.json @@ -34,5 +34,5 @@ "type": "free", "license": "MIT" }, - "creatorVersion": "2.6.3" + "creatorVersion": "2.6.4" } \ No newline at end of file diff --git a/test/baselines/adapter_JS_JsonUI_ESLint_TypeChecking_Spaces_SingleQuotes_Apache-2.0/.github/workflows/test-and-release.yml b/test/baselines/adapter_JS_JsonUI_ESLint_TypeChecking_Spaces_SingleQuotes_Apache-2.0/.github/workflows/test-and-release.yml index febfb1ed..37bd9b1f 100644 --- a/test/baselines/adapter_JS_JsonUI_ESLint_TypeChecking_Spaces_SingleQuotes_Apache-2.0/.github/workflows/test-and-release.yml +++ b/test/baselines/adapter_JS_JsonUI_ESLint_TypeChecking_Spaces_SingleQuotes_Apache-2.0/.github/workflows/test-and-release.yml @@ -28,7 +28,7 @@ jobs: steps: - uses: ioBroker/testing-action-check@v1 with: - node-version: '18.x' + node-version: '20.x' # Uncomment the following line if your adapter cannot be installed using 'npm ci' # install-command: 'npm install' lint: true @@ -40,7 +40,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - node-version: [18.x, 20.x] + node-version: [18.x, 20.x, 22.x] os: [ubuntu-latest, windows-latest, macos-latest] steps: @@ -74,7 +74,7 @@ jobs: # steps: # - uses: ioBroker/testing-action-deploy@v1 # with: -# node-version: '18.x' +# node-version: '20.x' # # Uncomment the following line if your adapter cannot be installed using 'npm ci' # # install-command: 'npm install' # npm-token: ${{ secrets.NPM_TOKEN }} diff --git a/test/baselines/adapter_JS_JsonUI_ESLint_TypeChecking_Spaces_SingleQuotes_Apache-2.0/main.js b/test/baselines/adapter_JS_JsonUI_ESLint_TypeChecking_Spaces_SingleQuotes_Apache-2.0/main.js index c0a5c09e..5e7fa4f1 100644 --- a/test/baselines/adapter_JS_JsonUI_ESLint_TypeChecking_Spaces_SingleQuotes_Apache-2.0/main.js +++ b/test/baselines/adapter_JS_JsonUI_ESLint_TypeChecking_Spaces_SingleQuotes_Apache-2.0/main.js @@ -1,7 +1,7 @@ 'use strict'; /* - * Created with @iobroker/create-adapter v2.6.3 + * Created with @iobroker/create-adapter v2.6.4 */ // The adapter-core module gives you access to the core ioBroker functions 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 1600ae27..f73e7567 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 @@ -19,7 +19,7 @@ "url": "https://github.com/AlCalzone/ioBroker.test-adapter.git" }, "engines": { - "node": ">= 18" + "node": ">= 20" }, "dependencies": { "@iobroker/adapter-core": "^3.1.6" @@ -27,11 +27,11 @@ "devDependencies": { "@iobroker/adapter-dev": "^1.3.0", "@iobroker/testing": "^4.1.3", - "@tsconfig/node18": "^18.2.4", + "@tsconfig/node20": "^20.1.4", "@types/chai-as-promised": "^7.1.8", "@types/chai": "^4.3.19", "@types/mocha": "^10.0.8", - "@types/node": "^18.19.50", + "@types/node": "^20.16.5", "@types/proxyquire": "^1.3.31", "@types/sinon": "^17.0.3", "@types/sinon-chai": "^3.2.12", diff --git a/test/baselines/adapter_JS_JsonUI_ESLint_TypeChecking_Spaces_SingleQuotes_Apache-2.0/tsconfig.json b/test/baselines/adapter_JS_JsonUI_ESLint_TypeChecking_Spaces_SingleQuotes_Apache-2.0/tsconfig.json index 2595af45..28604428 100644 --- a/test/baselines/adapter_JS_JsonUI_ESLint_TypeChecking_Spaces_SingleQuotes_Apache-2.0/tsconfig.json +++ b/test/baselines/adapter_JS_JsonUI_ESLint_TypeChecking_Spaces_SingleQuotes_Apache-2.0/tsconfig.json @@ -1,8 +1,8 @@ // Root tsconfig to set the settings and power editor support for all TS files { // To update the compilation target, install a different version of @tsconfig/node... and reference it here - // https://github.com/tsconfig/bases#node-18-tsconfigjson - "extends": "@tsconfig/node18/tsconfig.json", + // https://github.com/tsconfig/bases#node-20-tsconfigjson + "extends": "@tsconfig/node20/tsconfig.json", "compilerOptions": { // do not compile anything, this file is just to configure type checking "noEmit": true, diff --git a/test/baselines/adapter_JS_React/.create-adapter.json b/test/baselines/adapter_JS_React/.create-adapter.json index 6336e1e3..63c36fc0 100644 --- a/test/baselines/adapter_JS_React/.create-adapter.json +++ b/test/baselines/adapter_JS_React/.create-adapter.json @@ -33,5 +33,5 @@ "type": "free", "license": "MIT" }, - "creatorVersion": "2.6.3" + "creatorVersion": "2.6.4" } \ No newline at end of file diff --git a/test/baselines/adapter_JS_React/.github/workflows/test-and-release.yml b/test/baselines/adapter_JS_React/.github/workflows/test-and-release.yml index 22dba636..8c40042b 100644 --- a/test/baselines/adapter_JS_React/.github/workflows/test-and-release.yml +++ b/test/baselines/adapter_JS_React/.github/workflows/test-and-release.yml @@ -28,7 +28,7 @@ jobs: steps: - uses: ioBroker/testing-action-check@v1 with: - node-version: '18.x' + node-version: '20.x' # Uncomment the following line if your adapter cannot be installed using 'npm ci' # install-command: 'npm install' lint: true @@ -40,7 +40,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - node-version: [18.x, 20.x] + node-version: [18.x, 20.x, 22.x] os: [ubuntu-latest, windows-latest, macos-latest] steps: @@ -75,7 +75,7 @@ jobs: # steps: # - uses: ioBroker/testing-action-deploy@v1 # with: -# node-version: '18.x' +# node-version: '20.x' # # Uncomment the following line if your adapter cannot be installed using 'npm ci' # # install-command: 'npm install' # build: true diff --git a/test/baselines/adapter_JS_React/main.js b/test/baselines/adapter_JS_React/main.js index 0974294b..aa33e2dd 100644 --- a/test/baselines/adapter_JS_React/main.js +++ b/test/baselines/adapter_JS_React/main.js @@ -1,7 +1,7 @@ "use strict"; /* - * Created with @iobroker/create-adapter v2.6.3 + * Created with @iobroker/create-adapter v2.6.4 */ // The adapter-core module gives you access to the core ioBroker functions diff --git a/test/baselines/adapter_JS_React/package.json b/test/baselines/adapter_JS_React/package.json index 123f28fb..3ed7556f 100644 --- a/test/baselines/adapter_JS_React/package.json +++ b/test/baselines/adapter_JS_React/package.json @@ -19,7 +19,7 @@ "url": "https://github.com/AlCalzone/ioBroker.test-adapter.git" }, "engines": { - "node": ">= 18" + "node": ">= 20" }, "dependencies": { "@iobroker/adapter-core": "^3.1.6" diff --git a/test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/.create-adapter.json b/test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/.create-adapter.json index c38121f3..26d2b749 100644 --- a/test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/.create-adapter.json +++ b/test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/.create-adapter.json @@ -35,5 +35,5 @@ "licenseInformation": { "type": "free" }, - "creatorVersion": "2.6.3" + "creatorVersion": "2.6.4" } \ No newline at end of file diff --git a/test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/.github/workflows/test-and-release.yml b/test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/.github/workflows/test-and-release.yml index e0cf5e75..9f2a55ba 100644 --- a/test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/.github/workflows/test-and-release.yml +++ b/test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/.github/workflows/test-and-release.yml @@ -28,7 +28,7 @@ jobs: steps: - uses: ioBroker/testing-action-check@v1 with: - node-version: '18.x' + node-version: '20.x' # Uncomment the following line if your adapter cannot be installed using 'npm ci' # install-command: 'npm install' type-checking: true @@ -41,7 +41,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - node-version: [18.x, 20.x] + node-version: [18.x, 20.x, 22.x] os: [ubuntu-latest, windows-latest, macos-latest] steps: @@ -76,7 +76,7 @@ jobs: # steps: # - uses: ioBroker/testing-action-deploy@v1 # with: -# node-version: '18.x' +# node-version: '20.x' # # Uncomment the following line if your adapter cannot be installed using 'npm ci' # # install-command: 'npm install' # build: true 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 cd8f6506..af3f8c41 100644 --- a/test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/package.json +++ b/test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/package.json @@ -19,7 +19,7 @@ "url": "https://github.com/AlCalzone/ioBroker.test-adapter.git" }, "engines": { - "node": ">= 18" + "node": ">= 20" }, "dependencies": { "@iobroker/adapter-core": "^3.1.6" @@ -27,11 +27,11 @@ "devDependencies": { "@iobroker/adapter-dev": "^1.3.0", "@iobroker/testing": "^4.1.3", - "@tsconfig/node18": "^18.2.4", + "@tsconfig/node20": "^20.1.4", "@types/chai-as-promised": "^7.1.8", "@types/chai": "^4.3.19", "@types/mocha": "^10.0.8", - "@types/node": "^18.19.50", + "@types/node": "^20.16.5", "@types/proxyquire": "^1.3.31", "@types/sinon": "^17.0.3", "@types/sinon-chai": "^3.2.12", diff --git a/test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/src/main.ts b/test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/src/main.ts index 15b0b8a5..e8328f07 100644 --- a/test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/src/main.ts +++ b/test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/src/main.ts @@ -1,5 +1,5 @@ /* - * Created with @iobroker/create-adapter v2.6.3 + * Created with @iobroker/create-adapter v2.6.4 */ // The adapter-core module gives you access to the core ioBroker functions diff --git a/test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/tsconfig.json b/test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/tsconfig.json index 48ed29c0..4c80d776 100644 --- a/test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/tsconfig.json +++ b/test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/tsconfig.json @@ -1,8 +1,8 @@ // Root tsconfig to set the settings and power editor support for all TS files { // To update the compilation target, install a different version of @tsconfig/node... and reference it here - // https://github.com/tsconfig/bases#node-18-tsconfigjson - "extends": "@tsconfig/node18/tsconfig.json", + // https://github.com/tsconfig/bases#node-20-tsconfigjson + "extends": "@tsconfig/node20/tsconfig.json", "compilerOptions": { // do not compile anything, this file is just to configure type checking // the compilation is configured in tsconfig.build.json diff --git a/test/baselines/adapter_TS_React/.create-adapter.json b/test/baselines/adapter_TS_React/.create-adapter.json index a2e8ccc5..99b63a79 100644 --- a/test/baselines/adapter_TS_React/.create-adapter.json +++ b/test/baselines/adapter_TS_React/.create-adapter.json @@ -33,5 +33,5 @@ "type": "free", "license": "MIT" }, - "creatorVersion": "2.6.3" + "creatorVersion": "2.6.4" } \ No newline at end of file diff --git a/test/baselines/adapter_TS_React/.github/workflows/test-and-release.yml b/test/baselines/adapter_TS_React/.github/workflows/test-and-release.yml index 5770755b..6ed2d3a6 100644 --- a/test/baselines/adapter_TS_React/.github/workflows/test-and-release.yml +++ b/test/baselines/adapter_TS_React/.github/workflows/test-and-release.yml @@ -28,7 +28,7 @@ jobs: steps: - uses: ioBroker/testing-action-check@v1 with: - node-version: '18.x' + node-version: '20.x' # Uncomment the following line if your adapter cannot be installed using 'npm ci' # install-command: 'npm install' type-checking: true @@ -41,7 +41,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - node-version: [18.x, 20.x] + node-version: [18.x, 20.x, 22.x] os: [ubuntu-latest, windows-latest, macos-latest] steps: @@ -76,7 +76,7 @@ jobs: # steps: # - uses: ioBroker/testing-action-deploy@v1 # with: -# node-version: '18.x' +# node-version: '20.x' # # Uncomment the following line if your adapter cannot be installed using 'npm ci' # # install-command: 'npm install' # build: true diff --git a/test/baselines/adapter_TS_React/package.json b/test/baselines/adapter_TS_React/package.json index 9a88b48e..ca117dea 100644 --- a/test/baselines/adapter_TS_React/package.json +++ b/test/baselines/adapter_TS_React/package.json @@ -19,7 +19,7 @@ "url": "https://github.com/AlCalzone/ioBroker.test-adapter.git" }, "engines": { - "node": ">= 18" + "node": ">= 20" }, "dependencies": { "@iobroker/adapter-core": "^3.1.6" @@ -29,11 +29,11 @@ "@iobroker/adapter-react": "2.0.22", "@iobroker/testing": "^4.1.3", "@material-ui/core": "^4.12.4", - "@tsconfig/node18": "^18.2.4", + "@tsconfig/node20": "^20.1.4", "@types/chai-as-promised": "^7.1.8", "@types/chai": "^4.3.19", "@types/mocha": "^10.0.8", - "@types/node": "^18.19.50", + "@types/node": "^20.16.5", "@types/proxyquire": "^1.3.31", "@types/react-dom": "^17.0.25", "@types/react": "^17.0.80", diff --git a/test/baselines/adapter_TS_React/src/main.ts b/test/baselines/adapter_TS_React/src/main.ts index 15b0b8a5..e8328f07 100644 --- a/test/baselines/adapter_TS_React/src/main.ts +++ b/test/baselines/adapter_TS_React/src/main.ts @@ -1,5 +1,5 @@ /* - * Created with @iobroker/create-adapter v2.6.3 + * Created with @iobroker/create-adapter v2.6.4 */ // The adapter-core module gives you access to the core ioBroker functions diff --git a/test/baselines/adapter_TS_React/tsconfig.json b/test/baselines/adapter_TS_React/tsconfig.json index 48ed29c0..4c80d776 100644 --- a/test/baselines/adapter_TS_React/tsconfig.json +++ b/test/baselines/adapter_TS_React/tsconfig.json @@ -1,8 +1,8 @@ // Root tsconfig to set the settings and power editor support for all TS files { // To update the compilation target, install a different version of @tsconfig/node... and reference it here - // https://github.com/tsconfig/bases#node-18-tsconfigjson - "extends": "@tsconfig/node18/tsconfig.json", + // https://github.com/tsconfig/bases#node-20-tsconfigjson + "extends": "@tsconfig/node20/tsconfig.json", "compilerOptions": { // do not compile anything, this file is just to configure type checking // the compilation is configured in tsconfig.build.json diff --git a/test/baselines/connectionIndicator_yes/src/main.ts b/test/baselines/connectionIndicator_yes/src/main.ts index 5f143232..1cc02329 100644 --- a/test/baselines/connectionIndicator_yes/src/main.ts +++ b/test/baselines/connectionIndicator_yes/src/main.ts @@ -1,5 +1,5 @@ /* - * Created with @iobroker/create-adapter v2.6.3 + * Created with @iobroker/create-adapter v2.6.4 */ // The adapter-core module gives you access to the core ioBroker functions diff --git a/test/baselines/contributors/package.json b/test/baselines/contributors/package.json index e7c4e607..89335368 100644 --- a/test/baselines/contributors/package.json +++ b/test/baselines/contributors/package.json @@ -27,7 +27,7 @@ "url": "https://github.com/AlCalzone/ioBroker.test-adapter.git" }, "engines": { - "node": ">= 18" + "node": ">= 20" }, "dependencies": { "@iobroker/adapter-core": "^3.1.6" @@ -35,11 +35,11 @@ "devDependencies": { "@iobroker/adapter-dev": "^1.3.0", "@iobroker/testing": "^4.1.3", - "@tsconfig/node18": "^18.2.4", + "@tsconfig/node20": "^20.1.4", "@types/chai-as-promised": "^7.1.8", "@types/chai": "^4.3.19", "@types/mocha": "^10.0.8", - "@types/node": "^18.19.50", + "@types/node": "^20.16.5", "@types/proxyquire": "^1.3.31", "@types/sinon": "^17.0.3", "@types/sinon-chai": "^3.2.12", diff --git a/test/baselines/customAdapterSettings/src/main.ts b/test/baselines/customAdapterSettings/src/main.ts index 4fcf24a4..87871a4e 100644 --- a/test/baselines/customAdapterSettings/src/main.ts +++ b/test/baselines/customAdapterSettings/src/main.ts @@ -1,5 +1,5 @@ /* - * Created with @iobroker/create-adapter v2.6.3 + * Created with @iobroker/create-adapter v2.6.4 */ // The adapter-core module gives you access to the core ioBroker functions diff --git a/test/baselines/git_SSH/package.json b/test/baselines/git_SSH/package.json index 6449a626..7de0eee8 100644 --- a/test/baselines/git_SSH/package.json +++ b/test/baselines/git_SSH/package.json @@ -19,7 +19,7 @@ "url": "git@github.com:AlCalzone/ioBroker.test-adapter.git" }, "engines": { - "node": ">= 18" + "node": ">= 20" }, "dependencies": { "@iobroker/adapter-core": "^3.1.6" @@ -27,11 +27,11 @@ "devDependencies": { "@iobroker/adapter-dev": "^1.3.0", "@iobroker/testing": "^4.1.3", - "@tsconfig/node18": "^18.2.4", + "@tsconfig/node20": "^20.1.4", "@types/chai-as-promised": "^7.1.8", "@types/chai": "^4.3.19", "@types/mocha": "^10.0.8", - "@types/node": "^18.19.50", + "@types/node": "^20.16.5", "@types/proxyquire": "^1.3.31", "@types/sinon": "^17.0.3", "@types/sinon-chai": "^3.2.12", diff --git a/test/baselines/keywords/package.json b/test/baselines/keywords/package.json index 1835acb8..48aa91df 100644 --- a/test/baselines/keywords/package.json +++ b/test/baselines/keywords/package.json @@ -20,7 +20,7 @@ "url": "https://github.com/AlCalzone/ioBroker.test-adapter.git" }, "engines": { - "node": ">= 18" + "node": ">= 20" }, "dependencies": { "@iobroker/adapter-core": "^3.1.6" @@ -28,11 +28,11 @@ "devDependencies": { "@iobroker/adapter-dev": "^1.3.0", "@iobroker/testing": "^4.1.3", - "@tsconfig/node18": "^18.2.4", + "@tsconfig/node20": "^20.1.4", "@types/chai-as-promised": "^7.1.8", "@types/chai": "^4.3.19", "@types/mocha": "^10.0.8", - "@types/node": "^18.19.50", + "@types/node": "^20.16.5", "@types/proxyquire": "^1.3.31", "@types/sinon": "^17.0.3", "@types/sinon-chai": "^3.2.12", diff --git a/test/baselines/minNodeVersion_22/package.json b/test/baselines/minNodeVersion_22/package.json new file mode 100644 index 00000000..8ac2b27f --- /dev/null +++ b/test/baselines/minNodeVersion_22/package.json @@ -0,0 +1,80 @@ +{ + "name": "iobroker.test-adapter", + "version": "0.0.1", + "description": "test-adapter", + "author": { + "name": "Al Calzone", + "email": "al@calzo.ne" + }, + "homepage": "https://github.com/AlCalzone/ioBroker.test-adapter", + "license": "MIT", + "keywords": [ + "ioBroker", + "template", + "Smart Home", + "home automation" + ], + "repository": { + "type": "git", + "url": "https://github.com/AlCalzone/ioBroker.test-adapter.git" + }, + "engines": { + "node": ">= 22" + }, + "dependencies": { + "@iobroker/adapter-core": "^3.1.6" + }, + "devDependencies": { + "@iobroker/adapter-dev": "^1.3.0", + "@iobroker/testing": "^4.1.3", + "@tsconfig/node22": "^22.0.0", + "@types/chai-as-promised": "^7.1.8", + "@types/chai": "^4.3.19", + "@types/mocha": "^10.0.8", + "@types/node": "^22.5.4", + "@types/proxyquire": "^1.3.31", + "@types/sinon": "^17.0.3", + "@types/sinon-chai": "^3.2.12", + "@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": "^3.7.0", + "source-map-support": "^0.5.21", + "ts-node": "^10.9.2", + "typescript": "~5.0.4" + }, + "main": "build/main.js", + "files": [ + "admin{,/!(src)/**}/!(tsconfig|tsconfig.*|.eslintrc).{json,json5}", + "admin{,/!(src)/**}/*.{html,css,png,svg,jpg,js}", + "build/", + "www/", + "io-package.json", + "LICENSE" + ], + "scripts": { + "prebuild": "rimraf build", + "build": "build-adapter ts", + "watch": "build-adapter ts --watch", + "prebuild:ts": "rimraf build", + "build:ts": "build-adapter ts", + "watch:ts": "build-adapter ts --watch", + "test:ts": "mocha --config test/mocharc.custom.json src/**/*.test.ts", + "test:package": "mocha test/package --exit", + "test:integration": "mocha test/integration --exit", + "test": "npm run test:ts && npm run test:package", + "check": "tsc --noEmit", + "lint": "eslint --ext .ts src/", + "translate": "translate-adapter" + }, + "bugs": { + "url": "https://github.com/AlCalzone/ioBroker.test-adapter/issues" + }, + "readmeFilename": "README.md" +} \ No newline at end of file diff --git a/test/baselines/minNodeVersion_22/tsconfig.json b/test/baselines/minNodeVersion_22/tsconfig.json new file mode 100644 index 00000000..7b776703 --- /dev/null +++ b/test/baselines/minNodeVersion_22/tsconfig.json @@ -0,0 +1,46 @@ +// Root tsconfig to set the settings and power editor support for all TS files +{ + // To update the compilation target, install a different version of @tsconfig/node... and reference it here + // https://github.com/tsconfig/bases#node-22-tsconfigjson + "extends": "@tsconfig/node22/tsconfig.json", + "compilerOptions": { + // do not compile anything, this file is just to configure type checking + // the compilation is configured in tsconfig.build.json + "noEmit": true, + + // check JS files, but do not compile them => tsconfig.build.json + "allowJs": true, + "checkJs": true, + + "noEmitOnError": true, + "outDir": "./build/", + "removeComments": false, + + // This is necessary for the automatic typing of the adapter config + "resolveJsonModule": true, + + // If you want to disable the stricter type checks (not recommended), uncomment the following line + // "strict": false, + // And enable some of those features for more fine-grained control + // "strictNullChecks": true, + // "strictPropertyInitialization": true, + // "strictBindCallApply": true, + // "noImplicitAny": true, + // "noUnusedLocals": true, + // "noUnusedParameters": true, + // Uncomment this if you want the old behavior of catch variables being `any` + // "useUnknownInCatchVariables": false, + + "sourceMap": true, + "inlineSourceMap": false + }, + "include": [ + "src/**/*.ts", + "test/**/*.ts" + ], + "exclude": [ + "build/**", + "node_modules/**", + "widgets/**" + ] +} \ No newline at end of file diff --git a/test/baselines/portal-github/.github/workflows/test-and-release.yml b/test/baselines/portal-github/.github/workflows/test-and-release.yml index cca2fec8..7b7ecc49 100644 --- a/test/baselines/portal-github/.github/workflows/test-and-release.yml +++ b/test/baselines/portal-github/.github/workflows/test-and-release.yml @@ -28,7 +28,7 @@ jobs: steps: - uses: ioBroker/testing-action-check@v1 with: - node-version: '18.x' + node-version: '20.x' # Uncomment the following line if your adapter cannot be installed using 'npm ci' # install-command: 'npm install' type-checking: true @@ -41,7 +41,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - node-version: [18.x, 20.x] + node-version: [18.x, 20.x, 22.x] os: [ubuntu-latest, windows-latest, macos-latest] steps: @@ -72,7 +72,7 @@ jobs: steps: - uses: ioBroker/testing-action-deploy@v1 with: - node-version: '18.x' + node-version: '20.x' # Uncomment the following line if your adapter cannot be installed using 'npm ci' # install-command: 'npm install' build: true diff --git a/test/baselines/vis_Widget/.create-adapter.json b/test/baselines/vis_Widget/.create-adapter.json index 4482372b..a67e925c 100644 --- a/test/baselines/vis_Widget/.create-adapter.json +++ b/test/baselines/vis_Widget/.create-adapter.json @@ -18,5 +18,5 @@ "gitCommit": "no", "defaultBranch": "main", "license": "MIT License", - "creatorVersion": "2.6.3" + "creatorVersion": "2.6.4" } \ No newline at end of file diff --git a/test/baselines/vis_Widget/.github/workflows/test-and-release.yml b/test/baselines/vis_Widget/.github/workflows/test-and-release.yml index 8f45782f..b452c3b8 100644 --- a/test/baselines/vis_Widget/.github/workflows/test-and-release.yml +++ b/test/baselines/vis_Widget/.github/workflows/test-and-release.yml @@ -28,7 +28,7 @@ jobs: steps: - uses: ioBroker/testing-action-check@v1 with: - node-version: '18.x' + node-version: '20.x' # Uncomment the following line if your adapter cannot be installed using 'npm ci' # install-command: 'npm install' @@ -56,7 +56,7 @@ jobs: # steps: # - uses: ioBroker/testing-action-deploy@v1 # with: -# node-version: '18.x' +# node-version: '20.x' # # Uncomment the following line if your adapter cannot be installed using 'npm ci' # # install-command: 'npm install' # npm-token: ${{ secrets.NPM_TOKEN }} diff --git a/test/baselines/vis_Widget/package.json b/test/baselines/vis_Widget/package.json index d35b9e62..ecc344dd 100644 --- a/test/baselines/vis_Widget/package.json +++ b/test/baselines/vis_Widget/package.json @@ -19,7 +19,7 @@ "url": "https://github.com/AlCalzone/ioBroker.test-widget.git" }, "engines": { - "node": ">= 18" + "node": ">= 20" }, "dependencies": {}, "devDependencies": {