ioBroker.js-controller
ioBroker.js-controller copied to clipboard
[enhancement]: Consider adding optionalDependencies property to io-package.json
No existing issues.
- [X] There is no existing issue for my request.
Description
Please consider / discuss the introduction of optionalDependencies at io-package.json.
optionalDependencies should allow an installtion if either NO release of dependent adapter xyz ist installed or the installed release of xyz satosfy the version requirment specified.
Why?
Some adapters may work if another adapter is not installed. But if the related adapter is installed it must have a minimum version to provide the required functionality. If a non matching (too old) version of the related adapter is installed, this might lead to crashes in the worst scenario.
The concrete example is an adapter providing functionality for vis but requires a minimum vis release. The adapter can alos work if no vis is installed. This requirement cannot be specified with current options.
How?
add new property optionalDependencies to io-package.json analog to dependencies and process the specified requirement if the soecified adapter is installed.