Skip to content

Commit 34bb4b1

Browse files
authored
ansi-colors types moved ... update deps (#1151)
1 parent 4e14103 commit 34bb4b1

50 files changed

Lines changed: 2614 additions & 6388 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/create_templates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { writeFiles } from "../src/lib/createAdapter";
88

99
const outDir = path.join(process.cwd(), "ioBroker.template");
1010

11-
function getTemplateDir(templateName: string) {
11+
function getTemplateDir(templateName: string): string {
1212
return path.join(outDir, templateName);
1313
}
1414

package-lock.json

Lines changed: 2400 additions & 6170 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -33,52 +33,51 @@
3333
"access": "public"
3434
},
3535
"devDependencies": {
36-
"@alcalzone/release-script": "^3.5.9",
37-
"@tsconfig/node18": "^18.2.2",
38-
"@types/ansi-colors": "^3.2.2",
39-
"@types/chai": "^4.3.3",
40-
"@types/chai-as-promised": "^7.1.5",
41-
"@types/debug": "4.1.8",
42-
"@types/eslint": "^8.56.1",
43-
"@types/fs-extra": "^11.0.1",
36+
"@alcalzone/release-script": "^3.8.0",
37+
"@tsconfig/node18": "^18.2.4",
38+
"@types/chai": "^4.3.20",
39+
"@types/chai-as-promised": "^7.1.8",
40+
"@types/debug": "4.1.12",
41+
"@types/eslint": "^8.56.12",
42+
"@types/fs-extra": "^11.0.4",
4443
"@types/json5": "2.2.0",
45-
"@types/mocha": "^10.0.1",
46-
"@types/node": "^18.19.4",
47-
"@types/proxyquire": "^1.3.28",
48-
"@types/semver": "^7.3.13",
49-
"@types/sinon": "^10.0.13",
50-
"@types/sinon-chai": "^3.2.9",
51-
"@types/yargs": "^17.0.24",
52-
"@typescript-eslint/eslint-plugin": "^6.17.0",
53-
"chai": "^4.3.6",
54-
"chai-as-promised": "^7.1.1",
44+
"@types/mocha": "^10.0.10",
45+
"@types/node": "^18.19.123",
46+
"@types/proxyquire": "^1.3.31",
47+
"@types/semver": "^7.7.0",
48+
"@types/sinon": "^10.0.20",
49+
"@types/sinon-chai": "^3.2.12",
50+
"@types/yargs": "^17.0.33",
51+
"@typescript-eslint/eslint-plugin": "^6.21.0",
52+
"chai": "^4.5.0",
53+
"chai-as-promised": "^7.1.2",
5554
"copyfiles": "^2.4.1",
56-
"eslint-config-prettier": "^9.1.0",
57-
"eslint-plugin-prettier": "^5.1.2",
55+
"eslint-config-prettier": "^9.1.2",
56+
"eslint-plugin-prettier": "^5.5.4",
5857
"execa": "^8.0.1",
59-
"jsonschema": "^1.4.1",
60-
"mocha": "^10.2.0",
58+
"jsonschema": "^1.5.0",
59+
"mocha": "^11.7.1",
6160
"proxyquire": "^2.1.3",
6261
"rimraf": "^4.4.1",
63-
"sinon": "^15.1.0",
62+
"sinon": "^15.2.0",
6463
"sinon-chai": "^3.7.0",
6564
"source-map-support": "^0.5.21",
66-
"tsx": "^4.7.0"
65+
"tsx": "^4.20.5"
6766
},
6867
"dependencies": {
69-
"@iobroker/adapter-dev": "^1.2.0",
70-
"@typescript-eslint/parser": "^6.17.0",
71-
"alcalzone-shared": "^4.0.3",
68+
"@iobroker/adapter-dev": "^1.4.0",
69+
"@typescript-eslint/parser": "^6.21.0",
70+
"alcalzone-shared": "^4.0.8",
7271
"ansi-colors": "^4.1.3",
73-
"axios": "^1.3.4",
74-
"debug": "^4.3.4",
75-
"enquirer": "^2.3.6",
76-
"eslint": "^8.56.0",
77-
"fs-extra": "^11.1.1",
72+
"axios": "^1.11.0",
73+
"debug": "^4.4.1",
74+
"enquirer": "^2.4.1",
75+
"eslint": "^8.57.1",
76+
"fs-extra": "^11.3.1",
7877
"json5": "^2.2.3",
7978
"p-limit": "^5.0.0",
80-
"prettier": "^3.1.1",
81-
"semver": "^7.5.0",
79+
"prettier": "^3.6.2",
80+
"semver": "^7.7.2",
8281
"typescript": "~5.3.3",
8382
"yargs": "^17.7.2"
8483
},

src/lib/core.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { readdir, readFile } from "fs-extra";
1+
import { readdir, readFile } from "fs/promises";
22
import { join, resolve } from "path";
33

44
const testAllFiles = async (

templates/main.js.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ ${adapterSettings.map(s => `\t\tthis.log.info("config ${s.key}: " + this.config.
9797
await this.setStateAsync("testVariable", { val: true, ack: true, expire: 30 });
9898
9999
// examples for the checkPassword/checkGroup functions
100-
let result = await this.checkPasswordAsync("admin", "iobroker");
101-
this.log.info("check user admin pw iobroker: " + result);
100+
const pwdResult = await this.checkPasswordAsync("admin", "iobroker");
101+
this.log.info("check user admin pw iobroker: " + pwdResult);
102102
103-
result = await this.checkGroupAsync("admin", "admin");
104-
this.log.info("check group user admin group admin: " + result);
103+
const gropupResult = await this.checkGroupAsync("admin", "admin");
104+
this.log.info("check group user admin group admin: " + gropupResult);
105105
}
106106
107107
/**

templates/src/main.ts.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ ${adapterSettings.map(s => `\t\tthis.log.info("config ${s.key}: " + this.config.
9393
await this.setStateAsync("testVariable", { val: true, ack: true, expire: 30 });
9494
9595
// examples for the checkPassword/checkGroup functions
96-
let result = await this.checkPasswordAsync("admin", "iobroker");
97-
this.log.info("check user admin pw iobroker: " + result);
96+
const pwdResult = await this.checkPasswordAsync("admin", "iobroker");
97+
this.log.info("check user admin pw iobroker: " + pwdResult);
9898
99-
result = await this.checkGroupAsync("admin", "admin");
100-
this.log.info("check group user admin group admin: " + result);
99+
const gropupResult = await this.checkGroupAsync("admin", "admin");
100+
this.log.info("check group user admin group admin: " + gropupResult);
101101
}
102102
103103
/**

templates/widgets/template.js.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ vis.binds["${widgetName}"] = {
7070
$('#' + widgetID).html(text);
7171
7272
// subscribe on updates of value
73-
function onChange(e, newVal, oldVal) {
73+
function onChange(e, newVal, _oldVal) {
7474
$div.find('.template-value').html(newVal);
7575
}
7676
if (data.oid) {

test/baselines/ReleaseScript_JS/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ For later updates, the above procedure is not necessary. Just do the following:
116116
## License
117117
MIT License
118118

119-
Copyright (c) 2024 Al Calzone <al@calzo.ne>
119+
Copyright (c) 2025 Al Calzone <al@calzo.ne>
120120

121121
Permission is hereby granted, free of charge, to any person obtaining a copy
122122
of this software and associated documentation files (the "Software"), to deal

test/baselines/ReleaseScript_JS/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@
2222
"node": ">= 20"
2323
},
2424
"dependencies": {
25-
"@iobroker/adapter-core": "^3.1.6"
25+
"@iobroker/adapter-core": "^3.3.2"
2626
},
2727
"devDependencies": {
2828
"@alcalzone/release-script": "^3.8.0",
2929
"@alcalzone/release-script-plugin-iobroker": "^3.7.2",
3030
"@alcalzone/release-script-plugin-license": "^3.7.0",
3131
"@alcalzone/release-script-plugin-manual-review": "^3.7.0",
32-
"@iobroker/adapter-dev": "^1.3.0",
33-
"@iobroker/testing": "^4.1.3",
32+
"@iobroker/adapter-dev": "^1.4.0",
33+
"@iobroker/testing": "^5.1.0",
3434
"chai-as-promised": "^7.1.2",
3535
"chai": "^4.5.0",
36-
"eslint": "^8.57.0",
37-
"mocha": "^10.7.3",
36+
"eslint": "^8.57.1",
37+
"mocha": "^11.7.1",
3838
"proxyquire": "^2.1.3",
39-
"sinon": "^19.0.2",
39+
"sinon": "^21.0.0",
4040
"sinon-chai": "^3.7.0"
4141
},
4242
"main": "main.js",

test/baselines/ReleaseScript_TS/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ For later updates, the above procedure is not necessary. Just do the following:
124124
## License
125125
MIT License
126126

127-
Copyright (c) 2024 Al Calzone <al@calzo.ne>
127+
Copyright (c) 2025 Al Calzone <al@calzo.ne>
128128

129129
Permission is hereby granted, free of charge, to any person obtaining a copy
130130
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)