From 5da6af9396cf2f4ad7e1832560217f9e2971c0d3 Mon Sep 17 00:00:00 2001 From: "Martin M." Date: Sat, 26 Oct 2024 21:44:43 +0200 Subject: [PATCH] extend dependency blacklist --- README.md | 5 +++++ lib/M000_PackageJson.js | 43 ++++++++++++++++++++++++++++++++++++----- 2 files changed, 43 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 275b99c..8908603 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,11 @@ Branch (`master/main/dev`) is optional. --> ## Changelog +### **WORK IN PROGRESS** +* (mcm1957) linter has been activated and issues reported have been fixed. +* (mcm1957) Blacklist for package/dependencies has been extended. +* (mcm1957) Recommend adapter-core 3.2.2 now. + ### 3.1.3 (2024-10-11) * (mcm1957) Checker no longer crash id no npm package exists. diff --git a/lib/M000_PackageJson.js b/lib/M000_PackageJson.js index 4d24030..d0f8f93 100644 --- a/lib/M000_PackageJson.js +++ b/lib/M000_PackageJson.js @@ -11,15 +11,16 @@ const compareVersions = require('compare-versions'); const common = require('./common.js'); -const recommendedNodeVersion = '18'; // This is the minimum node version that should be required -const requiredNodeVersion = '18'; // This is the minimum node version that must be required +// Note: node version specify rules for engines clase and do NOT reflect the recommended node version for users +const recommendedNodeVersion = '18'; // This is the minimum node version that should be required at engines clause +const requiredNodeVersion = '18'; // This is the minimum node version that must be required at engines clause /* TODO: configuration should be moved to context */ const dependenciesPackageJson = { '@iobroker/adapter-core': { required: '3.1.4', - recommended: '3.1.6', + recommended: '3.2.2', }, }; @@ -33,11 +34,15 @@ const devDependenciesPackageJson = { const blacklistedDependenciesPackageJson = { 'npm': { - msg: "'npm'must not be listed as dependency at package.json. Please remove.", + msg: "'npm'must not be listed as dependency at package.json. Please remove and create new release.", err: true }, 'iobroker.js-controller': { - msg: "'iobroker.js-controller' must not be listed as dependency at package.json. Please remove.", + msg: "'iobroker.js-controller' must not be listed as dependency at package.json.Please remove and create new release.", + err: true + }, + '@iobroker/adapter-dev': { + msg: "'@iobroker/adapter-dev' must not be listed as dependency at package.json. Please remove and create new release.", err: true }, '@iobroker/dev-server': { @@ -48,6 +53,34 @@ const blacklistedDependenciesPackageJson = { msg: "'@iobroker/plugin-sentry' must not be listed as dependency at package.json as it will crash js-controller 7 systems. Please remove and create new release.", err: true }, + '@iobroker/repochecker': { + msg: "'@iobroker/repochecker' must not be listed as dependency at package.json. Please remove and create new release.", + err: true + }, + '@alcalzone/release-script': { + msg: "'@alcalzone/release-script' must not be listed as dependency at package.json. Please remove and create new release.", + err: true + }, + '@alcalzone/release-script-plugin-iobroker': { + msg: "'@alcalzone/release-script-plugin-iobroker' must not be listed as dependency at package.json. Please remove and create new release.", + err: true + }, + '@alcalzone/release-script-plugin-license': { + msg: "'@alcalzone/release-script-plugin-license' must not be listed as dependency at package.json. Please remove and create new release.", + err: true + }, + '@alcalzone/release-script-plugin-package': { + msg: "'@alcalzone/release-script-plugin-package' must not be listed as dependency at package.json. Please remove and create new release.", + err: true + }, + '@alcalzone/release-script-plugin-manual-review': { + msg: "'@alcalzone/release-script-plugin-manual-review' must not be listed as dependency at package.json. Please remove and create new release.", + err: true + }, + '@alcalzone/release-script-plugin-version': { + msg: "'@alcalzone/release-script-plugin-version' must not be listed as dependency at package.json. Please remove and create new release.", + err: true + }, }; const blacklistedDevDependenciesPackageJson = {