iobroker.js-controller 4.0.13 → 4.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/io-package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "js-controller",
4
- "version": "4.0.13",
4
+ "version": "4.0.14",
5
5
  "platform": "Javascript/Node.js",
6
6
  "controller": true,
7
7
  "mode": "daemon",
@@ -19,6 +19,18 @@
19
19
  "zh-cn": "JS控制器"
20
20
  },
21
21
  "news": {
22
+ "4.0.14": {
23
+ "en": "Additional optimizations for setup process and DB defaults",
24
+ "de": "Zusätzliche Optimierungen für Setup-Prozess und DB-Standardwerte",
25
+ "ru": "Дополнительные оптимизации процесса установки и настроек БД по умолчанию",
26
+ "pt": "Otimizações adicionais para o processo de configuração e padrões de banco de dados",
27
+ "nl": "Aanvullende optimalisaties voor het installatieproces en DB-standaarden",
28
+ "fr": "Optimisations supplémentaires pour le processus de configuration et les valeurs par défaut de la base de données",
29
+ "it": "Ulteriori ottimizzazioni per il processo di configurazione e le impostazioni predefinite del DB",
30
+ "es": "Optimizaciones adicionales para el proceso de configuración y los valores predeterminados de DB",
31
+ "pl": "Dodatkowe optymalizacje procesu konfiguracji i ustawień domyślnych bazy danych",
32
+ "zh-cn": "设置过程和数据库默认值的其他优化"
33
+ },
22
34
  "4.0.13": {
23
35
  "en": "also log a message on force restore if it accepts a js-controller version mismatch\nFix seq instance detection to add correct meta data to logs in all cases\nAdd database types to crashes reported to sentry\nAdd JSONL as default for new installations",
24
36
  "de": "Protokollieren Sie auch eine Meldung zum Erzwingen der Wiederherstellung, wenn eine Nichtübereinstimmung der JS-Controller-Version akzeptiert wird\nFehler bei der Seq-Instanzerkennung behoben, um in allen Fällen korrekte Metadaten zu Protokollen hinzuzufügen\nHinzufügen von Datenbanktypen zu Abstürzen, die an Sentry gemeldet werden\nFügen Sie JSONL als Standard für neue Installationen hinzu",
@@ -90,18 +102,6 @@
90
102
  "es": "Optimizar aún más la detección del administrador de paquetes",
91
103
  "pl": "Dalsza optymalizacja wykrywania menedżera pakietów",
92
104
  "zh-cn": "进一步优化包管理器检测"
93
- },
94
- "4.0.6": {
95
- "en": "Optimize some JSONL cases\nOptimize Backup restore process\nFix issues that prevented adapter installs/updates (npm can not be located error message)\nFix seq Logging issue\nPrevent several crash cases seen in Sentry",
96
- "de": "Optimieren Sie einige JSONL-Fälle\nOptimieren Sie den Backup-Wiederherstellungsprozess\nBehebung von Problemen, die Adapterinstallationen/-aktualisierungen verhinderten (Fehlermeldung „npm kann nicht gefunden werden“)\nSeq-Logging-Problem behoben\nVerhindern Sie mehrere Absturzfälle, die in Sentry aufgetreten sind",
97
- "ru": "Оптимизация некоторых случаев JSONL\nОптимизировать процесс восстановления резервной копии\nУстранение проблем, препятствовавших установке/обновлению адаптера (сообщение об ошибке npm не может быть найдено)\nИсправить проблему с ведением журнала последовательностей\nПредотвратить несколько случаев сбоя в Sentry.",
98
- "pt": "Otimize alguns casos JSONL\nOtimize o processo de restauração de backup\nCorrige problemas que impediam instalações/atualizações do adaptador (o npm não pode ser localizado a mensagem de erro)\nCorrigir o problema de log de seq\nPrevenir vários casos de acidente vistos no Sentinela",
99
- "nl": "Optimaliseer sommige JSONL-cases\nOptimaliseer het back-upherstelproces\nProblemen oplossen die installatie/updates van adapters verhinderden (npm kan foutbericht niet worden gevonden)\nFix seq Logging probleem\nVoorkom verschillende crashgevallen in Sentry",
100
- "fr": "Optimiser certains cas JSONL\nOptimiser le processus de restauration de sauvegarde\nRésoudre les problèmes qui empêchaient les installations/mises à jour de l'adaptateur (le message d'erreur npm ne peut pas être localisé)\nCorrection du problème de journalisation suivant\nEmpêcher plusieurs cas de crash vus dans Sentry",
101
- "it": "Ottimizza alcuni casi JSONL\nOttimizza il processo di ripristino del backup\nRisolvi i problemi che impedivano le installazioni/gli aggiornamenti dell'adattatore (non è possibile individuare il messaggio di errore di npm)\nRisolto il problema con la registrazione della sequenza\nImpedisci diversi casi di crash visti in Sentry",
102
- "es": "Optimizar algunos casos JSONL\nOptimizar el proceso de restauración de copia de seguridad\nSolucionar problemas que impedían la instalación/actualización del adaptador (mensaje de error npm no se puede ubicar)\nSolucionar el problema de registro de secuencias\nEvitar varios casos de bloqueo vistos en Sentry",
103
- "pl": "Zoptymalizuj niektóre przypadki JSONL\nZoptymalizuj proces przywracania kopii zapasowej\nNapraw problemy, które uniemożliwiały instalację/aktualizację karty (nie można zlokalizować npm, komunikat o błędzie)\nNapraw kolejny problem z logowaniem\nZapobiegaj kilku przypadkom awarii w Sentry",
104
- "zh-cn": "优化部分 JSONL 案例\n优化备份还原过程\n修复阻止适配器安装/更新的问题(npm 无法定位错误消息)\n修复 seq 日志记录问题\n防止在 Sentry 中出现的几个崩溃案例"
105
105
  }
106
106
  },
