Skip to content

Commit

Permalink
Remove deprecated title and main fields from io-package.json (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone authored Sep 13, 2024
1 parent 18ce399 commit d161a58
Show file tree
Hide file tree
Showing 18 changed files with 1 addition and 35 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
(at the beginning of a new line)
-->
## __WORK IN PROGRESS__
* (AlCalzone) Remove deprecated `main` and `title` fields from `io-package.json` (#1115)
* (AlCalzone) Remove deprecated license field from `io-package.json` (#1114)
* (AlCalzone) Add Node.js 22 as a supported version, set 20 as the default choice (#1112)
* (AlCalzone) Update CI workflows for the adapter creator (#1111)
Expand Down
3 changes: 0 additions & 3 deletions templates/io-package.json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export = (async answers => {

const isAdapter = answers.features.indexOf("adapter") > -1;
const isWidget = answers.features.indexOf("vis") > -1;
const useTypeScript = answers.language === "TypeScript";
const useJsonConfig = answers.adminUi === "json";
const useAdminReact = answers.adminUi === "react";
const useTabReact = answers.tabReact === "yes";
Expand Down Expand Up @@ -80,7 +79,6 @@ export = (async answers => {
"zh-cn": "首次出版"
}
},
"title": "${title}",
"titleLang": ${titleLang},
"desc": ${descriptionLang},
"authors": [
Expand All @@ -89,7 +87,6 @@ export = (async answers => {
"keywords": ${JSON.stringify(answers.keywords || getDefaultAnswer("keywords"))},
"licenseInformation": ${JSON.stringify(licenseInformation)},
"platform": "Javascript/Node.js",
"main": "${useTypeScript ? "build/" : ""}main.js",
"icon": "${getIconName(answers)}",
"enabled": true,
"extIcon": "https://raw.githubusercontent.com/${answers.authorGithub}/ioBroker.${answers.adapterName}/${defaultBranch}/admin/${getIconName(answers)}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"zh-cn": "首次出版"
}
},
"title": "Is used to test the creator",
"titleLang": {
"en": "Is used to test the creator",
"de": "Mock translation of 'Is used to test the creator' to 'de'",
Expand Down Expand Up @@ -58,7 +57,6 @@
"license": "Apache-2.0"
},
"platform": "Javascript/Node.js",
"main": "main.js",
"icon": "test-adapter.png",
"enabled": true,
"extIcon": "https://raw.githubusercontent.com/AlCalzone/ioBroker.test-adapter/main/admin/test-adapter.png",
Expand Down
2 changes: 0 additions & 2 deletions test/baselines/adapter_JS_React/io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"zh-cn": "首次出版"
}
},
"title": "Is used to test the creator",
"titleLang": {
"en": "Is used to test the creator",
"de": "Mock translation of 'Is used to test the creator' to 'de'",
Expand Down Expand Up @@ -58,7 +57,6 @@
"license": "MIT"
},
"platform": "Javascript/Node.js",
"main": "main.js",
"icon": "test-adapter.png",
"enabled": true,
"extIcon": "https://raw.githubusercontent.com/AlCalzone/ioBroker.test-adapter/main/admin/test-adapter.png",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"zh-cn": "首次出版"
}
},
"title": "Is used to test the creator",
"titleLang": {
"en": "Is used to test the creator",
"de": "Mock translation of 'Is used to test the creator' to 'de'",
Expand Down Expand Up @@ -58,7 +57,6 @@
"license": "MIT"
},
"platform": "Javascript/Node.js",
"main": "build/main.js",
"icon": "test-adapter.png",
"enabled": true,
"extIcon": "https://raw.githubusercontent.com/AlCalzone/ioBroker.test-adapter/main/admin/test-adapter.png",
Expand Down
2 changes: 0 additions & 2 deletions test/baselines/adapter_TS_React/io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"zh-cn": "首次出版"
}
},
"title": "Is used to test the creator",
"titleLang": {
"en": "Is used to test the creator",
"de": "Mock translation of 'Is used to test the creator' to 'de'",
Expand Down Expand Up @@ -58,7 +57,6 @@
"license": "MIT"
},
"platform": "Javascript/Node.js",
"main": "build/main.js",
"icon": "test-adapter.png",
"enabled": true,
"extIcon": "https://raw.githubusercontent.com/AlCalzone/ioBroker.test-adapter/main/admin/test-adapter.png",
Expand Down
2 changes: 0 additions & 2 deletions test/baselines/connectionIndicator_yes/io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"zh-cn": "首次出版"
}
},
"title": "Is used to test the creator",
"titleLang": {
"en": "Is used to test the creator",
"de": "Mock translation of 'Is used to test the creator' to 'de'",
Expand Down Expand Up @@ -58,7 +57,6 @@
"license": "MIT"
},
"platform": "Javascript/Node.js",
"main": "build/main.js",
"icon": "test-adapter.png",
"enabled": true,
"extIcon": "https://raw.githubusercontent.com/AlCalzone/ioBroker.test-adapter/main/admin/test-adapter.png",
Expand Down
2 changes: 0 additions & 2 deletions test/baselines/connectionType/io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"zh-cn": "首次出版"
}
},
"title": "Is used to test the creator",
"titleLang": {
"en": "Is used to test the creator",
"de": "Mock translation of 'Is used to test the creator' to 'de'",
Expand Down Expand Up @@ -58,7 +57,6 @@
"license": "MIT"
},
"platform": "Javascript/Node.js",
"main": "build/main.js",
"icon": "test-adapter.png",
"enabled": true,
"extIcon": "https://raw.githubusercontent.com/AlCalzone/ioBroker.test-adapter/main/admin/test-adapter.png",
Expand Down
2 changes: 0 additions & 2 deletions test/baselines/customAdapterSettings/io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"zh-cn": "首次出版"
}
},
"title": "Is used to test the creator",
"titleLang": {
"en": "Is used to test the creator",
"de": "Mock translation of 'Is used to test the creator' to 'de'",
Expand Down Expand Up @@ -58,7 +57,6 @@
"license": "MIT"
},
"platform": "Javascript/Node.js",
"main": "build/main.js",
"icon": "test-adapter.png",
"enabled": true,
"extIcon": "https://raw.githubusercontent.com/AlCalzone/ioBroker.test-adapter/main/admin/test-adapter.png",
Expand Down
2 changes: 0 additions & 2 deletions test/baselines/description_empty_1/io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"zh-cn": "首次出版"
}
},
"title": "Is used to test the creator",
"titleLang": {
"en": "Is used to test the creator",
"de": "Mock translation of 'Is used to test the creator' to 'de'",
Expand Down Expand Up @@ -58,7 +57,6 @@
"license": "MIT"
},
"platform": "Javascript/Node.js",
"main": "build/main.js",
"icon": "test-adapter.png",
"enabled": true,
"extIcon": "https://raw.githubusercontent.com/AlCalzone/ioBroker.test-adapter/main/admin/test-adapter.png",
Expand Down
2 changes: 0 additions & 2 deletions test/baselines/description_empty_2/io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"zh-cn": "首次出版"
}
},
"title": "Is used to test the creator",
"titleLang": {
"en": "Is used to test the creator",
"de": "Mock translation of 'Is used to test the creator' to 'de'",
Expand Down Expand Up @@ -58,7 +57,6 @@
"license": "MIT"
},
"platform": "Javascript/Node.js",
"main": "build/main.js",
"icon": "test-adapter.png",
"enabled": true,
"extIcon": "https://raw.githubusercontent.com/AlCalzone/ioBroker.test-adapter/main/admin/test-adapter.png",
Expand Down
2 changes: 0 additions & 2 deletions test/baselines/description_valid/io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"zh-cn": "首次出版"
}
},
"title": "Is used to test the creator",
"titleLang": {
"en": "Is used to test the creator",
"de": "Mock translation of 'Is used to test the creator' to 'de'",
Expand Down Expand Up @@ -58,7 +57,6 @@
"license": "MIT"
},
"platform": "Javascript/Node.js",
"main": "build/main.js",
"icon": "test-adapter.png",
"enabled": true,
"extIcon": "https://raw.githubusercontent.com/AlCalzone/ioBroker.test-adapter/main/admin/test-adapter.png",
Expand Down
2 changes: 0 additions & 2 deletions test/baselines/keywords/io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"zh-cn": "首次出版"
}
},
"title": "Is used to test the creator",
"titleLang": {
"en": "Is used to test the creator",
"de": "Mock translation of 'Is used to test the creator' to 'de'",
Expand Down Expand Up @@ -59,7 +58,6 @@
"license": "MIT"
},
"platform": "Javascript/Node.js",
"main": "build/main.js",
"icon": "test-adapter.png",
"enabled": true,
"extIcon": "https://raw.githubusercontent.com/AlCalzone/ioBroker.test-adapter/main/admin/test-adapter.png",
Expand Down
2 changes: 0 additions & 2 deletions test/baselines/no_config/io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"zh-cn": "首次出版"
}
},
"title": "Is used to test the creator",
"titleLang": {
"en": "Is used to test the creator",
"de": "Mock translation of 'Is used to test the creator' to 'de'",
Expand Down Expand Up @@ -58,7 +57,6 @@
"license": "MIT"
},
"platform": "Javascript/Node.js",
"main": "build/main.js",
"icon": "test-adapter.png",
"enabled": true,
"extIcon": "https://raw.githubusercontent.com/AlCalzone/ioBroker.test-adapter/main/admin/test-adapter.png",
Expand Down
2 changes: 0 additions & 2 deletions test/baselines/startMode_schedule/io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"zh-cn": "首次出版"
}
},
"title": "Is used to test the creator",
"titleLang": {
"en": "Is used to test the creator",
"de": "Mock translation of 'Is used to test the creator' to 'de'",
Expand Down Expand Up @@ -58,7 +57,6 @@
"license": "MIT"
},
"platform": "Javascript/Node.js",
"main": "build/main.js",
"icon": "test-adapter.png",
"enabled": true,
"extIcon": "https://raw.githubusercontent.com/AlCalzone/ioBroker.test-adapter/main/admin/test-adapter.png",
Expand Down
2 changes: 0 additions & 2 deletions test/baselines/type_storage/io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"zh-cn": "首次出版"
}
},
"title": "Is used to test the creator",
"titleLang": {
"en": "Is used to test the creator",
"de": "Mock translation of 'Is used to test the creator' to 'de'",
Expand Down Expand Up @@ -58,7 +57,6 @@
"license": "MIT"
},
"platform": "Javascript/Node.js",
"main": "build/main.js",
"icon": "test-adapter.png",
"enabled": true,
"extIcon": "https://raw.githubusercontent.com/AlCalzone/ioBroker.test-adapter/main/admin/test-adapter.png",
Expand Down
2 changes: 0 additions & 2 deletions test/baselines/type_visualization-icons/io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"zh-cn": "首次出版"
}
},
"title": "Is used to test the creator",
"titleLang": {
"en": "Is used to test the creator",
"de": "Mock translation of 'Is used to test the creator' to 'de'",
Expand Down Expand Up @@ -58,7 +57,6 @@
"license": "MIT"
},
"platform": "Javascript/Node.js",
"main": "build/main.js",
"icon": "test-adapter.png",
"enabled": true,
"extIcon": "https://raw.githubusercontent.com/AlCalzone/ioBroker.test-adapter/main/admin/test-adapter.png",
Expand Down
2 changes: 0 additions & 2 deletions test/baselines/vis_Widget/io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"zh-cn": "首次出版"
}
},
"title": "Is used to test the creator",
"titleLang": {
"en": "Is used to test the creator",
"de": "Mock translation of 'Is used to test the creator' to 'de'",
Expand Down Expand Up @@ -58,7 +57,6 @@
"license": "MIT"
},
"platform": "Javascript/Node.js",
"main": "main.js",
"icon": "test-widget.png",
"enabled": true,
"extIcon": "https://raw.githubusercontent.com/AlCalzone/ioBroker.test-widget/main/admin/test-widget.png",
Expand Down

0 comments on commit d161a58

Please sign in to comment.