Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev v1.6.0 #109

Merged
merged 3 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 grizzelbee <open.source@hingsen.de>
Copyright (c) 2024 grizzelbee <open.source@hingsen.de>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ Basically there are three ways to execute the command:
## Changelog
### **WORK IN PROGRESS**

### 1.6.3 (2024-04-16)
* (grizzelbee) Upd: Dependencies got updated
* (grizzelbee) Fix: Removed annoying warning when setting null or undefined values (introduced in v1.6.2)
* (grizzelbee) Upd: Requiring at least admin v6.13.16

### 1.6.2 (2024-03-26)
* (grizzelbee) Upd: Dependencies got updated
* (grizzelbee) Fix: fixed sentry issues WIREGUARD-2B & WIREGUARD-2C
Expand Down
39 changes: 26 additions & 13 deletions io-package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,33 @@
{
"common": {
"name": "wireguard",
"version": "1.6.2",
"version": "1.6.3",
"news": {
"1.6.3": {
"en": "Dependencies got updated\nRemoved annoying warning when setting null or undefined values (introduced in v1.6.2)\nRequiring at least admin v6.13.16",
"de": "Abhängigkeiten wurden aktualisiert. \n Ärgerliche Warnung beim Festlegen von Null- oder undefinierten Werten entfernt (eingeführt in Version 1.6.2). \n Mindestens Admin-Version 6.13.16 erforderlich",
"ru": "Зависимости обновлены. \n Удалено надоедливое предупреждение при установке нулевых или неопределенных значений (введено в версии 1.6.2). \n Требуется как минимум администратор v6.13.16.",
"pt": "As dependências foram atualizadas\n Aviso irritante removido ao definir valores nulos ou indefinidos (introduzido na v1.6.2)\n Requer pelo menos admin v6.13.16",
"nl": "Afhankelijkheden zijn bijgewerkt \n Vervelende waarschuwing verwijderd bij het instellen van nul- of ongedefinieerde waarden (geïntroduceerd in v1.6.2) \n Minimaal beheerder v6.13.16 vereist",
"fr": "Les dépendances ont été mises à jour \n Suppression d'un avertissement ennuyeux lors de la définition de valeurs nulles ou non définies (introduites dans la v1.6.2) \n Nécessitant au moins l'administrateur v6.13.16",
"it": "Le dipendenze sono state aggiornate\nRimosso il fastidioso avviso quando si impostano valori null o non definiti (introdotti nella v1.6.2)\nRichiede almeno l'amministratore v6.13.16",
"es": "Se actualizaron las dependencias\n Se eliminó la molesta advertencia al establecer valores nulos o indefinidos (introducido en v1.6.2)\n Se requiere al menos admin v6.13.16",
"pl": "Zaktualizowano zależności\n Usunięto irytujące ostrzeżenie podczas ustawiania wartości null lub niezdefiniowanych (wprowadzono w wersji 1.6.2) \n Wymagane co najmniej uprawnienia administratora w wersji 6.13.16",
"uk": "Залежності оновлено\nВилучено дратівливе попередження під час встановлення нульових або невизначених значень (введено у версії 1.6.2)\nПотрібен принаймні адміністратор v6.13.16",
"zh-cn": "依赖项已更新\n删除了设置 null 或未定义值时烦人的警告(在 v1.6.2 中引入)\n至少需要 admin v6.13.16"
},
"1.6.2": {
"en": "Dependencies got updated*fixed sentry issues WIREGUARD-2B & WIREGUARD-2C*Adapter requires at least node 18.x",
"de": "Abhängigkeiten wurden aktualisiert*Sentry-Probleme WIREGUARD-2B und WIREGUARD-2C behoben*Adapter erfordert mindestens Node 18.x",
"ru": "Зависимости обновлены*исправлены проблемы со стражей WIREGUARD-2B и WIREGUARD-2C*Для адаптера требуется как минимум узел 18.x",
"pt": "As dependências foram atualizadas*problemas de sentinela corrigidos WIREGUARD-2B e WIREGUARD-2C*O adaptador requer pelo menos o nó 18.x",
"nl": "Afhankelijkheden zijn bijgewerkt * Sentry-problemen opgelost WIREGUARD-2B & WIREGUARD-2C * Adapter vereist minimaal Node 18.x",
"fr": "Les dépendances ont été mises à jour * Problèmes de sentinelle résolus WIREGUARD-2B et WIREGUARD-2C * L'adaptateur nécessite au moins le nœud 18.x",
"it": "Le dipendenze sono state aggiornate*Risolti i problemi di sentinella WIREGUARD-2B e WIREGUARD-2C*L'adattatore richiede almeno il nodo 18.x",
"es": "Se actualizaron las dependencias*Se solucionaron problemas de centinela WIREGUARD-2B y WIREGUARD-2C*El adaptador requiere al menos el nodo 18.x",
"pl": "Zależności zostały zaktualizowane* naprawiono problemy ze strażnikami WIREGUARD-2B i WIREGUARD-2C*Adapter wymaga co najmniej węzła 18.x",
"uk": "Залежності оновлено*виправлено проблеми з дозорним WIREGUARD-2B & WIREGUARD-2C*Адаптер вимагає принаймні вузла 18.x",
"zh-cn": "依赖项已更新*修复了哨兵问题 WIREGUARD-2B 和 WIREGUARD-2C*适配器至少需要节点 18.x"
"en": "Dependencies got updated\nfixed sentry issues WIREGUARD-2B & WIREGUARD-2C\nAdapter requires at least node 18.x",
"de": "Abhängigkeiten wurden aktualisiert\nSentry-Probleme WIREGUARD-2B und WIREGUARD-2C behoben\nAdapter erfordert mindestens Node 18.x",
"ru": "Зависимости обновлены\nисправлены проблемы со стражей WIREGUARD-2B и WIREGUARD-2C\nДля адаптера требуется как минимум узел 18.x",
"pt": "As dependências foram atualizadas\nproblemas de sentinela corrigidos WIREGUARD-2B e WIREGUARD-2C\nO adaptador requer pelo menos o nó 18.x",
"nl": "Afhankelijkheden zijn bijgewerkt \n Sentry-problemen opgelost WIREGUARD-2B & WIREGUARD-2C \n Adapter vereist minimaal Node 18.x",
"fr": "Les dépendances ont été mises à jour \n Problèmes de sentinelle résolus WIREGUARD-2B et WIREGUARD-2C \n L'adaptateur nécessite au moins le nœud 18.x",
"it": "Le dipendenze sono state aggiornate\nRisolti i problemi di sentinella WIREGUARD-2B e WIREGUARD-2C\nL'adattatore richiede almeno il nodo 18.x",
"es": "Se actualizaron las dependencias\nSe solucionaron problemas de centinela WIREGUARD-2B y WIREGUARD-2C\nEl adaptador requiere al menos el nodo 18.x",
"pl": "Zależności zostały zaktualizowane\n naprawiono problemy ze strażnikami WIREGUARD-2B i WIREGUARD-2C\nAdapter wymaga co najmniej węzła 18.x",
"uk": "Залежності оновлено\nвиправлено проблеми з дозорним WIREGUARD-2B & WIREGUARD-2C\nАдаптер вимагає принаймні вузла 18.x",
"zh-cn": "依赖项已更新\n修复了哨兵问题 WIREGUARD-2B 和 WIREGUARD-2C\n适配器至少需要节点 18.x"
},
"1.6.1": {
"en": "(mcm1957) adapter-core 3 is known to fail during installation at node 14 as npm 6 fails to install peerDependencies - So this adapter requires node 16 or newer\n(grizzelbee) Dependencies got updated\nremoved some old news entries in io-package file",
Expand Down Expand Up @@ -272,7 +285,7 @@
],
"globalDependencies": [
{
"admin": ">=5.1.13"
"admin": ">=6.13.16"
}
],
"dependencies": [
Expand Down
5 changes: 3 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ class Wireguard extends utils.Adapter {
* @param value {any} value of the datapoint
*/
createOrExtendObject(id, objData, value) {
if (value && ('undefined' !== typeof value) ){
if (value !== null && ('undefined' !== typeof value) ){
adapter.getObject(id, function (err, oldObj) {
if (!err && oldObj) {
if ( objData.common.name === oldObj.common.name && objData.common.icon === oldObj.common.icon){
Expand All @@ -515,7 +515,8 @@ class Wireguard extends utils.Adapter {
}
});
} else {
adapter.log.warn(`Setting ${id} to ${value} is senseless. Please open an issue on github and provide a debug log sowing the occurrence of this issue.`);
adapter.log.debug(`Setting ${id} to ${value} is senseless.`);
adapter.log.debug(`This usually only happens when you misconfigure this adapter. Please read the documentation on gitHub and fix your config.`);
}
}

Expand Down
52 changes: 26 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.wireguard",
"version": "1.6.2",
"version": "1.6.3",
"description": "Connect to WireGuard hosts and grab connection information on peers",
"author": {
"name": "grizzelbee",
Expand All @@ -27,17 +27,17 @@
"devDependencies": {
"@alcalzone/release-script": "^3.7.0",
"@babel/cli": "^7.24.1",
"@babel/core": "^7.24.3",
"@babel/core": "^7.24.4",
"@iobroker/adapter-dev": "^1.3.0",
"@iobroker/testing": "^4.1.1",
"@material-ui/core": "^4.12.4",
"@snyk/protect": "^1.1286.1",
"@snyk/protect": "^1.1289.0",
"@types/gulp": "^4.0.17",
"chai": "^4.1.1",
"chai-as-promised": "^7.1.1",
"eslint": "^8.57.0",
"eslint-plugin-react": "^7.34.1",
"mocha": "^10.3.0",
"mocha": "^10.4.0",
"parcel-bundler": "^1.5.1",
"proxyquire": "^2.1.3",
"sinon": "^17.0.1",
Expand Down
Loading