Skip to content

@apollo/client should be a peer dependency #251

@andreialecu

Description

@andreialecu

It doesn't seem to be correct that @apollo/client is a regular dependency.

const { ApolloLink, Observable } = require('@apollo/client/core');
const {
createSignalIfSupported,
fallbackHttpConfig,
parseAndCheckHttpResponse,
rewriteURIForGET,
selectHttpOptionsAndBody,
selectURI,
serializeFetchParameter,
} = require('@apollo/client/link/http');

Instead, it should be in peerDependencies.

I noticed this while exploring an app's dependencies, and I noticed that @apollo/client was included twice in the resulting installation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions