Skip to content

[Bug] @elastic/elasticsearch should be a peerDependency #139

@Bamieh

Description

@Bamieh

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the bug has not already been reported

Fastify version

latest

Plugin version

latest

Description

The dependancy @elastic/elasticsearch should be a peerDependency inside the package.json file instead of a regular dependency. This allows the host package to specify the elasticsearch version it will be using.

Currently all ts types break because of incompaible client versions if we are using other versions than the latest one enforced by this package, while this package does not care about that and we can specify the client externally anyways.

Expected Behavior

Host pacakge to install @elastic/elasticsearch@ and this package to be able to specify the elasticsearch version they are using.

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