Skip to content

Clarify usage of plugin-meta and dependency check #17

@lependu

Description

@lependu

Hi! I found the following issues with plugin-meta definitions and dependency check:

  1. 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.

  2. There is no mention of decorators {Object} property which we can use for the same purpose.

  3. 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.

  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions