yarn @apollo/client 4.0.0-alpha.12
v4.0.0-alpha.12

latest releases: 4.0.0-alpha.21, 4.0.0-alpha.20, 4.0.0-alpha.19...
one month ago

Major Changes

  • #12586 605db8e Thanks @jerelmiller! - Remove the typeDefs option from ApolloClient.

  • #12588 eed825a Thanks @jerelmiller! - Remove TContext generic argument from all types that use it. TContext is replaced with DefaultContext which can be modified using declaration merging.

  • #12590 a005e82 Thanks @jerelmiller! - Drop graphql v15 as a valid peer dependency.

  • #12591 a7e7383 Thanks @jerelmiller! - Rename the @apollo/client/link/core entrypoint to @apollo/client/link.

  • #12589 15f5a1c Thanks @jerelmiller! - Require the link option when instantiating ApolloClient. This removes the uri, credentials and headers options from ApolloClient in favor of passing an instantiated HttpLink directly. To migrate:

    If using uri, credentials, or headers options

    new ApolloClient({
      // ...
    - uri,
    - credentials,
    - headers,
    + link: new HttpLink({ uri, credentials, headers }),
    // or if you prefer the function call approach:
    + link: createHttpLink({ uri, credentials, headers }),
    });

    If creating a client without the link option

    new ApolloClient({
      // ...
    + link: ApolloLink.empty()
    });

Don't miss a new client release

NewReleases is sending notifications on new releases.