107
107
  "desc": {
@@ -137,6 +137,18 @@ function Setup(options) {
137
137
  console.log('database setup done. You can add adapters and start ' + tools.appName + ' now');
138
138
  return processExit(EXIT_CODES.NO_ERROR);
139
139
  }
140
+
141
+ // clean up invalid user group assignments (non-existing user in a group)
142
+ try {
143
+ await _cleanupInvalidGroupAssignments();
144
+ } catch (e) {
145
+ // Cannot find view happens on very first installation,
146
+ // so ignore this case because no users can be invalid
147
+ if (!e.message.includes('Cannot find view')) {
148
+ console.error(`Cannot clean up invalid user group assignments: ${e.message}`);
149
+ }
150
+ }
151
+
140
152
  if (!objects.syncFileDirectory || !objects.dirExists) {
141
153
  return void informAboutPlugins(systemConfig, callback);
142
154
  }
@@ -241,17 +253,6 @@ function Setup(options) {
241
253
 
242
254
  await _maybeMigrateSets();
243
255
 
244
- // clean up invalid user group assignments (non-existing user in a group)
245
- try {
246
- await _cleanupInvalidGroupAssignments();
247
- } catch (e) {
248
- // Cannot find view happens on very first installation,
249
- // so ignore this case because no users can be invalid
250
- if (!e.message.includes('Cannot find view')) {
251
- console.error(`Cannot clean up invalid user group assignments: ${e.message}`);
252
- }
253
- }
254
-
255
256
  if (checkCertificateOnly) {
256
257
  let certObj;
257
258
  if (iopkg && iopkg.objects) {
package/lib/setup.js CHANGED
@@ -3091,8 +3091,8 @@ function dbConnect(onlyCheck, params, callback) {
3091
3091
  return void callback(objects, states, false, config.objects.type, config);
3092
3092
  }
3093
3093
 
3094
- config.states = config.states || { type: 'file' };
3095
- config.objects = config.objects || { type: 'file' };
3094
+ config.states = config.states || { type: 'jsonl' };
3095
+ config.objects = config.objects || { type: 'jsonl' };
3096
3096
  // Make sure the DB has enough time (5s). JsonL can take a bit longer if the process just crashed before
3097
3097
  // because the lockfile might not have been freed.
3098
3098
  config.states.connectTimeout = Math.max(config.states.connectTimeout || 0, 5000);
package/main.js CHANGED
@@ -134,10 +134,10 @@ function getConfig() {
134
134
  } else {
135
135
  const _config = fs.readJSONSync(configFile);
136
136
  if (!_config.states) {
137
- _config.states = { type: 'file' };
137
+ _config.states = { type: 'jsonl' };
138
138
  }
139
139
  if (!_config.objects) {
140
- _config.objects = { type: 'file' };
140
+ _config.objects = { type: 'jsonl' };
141
141
  }
142
142
  if (!_config.system) {
143
143
  _config.system = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.js-controller",
3
- "version": "4.0.13",
3
+ "version": "4.0.14",
4
4
  "engines": {
5
5
  "node": ">=12.0.0"
6
6
  },
@@ -17,16 +17,16 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@alcalzone/esbuild-register": "^2.5.1-1",
20
- "@iobroker/db-objects-file": "4.0.13",
21
- "@iobroker/db-objects-jsonl": "4.0.13",
22
- "@iobroker/db-objects-redis": "4.0.13",
23
- "@iobroker/db-states-file": "4.0.13",
24
- "@iobroker/db-states-jsonl": "4.0.13",
25
- "@iobroker/db-states-redis": "4.0.13",
26
- "@iobroker/js-controller-adapter": "4.0.13",
27
- "@iobroker/js-controller-cli": "4.0.13",
28
- "@iobroker/js-controller-common": "4.0.13",
29
- "@iobroker/js-controller-common-db": "4.0.13",
20
+ "@iobroker/db-objects-file": "4.0.14",
21
+ "@iobroker/db-objects-jsonl": "4.0.14",
22
+ "@iobroker/db-objects-redis": "4.0.14",
23
+ "@iobroker/db-states-file": "4.0.14",
24
+ "@iobroker/db-states-jsonl": "4.0.14",
25
+ "@iobroker/db-states-redis": "4.0.14",
26
+ "@iobroker/js-controller-adapter": "4.0.14",
27
+ "@iobroker/js-controller-cli": "4.0.14",
28
+ "@iobroker/js-controller-common": "4.0.14",
29
+ "@iobroker/js-controller-common-db": "4.0.14",
30
30
  "@iobroker/plugin-base": "~1.2.1",
31
31
  "@iobroker/plugin-sentry": "~1.2.0",
32
32
  "axios": "^0.24.0",
@@ -112,5 +112,5 @@
112
112
  "iobroker.js",
113
113
  "main.js"
114
114
  ],
115
- "gitHead": "a44fa71bf2f3079cdff725fa16c0d8c75af1c271"
115
+ "gitHead": "9fe76bd1337caaa5b06a9c677c9ecf7f7aba8518"
116
116
  }