Skip to content

Commit 7f1032a

Browse files
authored
Merge branch 'master' into typing-250926
2 parents e7aa78b + 7d25284 commit 7f1032a

File tree

319 files changed

+1818
-1800
lines changed

Some content is hidden

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

319 files changed

+1818
-1800
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
-->
66

77
## __WORK IN PROGRESS__
8+
* (@copilot) Fixed adminUI, adminTab, and adminColumns configurations being incorrectly preserved during adapter uploads
89
* (@foxriver76) Added objects warn limit per instance
910
* (@Apollon77) Allows only numbers for `ts` and `lc` fields in state when provided for setState
1011
* (@GermanBluefox) Added typing for `visIconSets` in `io-package.json`(for vis-2 SVG icon sets)

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "7.0.8-alpha.5-20250913-8ad7f66ce",
2+
"version": "7.0.8-alpha.6-20250927-51faba7cb",
33
"command": {
44
"run": {
55
"stream": true

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"chai": "^4.3.4",
5757
"chai-as-promised": "^7.1.1",
5858
"cpy-cli": "^4.2.0",
59-
"fs-extra": "^11.1.0",
59+
"fs-extra": "^11.3.2",
6060
"lerna": "^7.4.2",
6161
"mocha": "^10.4.0",
6262
"prettier": "^3.0.1",

packages/adapter/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@iobroker/js-controller-adapter",
33
"type": "module",
4-
"version": "7.0.8-alpha.5-20250913-8ad7f66ce",
4+
"version": "7.0.8-alpha.6-20250927-51faba7cb",
55
"engines": {
66
"node": ">=18.0.0"
77
},
@@ -17,7 +17,7 @@
1717
"@iobroker/js-controller-common-db": "file:../common-db",
1818
"@iobroker/plugin-base": "~2.0.1",
1919
"deep-clone": "^3.0.3",
20-
"fs-extra": "^11.1.0",
20+
"fs-extra": "^11.3.2",
2121
"jsonwebtoken": "^9.0.0",
2222
"node-schedule": "^2.1.0",
2323
"node.extend": "^2.0.2",

packages/cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@iobroker/js-controller-cli",
33
"type": "module",
4-
"version": "7.0.8-alpha.5-20250913-8ad7f66ce",
4+
"version": "7.0.8-alpha.6-20250927-51faba7cb",
55
"engines": {
66
"node": ">=18.0.0"
77
},
@@ -14,7 +14,7 @@
1414
"debug": "^4.3.4",
1515
"deep-clone": "^3.0.3",
1616
"event-stream": "^4.0.1",
17-
"fs-extra": "^11.1.0",
17+
"fs-extra": "^11.3.2",
1818
"mime-types": "^2.1.35",
1919
"promisify-child-process": "^4.1.1",
2020
"readline-sync": "^1.4.10",

packages/cli/src/lib/setup/setupSetup.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -509,10 +509,6 @@ Please DO NOT copy files manually into ioBroker storage directories!`,
509509

510510
if (oldObjectsHasServer && !newObjectsHasServer) {
511511
console.log(COLOR_YELLOW);
512-
console.log(`Important: Using ${newConfig.objects.type} for the Objects database is only supported`);
513-
console.log('with js-controller 2.0 or higher!');
514-
console.log('When your system consists of multiple hosts please make sure to have');
515-
console.log('js-controller 2.0 or higher installed on ALL hosts *before* continuing!');
516512
if (allowMigration) {
517513
console.log('');
518514
console.log('');

packages/cli/src/lib/setup/setupUpload.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,13 +670,20 @@ export class Upload {
670670
'tier',
671671
];
672672

673+
// Object attributes that should be completely replaced, not merged
674+
const replaceAttributes = ['adminUI', 'adminTab', 'adminColumns'];
675+
673676
for (const [attr, attrData] of Object.entries(additional)) {
674677
// preserve these attributes, except, they were undefined before and preserve titleLang if current titleLang is of type string (changed by user)
675678
if (preserveAttributes.includes(attr) || (attr === 'titleLang' && typeof target[attr] === 'string')) {
676679
if (target[attr] === undefined) {
677680
target[attr] = attrData;
678681
}
679-
} else if (typeof attrData !== 'object' || attrData instanceof Array) {
682+
} else if (
683+
typeof attrData !== 'object' ||
684+
attrData instanceof Array ||
685+
replaceAttributes.includes(attr)
686+
) {
680687
try {
681688
target[attr] = attrData;
682689

packages/common-db/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@iobroker/js-controller-common-db",
33
"type": "module",
4-
"version": "7.0.8-alpha.5-20250913-8ad7f66ce",
4+
"version": "7.0.8-alpha.6-20250927-51faba7cb",
55
"engines": {
66
"node": ">=18.0.0"
77
},
@@ -16,7 +16,7 @@
1616
"ci-info": "^3.8.0",
1717
"deep-clone": "^3.0.3",
1818
"event-stream": "^4.0.1",
19-
"fs-extra": "^11.1.0",
19+
"fs-extra": "^11.3.2",
2020
"jsonwebtoken": "^9.0.0",
2121
"node-forge": "^1.3.0",
2222
"node.extend": "^2.0.2",

packages/common/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@iobroker/js-controller-common",
33
"type": "module",
4-
"version": "7.0.8-alpha.5-20250913-8ad7f66ce",
4+
"version": "7.0.8-alpha.6-20250927-51faba7cb",
55
"engines": {
66
"node": ">=12.0.0"
77
},
@@ -17,7 +17,7 @@
1717
"@iobroker/db-states-jsonl": "file:../db-states-jsonl",
1818
"@iobroker/db-states-redis": "file:../db-states-redis",
1919
"@iobroker/js-controller-common-db": "file:../common-db",
20-
"fs-extra": "^11.1.0",
20+
"fs-extra": "^11.3.2",
2121
"jszip": "^3.10.1"
2222
},
2323
"keywords": [

0 commit comments

Comments
 (0)