Major Changes
-
#12586
605db8e
Thanks @jerelmiller! - Remove thetypeDefs
option fromApolloClient
. -
#12588
eed825a
Thanks @jerelmiller! - RemoveTContext
generic argument from all types that use it.TContext
is replaced withDefaultContext
which can be modified using declaration merging. -
#12590
a005e82
Thanks @jerelmiller! - Dropgraphql
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 thelink
option when instantiatingApolloClient
. This removes theuri
,credentials
andheaders
options fromApolloClient
in favor of passing an instantiatedHttpLink
directly. To migrate:If using
uri
,credentials
, orheaders
optionsnew 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
optionnew ApolloClient({ // ... + link: ApolloLink.empty() });