Hi! I found the following issues with plugin-meta definitions and dependency check:
-
Currently the README instructions about plugin-metadata definition states that we need to pass dependencies {Object}, but fastify/fastify/lib/pluginUtils.js accepts {Array} of strings.
-
There is no mention of decorators {Object} property which we can use for the same purpose.
-
If I am not mistaken, in case of we pass dependencies {Array} property, the dependency chek only passes if the dependency plugin declares name property in its own plugin definition. Currently most of the plugins in the Ecosystem list lacks of that property, therefore they will result a false negative dependency check.
-
If the previous assumption is correct and it is the intended behaviour, than we need to update the plugin definitions of the existing plugins with the name property. Up until that point it would be safer to use the decorators {Object} plugin-meta definition.
I am sorry for the TLDR, but I am aware of that this functionality is WIP and therefore there are a lot of moving parts. I am happy to create PR(s) if it is required.
Hi! I found the following issues with plugin-meta definitions and dependency check:
Currently the README instructions about plugin-metadata definition states that we need to pass
dependencies{Object}, but fastify/fastify/lib/pluginUtils.js accepts{Array}of strings.There is no mention of
decorators{Object}property which we can use for the same purpose.If I am not mistaken, in case of we pass
dependencies{Array}property, the dependency chek only passes if the dependency plugin declaresnameproperty in its own plugin definition. Currently most of the plugins in the Ecosystem list lacks of that property, therefore they will result a false negative dependency check.If the previous assumption is correct and it is the intended behaviour, than we need to update the plugin definitions of the existing plugins with the
nameproperty. Up until that point it would be safer to use thedecorators{Object}plugin-meta definition.I am sorry for the TLDR, but I am aware of that this functionality is WIP and therefore there are a lot of moving parts. I am happy to create PR(s) if it is required.